http://www.perlmonks.org?node_id=1004963


in reply to usage of pushbutton

It's clear (from facts draw out during CB conversation) we're talking about Win32::GuiTest, I suggest you spend some time reading the documentation and learning from the examples in Win32::GuiTest::Examples. Again, read and understand How do I post a question effectively?, you've yet to explain your "problem" properly.

Replies are listed 'Best First'.
Re^2: usage of pushbutton
by nisu (Initiate) on Nov 21, 2012 at 17:28 UTC
    Im refering Win32::GuiTest itself. I have gone through calculator example and im using that . Can you please tell me how to use PushButton command to click OK or Cancel in any installation screen. If that works, i can proceed further without any problem.

      The buttons for the application are most likely different from that of calc.exe. A google search for the names of the tools you claimed to be using shows GUI tests automation - Tutorial (among other) which is a good starting point.

      Again you've not given any specific information. I know you are new to this site, and perhaps to Perl and programming in general, however basic problem solving skills are required regardless of the language. You haven't shown an example of what you've tried, or explained how it doesn't work. In order to make it easier for people to help you, please read and understand the links I have already provided.

        Yes Marto, I will refer to links which you provided and will proceed further. If i come across any issues I will get back to you.
        hi.. this is the code which i wrote..
        #!/usr/bin/perl use Win32::GuiTest qw( FindWindowLike PushButton ); $path = 'C:\Symantec DLO\setup.exe'; system("$path"); PushButton('00001F35') ; sub PushButton { $result = "00001F35"; print "res :$result"; }
        It is printing result properly. But im not able to do push button.

      Can you please tell me how to use PushButton command to click OK or Cancel in any installation screen. If that works, i can proceed further without any problem.

      What happened when you tried, did it work?

      See Win32/OLE related tutorials/examples/resources , there is a good number of guitest related tutorials utilities