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 

how can i insert 45 seconds wait time ?

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





PostPosted: Wed Aug 03, 2005 7:03 pm    Post subject: how can i insert 45 seconds wait time ? Reply with quote

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

PostPosted: Wed Aug 03, 2005 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Wed Aug 03, 2005 7:06 pm    Post subject: Reply with quote

wow, thtas quickly answer thx a lot
Back to top
guestDE
Guest





PostPosted: Wed Aug 03, 2005 7:17 pm    Post subject: sorry question again Reply with quote

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






PostPosted: Wed Aug 03, 2005 7:19 pm    Post subject: Reply with quote

Send, hi {ENTER}
Sleep 45000

alles{SPACE}klar{SPACE}{SHIFTDOWN}[{SHIFTUP}{ENTER}
Sleep 45000


Does that work? Question
Back to top
Guest






PostPosted: Wed Aug 03, 2005 7:24 pm    Post subject: Reply with quote

ok i have found the error, thanks a lot
Back to top
Guest






PostPosted: Wed Aug 03, 2005 9:38 pm    Post subject: Reply with quote

ok last one, how can i make an repeat funktion ? loop ?
Back to top
delta



Joined: 16 Feb 2005
Posts: 44

PostPosted: Wed Aug 03, 2005 10:03 pm    Post subject: Reply with quote

Even faster is http://www.autohotkey.com/docs/commands.htm. Wink

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.
Code:
loop
{
...
}

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