Edge118 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have been messing around with the guitest module, and I used the MouseClick method to click on command buttons, but I was wondering if there was a similar way to click on checkboxes? Also, on some screens I am interacting with, there's a list of folders or "words" and I wanted to know if there's a way to click on a particular one based on the name of it? There's a group available on yahoo for this particular module, but I can't go to that right now since I'm work and they banned the site :(
Thanks for your help. I hope I wasn't too confusing.
I was looking at Win32::ActAcc and it seems more in depth than Win32::GuiTest. Do you think it might be better to use ActAcc instead?
Re: Win32::Guitest Module
by Albannach (Monsignor) on Jul 30, 2004 at 15:58 UTC
|
It's all going to depend on how much of this automation you need to do, and on what platforms. For starters, it appears that Win32::ActAcc will only work on Win2k+ (but please correct me if I'm wrong). It does indeed look powerful (haven't used it myself yet) but do you need all that power? Win32::OLE should probably be your first choice if it is applicable to the app you're working with anyway.
To the specifics, I handle checkboxes with Win32::GuiTest simply by sending {TAB} and {SPACE}. I'm not sure what you mean by lists of words, but if something is clickable you can also probaby use the tab and space method (though some fringe apps I've needed to control were poorly written and not all widgets are in the tab list, or sometimes the tab list is in a nonsensical order). I also tend to use hotkey shortcuts where they are available rather than GUI navigation as it is often clearer to read the intention of your code, and they are more often maintained across versions whereas widget layoutw.
--
I'd like to be able to assign to an luser
| [reply] [d/l] [select] |
|
Do you know how to make it do a left click in general and not on a button? So wherever my mouse pointer is positioned at that time, it will click, if you know what I mean.
Thanks.
| [reply] |
|
| [reply] |
|