It works kind of perfect although the only issue is when i click one of the buttons on the GUI it takes the focus off the WoW window and stops the character from continuing to move until i click the WoW screen again.
Is there a way around this where i can keep the GUI on top, and even when i press a button on the GUI it will keep the focus on WoW window?
Thanks sooooo much, i really appreciate it
Kind Regards!
here's the code
Code: Select all
WinGet, wowid, list, World of Warcraft
#IfWinActive, World of Warcraft
Gui,+AlwaysOnTop
#SingleInstance, Force
CustomColor = 000001
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption +E0x08000000
Gui, Color, %CustomColor%
Gui, Font, s10, Lucida Console
Gui, Add, Text, x0 y0 w115 gGuiMove 0x5
Gui, Show, h321 w218, Test
Gui, Color, 000000
Gui, Font, S15 cRed Bold Italic, Verdana
Gui, Add, Button, h100 w100 x6 y7 gFEAR,FEAR
Gui, Add, Button, h100 w100 x6 y110 gSTUN,STUN
Gui, Add, Button, h100 w100 x6 y213 gRUN,RUN
Gui, Add, Button, h100 w100 x112 y7 gSPACE1,SPACE1
Gui, Add, Button, h100 w100 x112 y110 gSPACE2,SPACE2
Gui, Add, Button, h100 w100 x112 y213 gSPACE3,SPACE3
return
;;;Label's
RUN:
ControlSend,, {3}, ahk_id %wowid1%
return
STUN:
ControlSend,, {2}, ahk_id %wowid1%
return
FEAR:
ControlSend,, {1}, ahk_id %wowid1%
return
SPACE1:
ControlSend,, {4}, ahk_id %wowid1%
return
SPACE2:
ControlSend,, {5}, ahk_id %wowid1%
return
SPACE3:
ControlSend,, {6}, ahk_id %wowid1%
return
;;For drag moving the GUI
GuiMove:
PostMessage, 0xA1, 2,,, ahk_class AutoHotkeyGUI
Return
GuiClose:
ExitApp