DaProgrammer Posted July 5, 2007 Share Posted July 5, 2007 im probably just blind and cant find it in the help of scite but how do i get the id of a control ? (not 1 that i created) like the window info tool does with hovering over it ? thank you for your help Link to comment Share on other sites More sharing options...
martin Posted July 5, 2007 Share Posted July 5, 2007 (edited) im probably just blind and cant find it in the help of scite but how do i get the id of a control ? (not 1 that i created)like the window info tool does with hovering over it ?thank you for your help You're not blind, you need Windows API calls for this so I don't think you'll find it in the Autoit helpSearch the forums for examples of WindowFromPoint and ChildWindowFromPoint. ChildWindowFrom point will give you the handle to things like buttons but maybe not all controls. I'm not sure about static text for example. Edited July 5, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
DaProgrammer Posted July 5, 2007 Author Share Posted July 5, 2007 it was done by Larry, any1 knows how to modify this line to get the control ID and not handle ? $hwnd = DLLCall("user32.dll", "hwnd", "WindowFromPoint", "int", $point[0], "int", $point[1]) Link to comment Share on other sites More sharing options...
martin Posted July 5, 2007 Share Posted July 5, 2007 it was done by Larry, any1 knows how to modify this line to get the control ID and not handle ? $hwnd = DLLCall("user32.dll", "hwnd", "WindowFromPoint", "int", $point[0], "int", $point[1]) I think you need to do it the other way round. Get the handle of the control or window with GuiCtrlGetHandle, or WinGetHandle, and then compare that with the handle returned by WindowfromPoint. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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