Jump to content
Sign in to follow this  

Need a way to close child window

Recommended Posts



I have two windows open- parent & child. I need these windows to close for futher execution of my script

I have been facing some difficulty in closing the child window. I have tried using:

$handle=WinGetHandle("Child window title","") -> (If I substitute the Title with 'parent window title', only parent window gets closed.)



WinClose=("[ACTIVE]") ->( closes my commad prompts/ autoit editor)


WinKill=("[ACTIVE]") -> (kills my commad prompts/ autoit editor)

I tried adding AutoItSetOptions as well (WinTitleMatchMode/ WinSearchChildren/ WinDetectHiddenText) but in vain.

Looks like it's not detecting the child window at all. Would really appreciate some help here!


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this