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 when the script running at the first time

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mikuni



Joined: 05 Oct 2006
Posts: 9

PostPosted: Fri Sep 21, 2007 12:25 am    Post subject: Pausing when the script running at the first time Reply with quote

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...
Back to top
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 502

PostPosted: Fri Sep 21, 2007 12:36 am    Post subject: Reply with quote

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...

Back to top
View user's profile Send private message
POINTS



Joined: 18 Jan 2006
Posts: 284

PostPosted: Fri Sep 21, 2007 1:05 am    Post subject: Pause Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
mikuni



Joined: 05 Oct 2006
Posts: 9

PostPosted: Fri Sep 21, 2007 1:46 am    Post subject: Reply with quote

ow ic just adding "pause" in the first line...thanks to both of you for adding pause and shorten my script...thank you alot...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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