Macro with use of Autohotkey not working

01/24/2007 17:26 Diabox#1
So I wanted to make a little macro to help scriptvessel level my rb fire tao, since script vessel won't summon guard for you.

So I came up with this idea, putt Tornado under F5 and Summonguard under F6

So here's the code:

;WinGet,id, ID,[Conquer2.0]
Gui, Add, Text,, For [Only registered and activated users can see links. Click Here To Register...]
Gui, Add, Text,x10 y42 w100 h20, Auto-summon-guard.
Gui, Add, Text,x15 y62 w190 h20, To start, press F10 on active window,
Gui, Add, Text,x65 y82 w150 h20, now press Ok
Gui, Add, Button, x150 y102 w60 h20 vButton gStart, Ok
Gui, Add, Text,x55 y122 w100 h20, v1.0 by Diabox
Gui, Show

return

Start:

Gui, Submit, Hide
;MsgBox, To start press F10 on active window`n`n Beta version`n v1.0 by Diabox `n`n special for [Only registered and activated users can see links. Click Here To Register...] community
;#NoTrayIcon
*F10::
WinGet,id, ID,[Conquer2.0]
gata := false
MsgBox, Started
;ControlSend,,F6,ahk_id %id%
ControlClick,ahk_id %id%,,RIGHT
ControlSend,,F5,ahk_id %id%
loop
{
;ControlSend,,F6,ahk_id %id%
ControlClick,ahk_id %id%,,RIGHT
ControlSend,,F5,ahk_id %id%
Sleep, 60000
}

*F11::ExitApp
;GuiClose:
return






What I wanted with the script is, that the moment it starts it presses f6, then right clicks (to summon guard) then goes back to f5 so nado is enabled again and after that the loop of this process will start with a sleep timer of 60000 ms. But it ain't working it does nothing. Anyone sees the problem? I'm quite a noob.

<hr>Append on Jan 24 2007, 22:21<hr> Doesn't anyone know? Cause I've really tried my best to fix the problem but nothing works :ops:
01/25/2007 17:50 leane2000#2
May be you can try to send F6 more than once, while using SV, clicking on F6 don't always responds and you have to click few times to do so. Same for F5 btw.
You can also use the autohotkey to check if the command has been accepted using getpixel.