Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title Bar
#1
Title Bar

Can someone please tell me how to get and use the information in the Title Bar? I would like to take the information that is in the Title Bar and depending on what the information is, at the time I ask for it, I would be able to do different things with it. I would like to store a part of the information or all of the information in a variable and use that variable in my macro at a latter time.


Thank You

Big Grin :wink: Big Grin
#2
The following code gets Internet Explorer title bar text.

str s ;;variable for text
int hwnd=win("" "IEFrame") ;;find window with class name IEFrame
s.getwintext(hwnd) ;;get its title bar text
out s ;;display it

if(s.beg("Google - ")) ;;if begins with "Google - " ...
,...
,...
else if(s.beg ....
,...
,...
...
#3
This works great however, lets say that I just want part of the information like Google - Microsoft "Internet" Explorer or "Google" - Microsoft Internet Explorer.



How do I get that


:roll:
#4
Use function find to find string in string. In QM 2.1.7, use matchw to compare strings using wildcard characters. Read more in Help.
#5
Thank You; I have not put it to use however, it is exactly what I asked for!




:!: Tongue :!:


Forum Jump:


Users browsing this thread: 1 Guest(s)