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 pause script until a spefic string appears in...

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



Joined: 18 Sep 2004
Posts: 60

PostPosted: Thu Feb 24, 2005 7:27 pm    Post subject: How pause script until a spefic string appears in... Reply with quote

Hi-
I need to pause my script until "#CurrentSimulationStockList" appears in the 'TitleMatchMode=slow Visible Text section' of Windows spy (see below). Have not been able to figure out what AHK command to use Mad Sad Embarassed


>>>>( TitleMatchMode=slow Visible Text )<<<<
Smart Charts
#CurrentSimulationStockList
Current
Current

Can anybody please help me Smile

More details: Winspector says that "#CurrentSimulationStockList" appears in a ComboBox
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Feb 24, 2005 7:53 pm    Post subject: Reply with quote

Documentation wrote:
SetTitleMatchMode, Slow
WinWait,, #CurrentSimulationStockList, 3
if not ErrorLevel
MsgBox,The window was found.


Does that work?
Back to top
View user's profile Send private message
SAbboushi



Joined: 18 Sep 2004
Posts: 60

PostPosted: Thu Feb 24, 2005 8:05 pm    Post subject: Reply with quote

thanks jonny-
your code works. Sadly, my assumption was wrong and I need to pause longer than when that text appears in the window...

I hate to use sleep, 3000 (which seems to work...) - any other thoughts on how I can identify an event or something else to pause execution until?
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