 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
GuestDE Guest
|
Posted: Wed Aug 03, 2005 7:03 pm Post subject: how can i insert 45 seconds wait time ? |
|
|
how can i insert 45 seconds wait time ? between my actions ?
sorry for my bad english |
|
| Back to top |
|
 |
Pasukun
Joined: 16 Dec 2004 Posts: 84
|
Posted: Wed Aug 03, 2005 7:04 pm Post subject: |
|
|
Sleep, 45000 _________________
"the things we touch have no permanence. my master would say: there is nothing we can hold onto in this world.. only by letting go can we truly possess what is real..." |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 7:06 pm Post subject: |
|
|
| wow, thtas quickly answer thx a lot |
|
| Back to top |
|
 |
guestDE Guest
|
Posted: Wed Aug 03, 2005 7:17 pm Post subject: sorry question again |
|
|
i need 45 sec. pause between two actions
example
hi (enter)
pause 45 seconds
nice to meet you (enter)
pause 45 seconds
and so ...
-------------
you say i must insert Sleep, 45000
i do it but , anything is wrong, you need to help me again ?
this is my test example
++++++++++++++++++++++
WinWait, FreeChat @ Webkicks.de - Mozilla Firefox,
IfWinNotActive, FreeChat @ Webkicks.de - Mozilla Firefox, , WinActivate, FreeChat @ Webkicks.de - Mozilla Firefox,
WinWaitActive, FreeChat @ Webkicks.de - Mozilla Firefox,
Send, hi {ENTER}
Sleep, 45000
alles{SPACE}klar{SPACE}{SHIFTDOWN}[{SHIFTUP},{ENTER}
Sleep, 45000
but this dosent works ????????? |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 7:19 pm Post subject: |
|
|
Send, hi {ENTER}
Sleep 45000
alles{SPACE}klar{SPACE}{SHIFTDOWN}[{SHIFTUP}{ENTER}
Sleep 45000
Does that work?  |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 7:24 pm Post subject: |
|
|
| ok i have found the error, thanks a lot |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 9:38 pm Post subject: |
|
|
| ok last one, how can i make an repeat funktion ? loop ? |
|
| Back to top |
|
 |
delta
Joined: 16 Feb 2005 Posts: 44
|
Posted: Wed Aug 03, 2005 10:03 pm Post subject: |
|
|
Even faster is http://www.autohotkey.com/docs/commands.htm.
You can do loops with, e.g.
| Code: | loop, %loopcount%
{
...
}
|
The loop variable is called A_Index. So if you run this script
| Code: | loop, 5
MsgBox, Cycle number %A_Index%
|
you will get five message boxes saying "Cycle number 1" ... "Cycle number 5". You can also make infinite loop if you omit the count, i.e.
You can exit any loop with "break".
There are some more useful loops, e.g. to parse a string. Have a look at the link above. |
|
| 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
|