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 

StatusBar retrieving text and taking action

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






PostPosted: Mon Nov 16, 2009 11:23 am    Post subject: StatusBar retrieving text and taking action Reply with quote

i want to take action depending on the message posted on the statusbar but in the help file its written tht it works with standard bars hw abt my gui statusbar its nt standard??? then how i should retrieve the text and take appropriate action

Run C:\xyz.exe
WinWaitActive XYZ
;StatusBarWait, State, , , XYZ
StatusBarWait, State: Ok, 30
if ErrorLevel
MsgBox, The command timed out or there was a problem.
else
MsgBox, The search successfully completed.

i tried with the above code but it didnt worked i mean no message displayed......
Back to top
Guest






PostPosted: Mon Nov 16, 2009 6:50 pm    Post subject: Reply with quote

is XYZ an ahk program?
if not, did u try window spy to see if the text is there?
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 1158
Location: San Diego, California

PostPosted: Mon Nov 16, 2009 8:41 pm    Post subject: Reply with quote

And you need to know in what part of the statusbar the information appears. I used "AutoIt3 Window Spy" to get typical I.E. statusbar info.
Thats 12 parts that could have text.
Quote:

>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
(1): (10 items remaining) Waiting for http://www.autohotkey.com/forum/viewtopic.php?t=51197...
(2):
(3):
(4):
(5):
(6):
(7):
( 8 ): Phishing Filter is checking this website
(9):
(10):
(11): Internet | Protected Mode: Off
(12):
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Nov 17, 2009 8:37 am    Post subject: Reply with quote

thanks man...but its not showing anything under statusbar information of autospy tool
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 1158
Location: San Diego, California

PostPosted: Tue Nov 17, 2009 9:49 am    Post subject: Reply with quote

what is the real name of the program ?
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Nov 17, 2009 10:05 am    Post subject: Reply with quote

its a gui tool of mine developed in labwindows
Back to top
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