AutoHotkey Community

It is currently May 27th, 2012, 12:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Pausing a running script
PostPosted: October 13th, 2009, 6:06 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2009, 6:11 am 
pause the script is exactly what it meant, it will pause all the codes running inside ur script until u unpause it


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2009, 6:13 am 
Alright, but pressing shift + p does not resume my script, I probably should have stated that earlier


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2009, 6:57 am 
it should work, and it does work here
show us ur script


Report this post
Top
  
Reply with quote  
PostPosted: October 13th, 2009, 3:23 pm 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
akubly wrote:
Am i making this declaration in the wrong place?

Most likey, yes:
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2009, 5:29 pm 
Offline

Joined: September 21st, 2009, 1:25 am
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2009, 6:23 pm 
Offline

Joined: October 13th, 2009, 5:57 pm
Posts: 21
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google [Bot], Leef_me, Pulover, rjgatito, XstatyK and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group