AutoHotkey Community

It is currently May 27th, 2012, 1:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Loop control
PostPosted: September 15th, 2005, 12:19 am 
Offline

Joined: September 12th, 2005, 10:35 pm
Posts: 216
if i have a script like this maximize and minimize a Word document 10 times, now if i want to use the "pause"
command here, to pause the script after the loop has run 3 times,
How to do that?

Here is the script:

loop 10
{
winmaximize bravo - Microsoft Word
sleep 2000
winminimize bravo - Microsoft Word
sleep 1000
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2005, 4:43 am 
Offline

Joined: September 14th, 2005, 5:21 am
Posts: 21
How about this? Use a hotkey to pause and un-pause.
Code:
Loop 10
{
winmaximize bravo - Microsoft Word
sleep 2000
winminimize bravo - Microsoft Word
sleep 1000
}
ExitApp

#1::Pause   ; Press Win-1 anytime to pause or continue


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2005, 5:02 am 
Offline

Joined: September 12th, 2005, 10:35 pm
Posts: 216
thanks for you reply... it worked well :)

by the way, i have seen also a "suspend hotkeys"

when i right click any hotkey that is at my system tray.

Will it terminate all hotkeys?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2005, 12:18 pm 
Offline

Joined: September 14th, 2005, 5:21 am
Posts: 21
Quote:
Suspends all hotkeys except those explained the Remarks section.


http://www.autohotkey.com/docs/commands/Suspend.htm


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: Apollo, Bing [Bot], JSLover, sjc1000, Yahoo [Bot] and 20 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