| View previous topic :: View next topic |
| Author |
Message |
Tricky
Joined: 10 Mar 2005 Posts: 3 Location: Turkiye
|
Posted: Thu Mar 10, 2005 8:18 am Post subject: StatusBarGetText Problem |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Thu Mar 10, 2005 8:56 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Thu Mar 10, 2005 8:57 am Post subject: |
|
|
| Does RUMBA provide any realtime-logfile-creation ? |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Thu Mar 10, 2005 9:45 am Post subject: |
|
|
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 |
|
 |
Tricky
Joined: 10 Mar 2005 Posts: 3 Location: Turkiye
|
Posted: Thu Mar 10, 2005 10:03 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Thu Mar 10, 2005 10:09 am Post subject: |
|
|
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 |
|
 |
Tricky
Joined: 10 Mar 2005 Posts: 3 Location: Turkiye
|
Posted: Thu Mar 10, 2005 11:28 am Post subject: |
|
|
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 |
|
 |
|