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 

StatusBarGetText Problem

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



Joined: 10 Mar 2005
Posts: 3
Location: Turkiye

PostPosted: Thu Mar 10, 2005 8:18 am    Post subject: StatusBarGetText Problem Reply with quote

Hi,

My problem is using StatusBarGetText command with a specific program. Firstly I have never faced any problem using it in my different applications. The program which I want to get text from its statusbar is RUMBA. I don't know if anyone had used it before but i am using it as tn3270 application to connect a mainframe. If anyone can help me to get the text from its statusbar i will be greatful. An example of the simple script that i am using is given below.


StatusBarGetText, stext , 1 , RUMBA Mainframe Display
msgbox, %stext%


Thanks for your concern.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Thu Mar 10, 2005 8:56 am    Post subject: Reply with quote

Idea If the StatusBar won't respond, what about to catch the "appearance" of the string within that specific area ?

Quote:
ImageSearch [v1.0.26+]
--------------------------------------------------------------------------------
Searches a region of the screen for an image.

ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile

a) make a screenshot of the statusbar text message (used as a pattern) & cut it down to its minimum scale
b) use AHK's ImageSearch command to search for that pattern

Hope that helps.
Gruß in die Türkei Cool
Back to top
BoBo
Guest





PostPosted: Thu Mar 10, 2005 8:57 am    Post subject: Reply with quote

Does RUMBA provide any realtime-logfile-creation ?
Back to top
Serenity



Joined: 07 Nov 2004
Posts: 1276

PostPosted: Thu Mar 10, 2005 9:45 am    Post subject: Reply with quote

Tricky, using Winspy, is the classNN of the statusbar in RUMBA msctls_statusbar321?
The StatusBarWait/StatusBarGetText commands only works with this ClassNN.
If it isn't, you could try using GuiControlGetText instead.
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Tricky



Joined: 10 Mar 2005
Posts: 3
Location: Turkiye

PostPosted: Thu Mar 10, 2005 10:03 am    Post subject: Reply with quote

Hi serenity,
I used winspy and ClassNN of Rumba is wd_Statusbar1. Is there any way to change the classNN like modifying the dll's of Rumba.

And bobo thanks for your advice bu i need what is written on the statusbar so using imagesearch will be only a partial solution.

Almanya'ya Selamlar Smile
Back to top
View user's profile Send private message
Serenity



Joined: 07 Nov 2004
Posts: 1276

PostPosted: Thu Mar 10, 2005 10:09 am    Post subject: Reply with quote

Have you tried ControlGetText? It can retrieve text from any control, simply specify the classNN like so:

Code:
ControlGetText, statusbartext, wd_Statusbar1, Rumba
msgbox, statusbar text: %statusbartext%


You'll need to specify the real window class/title where I've put Rumba.
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Tricky



Joined: 10 Mar 2005
Posts: 3
Location: Turkiye

PostPosted: Thu Mar 10, 2005 11:28 am    Post subject: Reply with quote

I have tried controltext bu it does not work either.
Thanks for your help. I think I should find another way to get the text.
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