IanN1990 Posted July 19, 2012 Share Posted July 19, 2012 (edited) Code at the moment basicly gets the handle of what ever window is at the mouse. Local $tStruct = DllStructCreate($tagPOINT) $SystemMousePosition=MouseGetPos() DllStructSetData($tStruct, "x", $SystemMousePosition[0]) DllStructSetData($tStruct, "y", $SystemMousePosition[1]) $SystemMouseHandle = _WinAPI_WindowFromPoint($tStruct) What i would like to do now is something like If WingetClass($SystemMouseHandle) = "[Class:#32768]" then consolewrite("A menu has been hovered") endif Does anyone have any idea how i could do this ? Edited July 19, 2012 by IanN1990 Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2012 Share Posted July 19, 2012 _WinAPI_GetClassName My other projects or all Link to comment Share on other sites More sharing options...
IanN1990 Posted July 19, 2012 Author Share Posted July 19, 2012 ah it was hidden away in the _WinAPI's. Thanks Azjio 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