Jump to content

Recommended Posts

Posted

Hi, i was in need of something that would shutdown the pc when the firefox download window closes, so here it is! Added some more functions but in essence, gives you a list of the windows available, their pid, handle and asociated exe.

choose the method of detection, PID, window handle or executable, choose item from the list, click 'select window', and go away, when the window closes, the pc will shutdown.

The reason why i included these 3 options is because the firefox download window is tricky, since it has an constantly updated title with the percentage changing, it becomes harder to retrieve the correct pid or handle, but with the exe option it works.

Note regarding firefox: Only works, if the only firefox window open is the downloads one, you can change in options, in order to keep it open and close automatically after the download is over.

post-68092-0-78411600-1363056158_thumb.p

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

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
×
×
  • Create New...