Sign in to follow this  
Followers 0
mamyte03

Need help with tray Icon Possition

1 post in this topic

Hello,

I need help with tray icons positions.

I have script:

;Button1 Press
        Local $trayHwnd = _FindTrayToolbarButton(2)
        Local $return = -1
        Local $ret = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $trayHwnd, "dword*", 0)
        ;ConsoleWrite(@CRLF & $ret[2] & @CRLF)
        $RECT = DllStructCreate("int;int;int;int")
        ;Need to get Button1 true handler
        $ret1 = DllCall("user32.dll", "int", "MapWindowPoints", "hwnd", 0x000100D2, "int", 0, "ptr", DllStructGetPtr($RECT), "int", 2)
        Local $pos2[2]
                    $pos2[0] = DllStructGetData($RECT, 1)
                    $pos2[1] = DllStructGetData($RECT, 2)
                    $return = $pos2
        ;ConsoleWrite(@CRLF & $pos2[1] & $pos2[0] & @CRLF)
        MouseMove ( $pos2[0], $pos2[1], 3 )
        MouseClick("left")
;=> button1 click

It press "Show Hidden Icons" button.

Now I can see TrayNotifyWnd.

How can I get icons positions, for MouseClickDrag? O How i can get icons widht-height ?

I need to Find for example communicator icon and drag it to visible tray icon area.

post-62354-0-79798900-1294926759_thumb.p

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