Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Problems with WIN32::GUITEST

by newtondavide (Initiate)
on Jan 25, 2013 at 20:42 UTC ( #1015403=perlquestion: print w/ replies, xml ) Need Help??
newtondavide has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install a version of perl that works with WIN32::GUITEST. I found dwimperl "http://dwimperl.com/windows.html" and installed it. I then went to CPAN and tried the calculator program "http://search.cpan.org/~karasik/Win32-GuiTest-1.60/lib/Win32/GuiTest/Examples.pm#eg/calc.pl".

I tried running both:

perl calc.pl mouse perl calc.pl keyboard

They both seemed to run without error but did not return the correct result. Both brought up the windows Calculator fine. In the keyboard case none of the Pushbutton code seemed to work. In the Mouse case the code seem to get the windows from calculator but the mouse click did not seem to work.

Any help would be appreciated. Is it user error?,does dwimperl work with WIN32:GUITEST (should I use something other than dwimperl - if so what?), is it a problems window version I am using (windows 7).

Thankyou in Advance

David Newton

Comment on Problems with WIN32::GUITEST
Download Code
Re: Problems with WIN32::GUITEST
by BrowserUk (Pope) on Jan 25, 2013 at 21:53 UTC

    This is ActiveState Perl 5.10.1 which came with GuiTest pre-installed:

    C:\test>calc keyboard Result: 35. C:\test>calc mouse Result: 35.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: Problems with WIN32::GUITEST
by Anonymous Monk on Jan 26, 2013 at 01:57 UTC

    dwimperl isn't different than any other win32 perl, it should work with Win32::GuiTest without problem

    However, Windows7 is an unknown quantity :)

Re: Problems with WIN32::GUITEST
by dasgar (Deacon) on Jan 26, 2013 at 05:22 UTC

    Like you, I'm running dwimperl on Windows 7 Home Premium 64-bit. When I tried running the code, the printed result was blank and the calculator never did do anything.

    To make a long story short, I ended up tweaking the code to get it to work. I believe that the calculator app in Windows 7 must be designed differently that the calculator app in previous Windows version.

    For those that want to gory details and my tweaked version of the code, here's a summary my debug process. (Also, some of the info might be useful for others wanting to use Win32::GuiTest to automate applications.)

      To make a long story short, I ended up tweaking the code to get it to work. I believe that the calculator app in Windows 7 must be designed differently that the calculator app in previous Windows version.

      Makes sense, with each new windows version microsoft introduces a new "theme", eventually the details have to change (classnames, extra parent windows, etc etc :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1015403]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-12 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls