AutoHotkey Community

It is currently May 25th, 2012, 4:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 21st, 2007, 12:25 am 
Offline

Joined: October 5th, 2006, 8:47 pm
Posts: 13
hi...i want to ask how can i pausing a script when the first time that script running...so what i mean is when i double click the script then the script will turn red (pausing) after that i can unpause it again...

well i already know how to pause and unpause a script but i want the script pausing at the time i running it...

here is my simple script..

Code:
Loop
{
Send, {F1}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F2}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F3}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F4}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F5}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F6}
Sleep, 5000
Send, {F8}
Sleep, 5000
Send, {F7}
Sleep, 5000
Send, {F8}
Sleep, 640000
}

Insert::Pause
Return


i hope there is someone can help me....thanks before...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2007, 12:36 am 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Im sorry I dont understand what your asking about the 'pause', but here is a shorter version of your script...

Code:
Cnt = 1
Loop
   {
      Send, {F%Cnt%}
      Sleep, 5000
      Send, {F8}
      Sleep, 5000
      If Cnt = 7
         {
            Cnt = 0
            Sleep, 640000
         }
      Cnt++
   }

Insert::Pause
Return

_________________

HTH...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Pause
PostPosted: September 21st, 2007, 1:05 am 
Offline

Joined: January 18th, 2006, 12:37 am
Posts: 290
Pause it when you start it.

Code:
Pause

Cnt = 1
Loop
   {
      Send, {F%Cnt%}
      Sleep, 5000
      Send, {F8}
      Sleep, 5000
      If Cnt = 7
         {
            Cnt = 0
            Sleep, 640000
         }
      Cnt++
   }

Insert::Pause
Return

_________________
My AutoHotkey Program for Warcraft III:
Warkeys
http://warkeys.sourceforge.net/

Remap your hotkeys
Healthbars always on
Remap inventory


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2007, 1:46 am 
Offline

Joined: October 5th, 2006, 8:47 pm
Posts: 13
ow ic just adding "pause" in the first line...thanks to both of you for adding pause and shorten my script...thank you alot...


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, Hodofca, Pulover, rbrtryn, sks, vsub and 28 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