Jump to content
Sign in to follow this  
fraudh8er

Help with Script

Recommended Posts

fraudh8er

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.

;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

Share this post


Link to post
Share on other sites
Jos

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.......

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
fraudh8er

oh duh, Thank you

Yes you are running it in your While loop.......

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.