Jump to content

Ho to Auto Close a window


Recommended Posts

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.

Link to comment
Share on other sites

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]", "")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...