Jump to content

How get who is under mouse


 Share

Recommended Posts

If i have a script who go slowly with mouse trought the windows

post-62354-0-98547000-1294942548_thumb.p

Local $y = $posWin[1]
 Local $y1 = 0;
        While $y < $posWin[3] + $posWin[1]
            Local $x = $posWin[0]
            Local $x1 = 0
            While $x < $posWin[2] + $posWin[0]
                            MouseMove ( $x, $y, 1000000 )
                
                        $x = $x + 1
                $x1 = $x1 + 1
            WEnd
            $y1 = $y1 + 1
            $y = $y + 1
        WEnd

Can I get info about button under? O tooltip? O do test click?

Link to comment
Share on other sites

Can you define what $posWin[0,1,2,3] are? Do you want to read the popup info in the windows 7 taskbar to a variable or what?

$posWin[1] and so on is

Local $hWnd = WinGetHandle("classname=TrayNotifyWnd")
Local $posWin = WinGetPos($hWnd)

So I get TrayNotifyWnd

$array[0] = X position

$array[1] = Y position

$array[2] = Width

$array[3] = Height

I am traying in all ways get true x and y position of one of all tray notification icon (for exampe winamp), because I want to MouseClickDrag it near win clock bar... It is one of my ways :x

Link to comment
Share on other sites

I have run into issues with programs that have been closed that still keep their icon in the taskbar in Windows 7. It happens with my autoit scripts every time.

LOL I think I just figured out what you want to do. Click on the 2 arrows on the right side of the 2-3 icons in the task bar and click customize... and put a check mark in Always show all icons and notifications on the taskbar.

Is that what you were trying to do?

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
Share on other sites

The problem I see is that the position of the icon you want always moves based on the number of items in the tray. If you want to identify a specific icon you could scan for a few pixel positions and colors and if they matched then you could have it auto drag. I think it will be slow this way though.

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...