Ghost21 Posted March 6, 2007 Share Posted March 6, 2007 Everyone I have been pissing around with this for a week now and it driving me crazy... When you have the Yellow Windows Shield ( ) and in your system tray.. All I would like to do is get the Automatic Updates window to pop up on the screen. ..Found the pictures on the net.. PLEASE HELP Link to comment Share on other sites More sharing options...
JohnBailey Posted March 6, 2007 Share Posted March 6, 2007 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 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 Link to comment Share on other sites More sharing options...
Ghost21 Posted March 6, 2007 Author Share Posted March 6, 2007 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... Link to comment Share on other sites More sharing options...
JohnBailey Posted March 6, 2007 Share Posted March 6, 2007 http://www.autoitscript.com/forum/index.ph...&hl=processCheck this out too, but Larry's suggestion may be exactly the direction you want to head. A decision is a powerful thing Link to comment Share on other sites More sharing options...
Ghost21 Posted March 6, 2007 Author Share Posted March 6, 2007 $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 $hwndLoop 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 functionI 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... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 6, 2007 Moderators Share Posted March 6, 2007 Thats GREAT !!! Now to find the library...Just find PaulIA and it is in his signature... 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now