Kyler Carlson Posted September 20, 2006 Posted September 20, 2006 hey... i need the current control that is under the mouse. for some reason this doesn't work so i'm not sure how to do this. #include <GUIConstants.au3> ... Func enable() $a = GUIGetCursorInfo() If IsArray($a) Then ControlEnable("","",$a[4]) MsgBox(0,"",$a[4]) EndFunc
Kyler Carlson Posted September 21, 2006 Author Posted September 21, 2006 okay... i might of found out why... "GUIGetCursorInfo()" i think is only meant to work on the gui that is created by a script its running in... how does the autoit window info get its control id's? Thats more of what i'm looking for... for it to work with any window.
Skruge Posted September 21, 2006 Posted September 21, 2006 "GUIGetCursorInfo()" i think is only meant to work on the gui that is created by a script its running inThat's right. Use _ControlGetHandleByPos() in conjunction with MouseGetPos(). [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
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