 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mikuni
Joined: 05 Oct 2006 Posts: 9
|
Posted: Fri Sep 21, 2007 12:25 am Post subject: Pausing when the script running at the first time |
|
|
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 |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 502
|
Posted: Fri Sep 21, 2007 12:36 am Post subject: |
|
|
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 |
|
 |
POINTS
Joined: 18 Jan 2006 Posts: 284
|
Posted: Fri Sep 21, 2007 1:05 am Post subject: Pause |
|
|
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 |
|
 |
mikuni
Joined: 05 Oct 2006 Posts: 9
|
Posted: Fri Sep 21, 2007 1:46 am Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|