Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Win32::CtrlGui::wait_for_window is only partially working

by fglock (Vicar)
on Feb 28, 2005 at 20:53 UTC ( #435189=note: print w/replies, xml ) Need Help??


in reply to Win32::CtrlGui::wait_for_window is only partially working

Try inserting a pause:

use Win32::CtrlGUI; my $window = Win32::CtrlGUI::wait_for_window(qr/Notepad/); sleep 1; $window->send_keys("!fx");

I had a similar problem, with an application that was taking too long to finish drawing it's window.

If you had the same problem, you would have to check if specific fields inside the window are already drawn before sending keys.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435189]
help
Chatterbox?
[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???
[zentara]: Y succeeds X then preceeds Z . There is a deep meaning in that :-)

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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.