Jump to content

How can I refresh the system tray?


Recommended Posts

Thank you for the tip SlimShady! I have been able to finish my AutoIt Killer script:

AutoItKiller.au3:

Opt("WinTitleMatchMode", 3)
AutoItWinSetTitle("AutoIt Killer"); Give this script a different name so it doesn't kill itself off

$window_name = "AutoIt v3"

While (WinExists($window_name))
    WinClose($window_name)
WEnd

This works well for the most part but will prove imperfect if I start naming my AutoIt script windows. But I have not had to yet and if I do I shall deal with it on a case-by-case basis.

edit: Actually I could just name my AutoIt scripts with a standard prefix like "Christopher Blue's *blah* *blah*". That would allow me to successfully search and close all AU3 windows without losing the ability to differentiate between them for programming purposes. So I spoke too soon I guess...your method rocks SlimShady! :)

Edited by Christopher Blue
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...