fraudh8er Posted August 25, 2004 Share Posted August 25, 2004 this i what I have so far and for some reason it starts by itself, it doesnt wait for me to press ALT+a, anythoughts. expandcollapse popup;program for Peter for replications ;WinWaitActive("Choose Destination Location") MsgBox(4096, "SpaceDown v1", "USE ALT A to Start AND ESC to Stop AND Pause to pause", 10) ;$i = 0 ;While $1 >= $tables ; Send("{SPACE}") ; Send("{Down}") Global $Paused HotKeySet("{PAUSE}", "TogglePause") Hotkeyset("{ALT+a}","Downspace"); this will send down and space if you hit pause Hotkeyset("{ESC}","Stop");;this will end the program when done while 1; this is a loop ;winwait("my window title",""); this will wait until this window exists. downspace(); this will do the send down and space ;sleep(1000) wend Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',488,371) WEnd ToolTip("") EndFunc func Downspace() Send("{SPACE}") Send("{Down}") endfunc func Stop() Exit endfunc Link to comment Share on other sites More sharing options...
Developers Jos Posted August 25, 2004 Developers Share Posted August 25, 2004 this i what I have so far and for some reason it starts by itself, it doesnt wait for me to press ALT+a, anythoughts. while 1; this is a loop ;winwait("my window title",""); this will wait until this window exists. downspace(); this will do the send down and space ;sleep(1000) wend <{POST_SNAPBACK}>Yes you are running it in your While loop....... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fraudh8er Posted August 25, 2004 Author Share Posted August 25, 2004 oh duh, Thank you Yes you are running it in your While loop....... <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now