Jump to content
Sign in to follow this  
killaz219

Control under mouse?

Recommended Posts

killaz219

I was wondering if there is anyway to get the control under the mouse using autoit? Kind of like the Au3spy does.

Share this post


Link to post
Share on other sites
themax90

Um, I don't think it's possible, you would have to use original windows calls and there are no functions currently that do that. But I may be wrong.

Share this post


Link to post
Share on other sites
CyberSlug

I did something similar with this... which detects what control was clicked.

Main idea:

Use WinGetClassList to get listing of controls.... call ControlGetPos on each control and compare to mouse position...


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
themax90

Wow I didn't know it was possible. I guess it's cause those are one of the few functions I havn't used. You can create a function

Like

While 1

_GetControl

WEnd

Func _GetControl

Wingetclasslist

blah blah blah

If something goes over mouse

Confirm with mouse position

show info in window

endif

End Func

Edit:Instead of writing something I just put in descriptions.

Edited by Agent Smith

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.