Would appreciate if you can give me some help with this one. I have a simple script that clicks the down arrow when on an email program so we can navigate through a whole long bunch of emails very quickly (rather than keep pressing the arrow key again and again). Created two speeds for the key press.
Once it starts...I just cannot stop it. I have checked the forums and tried sticking in the Hotkey for Pause and ExitScript...even added these commands to the buttons...it refuses to do the pause or ExitScript...until the number of arrow presses program have completed.
Is there a way to keep the presses going and then just stop them when required? The script is below Thankyou for any help you can give.
Code: Select all
Gui, Add, Button, x12 y30 w100 h30 , Down slow
Gui, Add, Button, x12 y60 w100 h30 , Down fast
Gui, Add, Button, x12 y90 w100 h30 , Up
Gui, Add, Button, x12 y120 w100 h30 , Pause
Gui, Add, Button, x12 y150 w100 h30 , Quit
Gui, Font, S8 cFFFFFF, Arial Bold
Gui, Add, Text, x12 y0 w100 h20 , quick mail check
Gui, Show, w128 h195, mail - check
F9::ExitApp
return
buttondownslow:
Gui, Submit, Nohide
IfWinExist, mailcheck - 3.5.1
WinActivate mailcheck - 3.5.1
else goto, message
SetKeyDelay, 1000
Send {Down 10}
return
buttondownfast:
Gui, Submit, Nohide
IfWinExist, mailcheck - 3.5.1
WinActivate mailcheck - 3.5.1
SetKeyDelay, 100
send {Down 10}
return
buttonpause:
Gui, Submit, Nohide
pause
return
message:
msgbox no gui
return
buttonquit:
Gui, Submit, Nohide
ExitApp
return
GuiClose:
ExitApp