
Originally Posted by
flep',index.php?page=Thread&postID=72432#post72432]
[quote='dRiN',index.php?page=Thread&postID=72429#po st72429]You can use AHK to make a transparant always on top form with buttons. And use those buttons to send keys to the secondary character. I have posted it in some thread a while ago. Too sleepy to find it now, but search / press my nick and you should be able te find it. I don't post that much since my posts mostly don't get replied on ;)[/quote]I found your post, and will try this to see if works! But tell me, how I use that source code on your post?
Ah, the post btw is this: [b][Keyclone][/b] [url='http://www.dual-boxing.com/forums/index.php?page=Thread&postID=69319&highlight=#post 69319
1 PC, 1 mouse, 1 monitor, 2 WoW instances, making click healing work![/url]
Thanks!
Code:
CustomColor = EEAA99 ; Can be any RGB color (it will be made transparent below).
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Add, Button, x6 y9 w20 h20 , 1
; Gui, Font, s32 ; Set a large font size (32-point).
; Gui, Add, Text, vMyText cLime, XXXXX YYYYY ; XX & YY serve to auto-size the window.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
; SetTimer, UpdateOSD, 200
; Gosub, UpdateOSD ; Make the first update immediate rather than waiting for the timer.
Gui, Show, x20 y20 NoActivate ; NoActivate avoids deactivating the currently active window.
WinSet AlwaysOnTop, On, WoW
WinSet, Style, -0xC00000, A
return
Button1:
ControlSend,,1,test.ahk
Return
GuiClose:
ExitApp
The way you use the code is you open up an AHK script and paste the code in there. After you wil load this script you will have a transparant form in the top-left of you screen (not sure how it will work on multiplescreens) on that form one semi-transparent button will appear.
Code:
CustomColor = EEAA99 ; Can be any RGB color (it will be made transparent below).
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
With this part of the code you get the form itself.
Code:
Gui, Add, Button, x6 y9 w20 h20 , 1
This is where button1 is added.
Code:
; Gui, Font, s32 ; Set a large font size (32-point).
; Gui, Add, Text, vMyText cLime, XXXXX YYYYY ; XX & YY serve to auto-size the window.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
; SetTimer, UpdateOSD, 200
; Gosub, UpdateOSD ; Make the first update immediate rather than waiting for the timer.
Gui, Show, x20 y20 NoActivate ; NoActivate avoids deactivating the currently active window.
Is self commenting at what it does. Makes the form transparent and places the form at a certain position (x20 y20 are the coordinates).
[code]
WinSet AlwaysOnTop, On, WoW
WinSet, Style, -0xC00000, A
return
[code]
Set the window on top of all (so make sure you use WoW in a windowed way, settings found in the WoW options) windowed forms. And the return is for the part where it stops doing things on the form itself.
Code:
Button1:
ControlSend,,1,test.ahk
Return
This is where the button event is handled. Button1 corresponds with "Gui, Add, Button, x6 y9 w20 h20 , 1" this part of the code. the x and y are coordinates. the w and h are size (height en with). And the 1 is the name of the button.
So Button1 will use ControlSend function to send a key to the window named test.ahk in this case (change it to World of Warcraft or the window handle). This I don't use this solution at the moment and I have lost my old code with a hdd crash. What you need is to find the function that get it's AHK code send keys captured by keyclone / octopus / etc.. And with AHK you can force what form (session / process) you want to send a key. SendRaw / SendKeys / Send .. not sure what function to use anymore. I hope this will get you to find out how to use this code for your ideas. There are plenty of other scripts interacting with wow. And all on this board are just keyplexers without delays.
This is the exit event for the form, but since it is transparant you probably want to kill the traysession of the script.
If you want to add a button add it in the form section. "Gui, Add, Button, x6 y9 w20 h20 , NameOfButton"
Code:
...
Gui, Add, Button, x6 y20 w20 h20 , NameOfButton
...
ButtonNameOfButton:
SendKey,,1,World of Warcraft
Return
...
Fil the ... with the other code suplied and you will have a second button.
What I did was match the button x and y with my wow interface so they are behind the characters from my party.
Make sure if you click the button to do something you dont mash any other buttons because it might not work as expected.
If you have any questions just ask them, I will try to answer them when I have the time.
Connect With Us