Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

ackme's scratchpad

by ackme (Scribe)
on Jun 04, 2004 at 23:39 UTC ( #361271=scratchpad: print w/ replies, xml ) Need Help??

Just some junk that worked for me
#!/usr/bin/perl -w use strict; #adstuff.pl v .01 #01/04/04 by ackme #next step is to get it to open Ad-Aware all by itself my @windows; use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow SendKeys SendMouse PushButton PushChildButton +MouseMoveAbsPix PushButton); $Win32::GuiTest::debug = 1; # Set to "1" to enable verbose mode my ($hwindDisplay) = FindWindowLike(0, "^Foo", ""); $hwindDisplay or die("Could not open Foo\n"); SetForegroundWindow($hwindDisplay); MouseMoveAbsPix(140, 380); SendMouse ("{LEFTCLICK}"); [notes] # for (@windows) { # print "$_>\t'", GetWindowText($_), "'\n"; # SetForegroundWindow($_); #SendKeys("%fn~a{TAB}b{TAB}{BS}{DOWN}"); #SendKeys("~"); #coordinates = 650 x 463 y #so figure it out! # SendMouse("LEFTCLICK"); # } #print grrrrr
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-03 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls