AutoHotkey Community

It is currently May 24th, 2012, 1:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Loop
PostPosted: July 1st, 2007, 12:53 am 
I need some help to break a Loop, I start a loop and then i want to press a hotkey to stop the loop.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2007, 1:23 am 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
This has been answered so many times its getting to be very annoying.

Learn to use the search tool.

Using the search tool I uncovered 17 posts. Heres the code I think you're looking for:
Code:
BreakLoop := False
Loop,
  {
    If BreakLoop
    Break
    IfWinActive, Untitled - Notepad
    send, Loop Active {enter}
    sleep 3000
  }
Msgbox Loop Broken!
return

#s:: BreakLoop := True


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2007, 1:34 am 
thx, i probably searched wrong or something but when i searched "loop" i didnt get anything related to that but whatever.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2007, 1:51 am 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
Trying using at least 3 words that define what you're asking for
Example: "Breaking loop with hotkey"


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: Bing [Bot], BrandonHotkey, fragman, Google Feedfetcher, hd0202, jyloup, tantalus00 and 17 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