AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pausing a running script

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
akubly
Guest





PostPosted: Tue Oct 13, 2009 5:06 am    Post subject: Pausing a running script Reply with quote

So I've been writing scripts for a few hours, and I've come across a problem.

According to the FAQ: +p::pause should pause my script, but instead it seems to keep the script from running all together.

Am i making this declaration in the wrong place?

any advice would be great, thanks
Back to top
Guest






PostPosted: Tue Oct 13, 2009 5:11 am    Post subject: Reply with quote

pause the script is exactly what it meant, it will pause all the codes running inside ur script until u unpause it
Back to top
akubly
Guest





PostPosted: Tue Oct 13, 2009 5:13 am    Post subject: Reply with quote

Alright, but pressing shift + p does not resume my script, I probably should have stated that earlier
Back to top
Guest






PostPosted: Tue Oct 13, 2009 5:57 am    Post subject: Reply with quote

it should work, and it does work here
show us ur script
Back to top
temp01



Joined: 09 Jul 2009
Posts: 120

PostPosted: Tue Oct 13, 2009 2:23 pm    Post subject: Re: Pausing a running script Reply with quote

akubly wrote:
Am i making this declaration in the wrong place?

Most likey, yes:
Scripts - Auto-execute Section wrote:
After the script has been loaded, it begins executing at the top line, continuing until a Return, Exit, hotkey/hotstring label, or the physical end of the script is encountered (whichever comes first).
Back to top
View user's profile Send private message
mstorey20



Joined: 21 Sep 2009
Posts: 10

PostPosted: Tue Oct 13, 2009 4:29 pm    Post subject: Reply with quote

Yep, I wondering what the script is and whether we need to pause or suspend the script or whether it should be handled with returns
_________________
StoreyQuickNotes - An AutoHotkey Project for Radiation Oncology
Back to top
View user's profile Send private message
NINOH



Joined: 13 Oct 2009
Posts: 21

PostPosted: Tue Oct 13, 2009 5:23 pm    Post subject: Reply with quote

just add

Code:



+p::Pause





anywhere to the script but make sure that it is not inside of the script that you are writing. place it at the bottom of the text file and make sure that there is a return at the end of your script.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group