Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: usage of pushbutton

by nisu (Initiate)
on Nov 22, 2012 at 06:33 UTC ( #1005067=note: print w/replies, xml ) Need Help??

in reply to Re^3: usage of pushbutton
in thread usage of pushbutton

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.

Replies are listed 'Best First'.
Re^5: usage of pushbutton
by marto (Bishop) on Nov 22, 2012 at 09:27 UTC

    You have redfined PushButton for no reason, so you're not using the module you claim to have studied. I have no idea why, or what you think this should be doing. You assign a value to $result, and print it to the screen. Nothing more. Why don't you actually read and understand the example code for pushbutton I pointed you to yesterday. Note that your code doesn't do anything like this. Learn from a working example and apply the working method to your problem. Please use code tags when posting code, advice to do so is displayed each time you post and in How do I post a question effectively?.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005067]
[LanX]: so that's where you've been the last two years? Compiling Python?
[zentara]: LanX no! I was learning why Krishna made me into a unicorn. :-)
[LanX]: The old chromosone question ... Why Y???

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-03-30 16:51 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (362 votes). Check out past polls.