DarkFrost Posted March 29, 2009 Share Posted March 29, 2009 How to click TrayIcon ? Without the use of "MouseClick X ,Y " ? May Be Used "PixelSearch" ? >>>> Window <<<< Title: Class: Shell_TrayWnd Position: -2, 770 Size: 1284, 32 Style: 0x96840000 ExStyle: 0x00000188 Handle: 0x00030040 >>>> Control <<<< Class: ToolbarWindow32 Instance: 1 ClassnameNN: ToolbarWindow321 Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:1] ID: Text: Position: 1108, 3 Size: 126, 18 ControlClick Coords: 88, 5 Style: 0x56008B4D ExStyle: 0x00000080 Handle: 0x0003004A >>>> Mouse <<<< Position: 1198, 782 Cursor ID: 2 Color: 0xD4D0C8 Link to comment Share on other sites More sharing options...
Bert Posted March 30, 2009 Share Posted March 30, 2009 umm. controlclick? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
DarkFrost Posted March 30, 2009 Author Share Posted March 30, 2009 umm. controlclick?how click TrayIcon Using controlclick ? Link to comment Share on other sites More sharing options...
Authenticity Posted March 30, 2009 Share Posted March 30, 2009 #include <GuiButton.au3> #include <GuiToolBar.au3> Dim $hButton = ControlGetHandle('[CLASS:Shell_TrayWnd]', '', '[CLASS:Button; INSTANCE:2]') Dim $hToolBar = ControlGetHandle('[CLASS:Shell_TrayWnd]', '', '[CLASS:ToolbarWindow32]') _GUICtrlButton_Click($hButton) _GUICtrlToolbar_ClickIndex($hToolBar, 10) Link to comment Share on other sites More sharing options...
MagnumXL Posted April 3, 2009 Share Posted April 3, 2009 #include <GuiButton.au3> #include <GuiToolBar.au3> Dim $hButton = ControlGetHandle('[CLASS:Shell_TrayWnd]', '', '[CLASS:Button; INSTANCE:2]') Dim $hToolBar = ControlGetHandle('[CLASS:Shell_TrayWnd]', '', '[CLASS:ToolbarWindow32]') _GUICtrlButton_Click($hButton) _GUICtrlToolbar_ClickIndex($hToolBar, 10) Ok I see how this works, but how do I determine which icon it is clicking? So I can insure that it always clicks the right one. Thanks in advance! Link to comment Share on other sites More sharing options...
Authenticity Posted April 3, 2009 Share Posted April 3, 2009 ConsoleWrite(_GUICtrlToolbar_GetButtonText($hToolBar, _GUICtrlToolbar_IndexToCommand($hToolBar, 11)) & @LF) Volume, on my system. 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