Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Close window

by kodo (Hermit)
on Aug 19, 2002 at 09:45 UTC ( [id://191123]=note: print w/replies, xml ) Need Help??


in reply to Close window

Have a look at Win32::GuiTest. You can push Buttons of a dialog-window with it, which should do the job.

giant

Replies are listed 'Best First'.
Re: Re: Close window
by Anonymous Monk on Aug 20, 2002 at 08:08 UTC
    so if I understand you correctly, when my dialog window opens I can get gui to automatically push the
    close button in the top right ?. Is it possible you can point me in the right direction as to what function or
    command I will need to use to achieve this.
    harry
      Hi Harry!

      Well it depends on what your dialog-box looks like. Usually you have an "okay" and "cancel" button or something. Then you could use the PushButton/PushChildButton-Function which works great. But of course you have to do a findwindow() etc before, read the POD for more info.
      Another way is to solve the problem via sendkeys(), you could send ALT+SPACE and then c to close it via the drop-down-menu.
      If all of this doesn't work, have a look at other Win32:: Modules, I currently don't remember the name but there is one which helps you to kill an app what should help also.

      giant

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://191123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found