Jump to content
Sign in to follow this  
mulletmandan

Pause Script Until Enter is Pressed

Recommended Posts

mulletmandan

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

Share this post


Link to post
Share on other sites
seandisanti

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

Share this post


Link to post
Share on other sites
mulletmandan

Worked like a charm :)

Thanks for putting up with my newbiness :evil:

Share this post


Link to post
Share on other sites
seandisanti

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.

Share this post


Link to post
Share on other sites
Errorlevel_03

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]

Share this post


Link to post
Share on other sites
buzz44

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

Share this post


Link to post
Share on other sites
Errorlevel_03

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]

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  

×