Sign in to follow this  
Followers 0
mulletmandan

Pause Script Until Enter is Pressed

7 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted (edited)

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Worked like a charm :)

Thanks for putting up with my newbiness :evil:

Share this post


Link to post
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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

#6 ·  Posted (edited)

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

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
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]

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  
Followers 0