08-19-2005, 09:03 AM
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 ....
,...
,...
...
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 ....
,...
,...
...
