Jump to content

Help with Script


Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...