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 

Loop control

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mighty-f



Joined: 12 Sep 2005
Posts: 216

PostPosted: Wed Sep 14, 2005 11:19 pm    Post subject: Loop control Reply with quote

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



Joined: 14 Sep 2005
Posts: 21

PostPosted: Thu Sep 15, 2005 3:43 am    Post subject: Reply with quote

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



Joined: 12 Sep 2005
Posts: 216

PostPosted: Thu Sep 15, 2005 4:02 am    Post subject: Reply with quote

thanks for you reply... it worked well Smile

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



Joined: 14 Sep 2005
Posts: 21

PostPosted: Thu Sep 15, 2005 11:18 am    Post subject: Reply with quote

Quote:
Suspends all hotkeys except those explained the Remarks section.


http://www.autohotkey.com/docs/commands/Suspend.htm
Back to top
View user's profile Send private message
Display posts from previous:   
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