Calling getWindowText() is only going to return the 'windows text' which is usaully just the title of the window. In a browsers case, this ussually include the title of the web page as well (Look in the upper left corner of your browser window).
If you want the text that is being displayed, you could always save the file and then read it from your perl script. You could do that by the SendKeys() method, passing in a string like SendKeys("%(fs)").
This would first send a Control-F, which would invoke the file menu, then a Control-S, which would invoke "Save-As". Then you would have to deal with the resulting dialog as a new window. Just send the keys of where you want to save the file, then open it from your perl script.
Now, it would be very apparent to the user what you are doing. If you are writing spyware though, I'll wished I had never helped you...
But I am sure that you are not practicing the dark arts...
In reply to Re: Using Win32::GuiTest with Explorer_Server
by scmason
in thread Using Win32::GuiTest with Explorer_Server
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |