Sign in to follow this  
Followers 0
Ghost21

CHALLENGE

6 posts in this topic

Everyone I have been pissing around with this for a week now and it driving me crazy... When you have the Yellow Windows Shield ( Posted Image ) and in your system tray.. All I would like to do is get the Automatic Updates window to pop up on the screen. Posted Image ..

Found the pictures on the net.. PLEASE HELP :whistle:

Share this post


Link to post
Share on other sites



There may be a much better method, but here's my idea.

Search the forums for further (more than the manual describes) information on trayicons OR find out what the process name is and do some window @SW_SHOW things. I bet some one is going to chew me out for this :whistle: because it's so vague. It's also a little difficult for me to test since I have the most recent updates already on my machine. I hope that helps a bit.

Cheers


A decision is a powerful thing

Share this post


Link to post
Share on other sites

Get Auto3lib and this will get you started...

#include <A3LToolbar.au3>

Opt("WinTitleMatchMode",4)

$hwnd = ControlGetHandle("classname=Shell_TrayWnd","","Notification Area")

$n = _Toolbar_ButtonCount($hwnd)

For $i = 1 to $n
    $a = _Toolbar_IndexToCommand($hwnd,$i)
    If StringInStr(_Toolbar_GetButtonText($hwnd,$a),"Updates are ready") Then
        _Toolbar_ClickButton($hwnd, $a)
    EndIf
Next

Not to be an ass.. But you think you explain just general whats going on...

Share this post


Link to post
Share on other sites

$hwnd gets the handle of the system notification area of the taskbar... (the area with the clock)

$n gets the number of buttons (icons) in the tray... the tray being represented by $hwnd

Loop through 4 times checking the text from each icon... (the text being the tooltip that pops up from the icon)

... $a is a conversion of the icon instance (index) to an icon ID

... until the text contains ("Updates are ready")

...... found an icon with text "Updates are ready" so use $a in the click function

I have a medical (or religious, whatever gets me out of it) inability to go into more detail.

Lar.

Thats GREAT !!! Now to find the library...

Share this post


Link to post
Share on other sites

Thats GREAT !!! Now to find the library...

Just find PaulIA and it is in his signature...

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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  
Followers 0