You can use a script to get the Window Handle of a Control.
- Create a new script method.
- In the Using / Imports section add the following;
using OpenSpan.Adapters.Windows;
- The Parameters field should contain the following;
OpenSpan.Adapters.Controls.Control control
- The Result type should be int.
- The Method body should contain the following;
return ((Window) (control.Target)).Handle.ToInt32();

Article is in the following categories:
KB » Get Started» Recent Content
KB » Studio» Browse By Project Item» Automation
KB » Studio» Browse By Project Item» Windows Application
KB » Get Started» Recent Content
KB » Studio» Browse By Project Item» Automation
KB » Studio» Browse By Project Item» Windows Application




Leave A Comment
Email This Article