Problems? Is your data what you think it is? | |
PerlMonks |
Re: manipulating window positions on Win7by dasgar (Priest) |
on May 15, 2015 at 05:06 UTC ( [id://1126730]=note: print w/replies, xml ) | Need Help?? |
To add to BrowserUk's suggestion of using Win32::GuiTest, you might find a few other pieces of information useful. At times, you may need to find the ID of a window or a component of a window. Checkout Re: Win32::GuiTest control id for some information on how you can find these details. Alternatively, you should be able to find windows by their title's text and possibly some components by their label's text. Also, you mentioned using "Windows Terminal Sessions". I'm not sure how successful you will be running Win32::GuiTest code on one system to control GUI applications on a remote system via remote desktop connection. In fact, that's a scenario that I personally would try to avoid doing. I think you'll be more successful if you had the code running on the system whose GUI app(s) that you are trying to control. Even then, there's a few more gotchas to be aware of when trying to do this in a remote desktop session. Checkout Re: How to get handle of a window on desktop (this window is not created by perl code) for more details. One more thing. It's been a few years since I looked into automating a GUI application and I tried using both Win32::GuiTest and AutoIt. In both cases, I personally found it much easier to control a GUI by sending simulated keystrokes rather than trying to use simulated mouse clicks. In other words, if you can figure out how to drive the GUI app to get it to do what you want it to do using just your keyboard, you can now use that information to drive the GUI app via Win32::GuiTest. Just thought that I'd pass on some tips and tricks that I learned the hard way.
In Section
Seekers of Perl Wisdom
|
|