Jump to content

Need Help with getting info for controls


Recommended Posts

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 :whistle:

You're not blind, you need Windows API calls for this so I don't think you'll find it in the Autoit help

Search 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 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

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

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...