Jump to content

Pause Script Until Enter is Pressed


Recommended Posts

Okay, I ran into another issue with my script. I am trying to tell the script to wait until Enter is pressed (i.e. send a message saying "Adjust the crop and press enter" then tell the script to wait) so the user can adjust the cropping of the prescanned photo, then press enter. I would assume I use SetHotKey, but my scripts always seem to have errors. Any help would be greatly apreciated! Oh, and I have searched around here and the help files.

Edited by mulletmandan
Link to comment
Share on other sites

Okay, I ran into another issue with my script. I am trying to tell the script to wait until Enter is pressed so the user can adjust the cropping of the prescanned photo, then press enter. I would assume I use SetHotKey, but my scripts always seem to have errors.  Any help would be greatly apreciated! Oh, and I have searched around here and the help files.

<{POST_SNAPBACK}>

are you able to post your code? without code, this is my best suggestion...

HotKeySet("{ENTER}","UnPause")
;program statements to execute before pause

while 1
sleep(100)
wend

Func UnPause()
;statements to execute after pause
EndFunc

***edit*** i always forget to add the code close tag...

Edited by cameronsdad
Link to comment
Share on other sites

Thanks for putting up with my newbiness :)

<{POST_SNAPBACK}>

lol, np, glad i could help. and don't worry about newbiness, it washes off pretty quick if you watch the forums here. i can't tell you how much i've learned in the last month or so that i've been participating where i can.
Link to comment
Share on other sites

HotKeySet("{ENTER}","UnPause")
;program statements to execute before pause

while 1
sleep(100)
wend

Func UnPause()
;statements to execute after pause
EndFunc
May I ask what "wend" is? Edited by Errorlevel_03
I hope you know what a spoiler is...[u]"title WOOPS:Var_start "WOOPS" %0goto Var_"-A true n00b at work[/u]
Link to comment
Share on other sites

Basic computing keyword and also pseudocode.

For every While you have you must also have an Wend. Just like for every If you have an EndIf.

While 1
;... Error

While 1
;No error
Wend
Edited by Burrup

qq

Link to comment
Share on other sites

Basic computing keyword and also pseudocode.

For every While you have you must also have an Wend. Just like for every If you have an EndIf.

While 1
;... Error

While 1
;No error
Wend

<{POST_SNAPBACK}>

ahhhh ok thanks alot!
I hope you know what a spoiler is...[u]"title WOOPS:Var_start "WOOPS" %0goto Var_"-A true n00b at work[/u]
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...