Jump to content
Sign in to follow this  
JasmineD

Ho to Auto Close a window

Recommended Posts

JasmineD

Hi friends,

I'm a new user here....so sorry for my stupid question, please help me...

i wrote below code,

WinClose("[CLASS:Notepad]", "")
WinClose("[CLASS:Wordpad]", "")
WinClose("[CLASS:Paint]", "")
WinClose("[CLASS:Notepad]", "")

but it close two notepad only....i tried several ways but it didn't close wordpad and paint.

also i want to auto close a internet explorer pop-up and My Computer window.

please somebody help me,

Thank You,

Jasmine Davis.

Share this post


Link to post
Share on other sites
JoHanatCent

Hi friends,

I'm a new user here....so sorry for my stupid question, please help me...

i wrote below code,

WinClose("[CLASS:Notepad]", "")
WinClose("[CLASS:Wordpad]", "")
WinClose("[CLASS:Paint]", "")
WinClose("[CLASS:Notepad]", "")

but it close two notepad only....i tried several ways but it didn't close wordpad and paint.

also i want to auto close a internet explorer pop-up and My Computer window.

please somebody help me,

Thank You,

Jasmine Davis.

Jasmine, did you use AI Window Info tool to determine the class or just took a wild guess?

If I use this it seems to work:

WinClose("[CLASS:Notepad]", "")
WinClose("[CLASS:WordPadClass]", "")
WinClose("[CLASS:MSPaintApp]", "")
WinClose("[CLASS:Notepad]", "")

Share this post


Link to post
Share on other sites
skin27

By the way you can find the tool in the menu: Tools --> AU3Info or press Ctrl F6. Just drag the finder tool on the window and you get the info about the Class.

Share this post


Link to post
Share on other sites
Andreik

And next time be careful where you post. This is Example Scripts Forum.


When the words fail... music speaks

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  

×