Method Reference
ControlGetHandle
Retrieves the internal handle of a control
ControlGetHandle "title", "text", "controlID"
Parameters
| title | The title of the window to read. |
| text | The text of the window to read. |
| controlID | The control to interact with. See Controls. |
Return Value
| Success: | Returns a string containing the control handle value. |
| Failure: | Returns "" (blank string) and sets oAutoIt.error to 1 if no window matches the criteria. |
Related
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") handle = oAutoIt.ControlGetHandle("Untitled - Notepad", "", "Edit1")