AutoHotkey Community

It is currently May 27th, 2012, 6:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 6th, 2006, 5:11 am 
I'm running macros on company software and from time to time system window popups show up which I have set timer close. Problem is if I am in the middle of a string on the current thread the string goes out of wack when ahk closes the popup mid string.

Would it be possible to pause the current thread, close the popup with the timer, and continue with the thread even if it is mid string?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2006, 10:11 am 
Offline

Joined: April 17th, 2005, 7:47 pm
Posts: 289
Location: Sauerland
Quote:
Problem is if I am in the middle of a string ...
Do you mean string operations or the execution of a script line?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2006, 4:42 pm 
Offline

Joined: December 15th, 2004, 10:24 pm
Posts: 303
Location: United States
In your popup-close timer, perhaps use ControlSend or WinClose specifying a parameter, instead of something like Send !{F4}, or use ControlClick, instead of using MouseClick.
EDIT: Same for the main macro. The object is to specify the window (and control) instead of just sending to the active window. The reason why the macro does not behave as intended when the popup appears, is that it is most likely sending commands to the popup instead of your target window, and so after the popup disappears, the target window has missed receiving some commands.
As an alternative, perhaps you could specify Critical at the top of the popup-close timer, but after the timer is finished executing, there might still be the possibility of window-activation timing-issues.

_________________
1) The Open Source Definition http://www.opensource.org/docs/definition_plain.php

2) Intuitive. Logical. Versatile. Adaptable. <<AutoHotkey>>


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], hd0202 and 56 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