Jump to content
Sign in to follow this  
gc dublin

detect system tray icon pop up

Recommended Posts

gc dublin

Hi, when upgrading Microsoft VM security patch, there is a system tray icon pop up and I have to click on it and select install the vm patch.

Does any one know if I can use script to catch the system tray icon and answer the prompt?

Thanks.

Greg

Share this post


Link to post
Share on other sites
Paulie

Are you sure the only thing that happens is an icon appears? No new process or window of any kind?

If not, I think you are stuck pixelchecking, otherwise, try "ProcessExists()"

Share this post


Link to post
Share on other sites
PsaltyDS

Hi, when upgrading Microsoft VM security patch, there is a system tray icon pop up and I have to click on it and select install the vm patch.

Does any one know if I can use script to catch the system tray icon and answer the prompt?

Thanks.

Greg

Although it is a special class, it's still just a window. Run AU3Info.exe and get the info on the pop up. For example, you can run this script:
HotKeySet("{ESC}", "_Quit")

While 1
    TrayTip("Test", "Text", 5)
    Sleep(4000)
WEnd

Func _Quit()
    Exit
EndFunc

Start the script, which will create a tray icon with a tray tip message. You can use AU3Info on it and see something like this:

>>>> Window <<<<
Title:  Text
Class:  tooltips_class32
Position:   1017, 866
Size:   74, 77
Style:  0x940000C3
ExStyle:    0x00080088
Handle: 0x001A00EC

If it's addressable, you can automate it.

muttley


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×