Jump to content

How can I use WPF controls in Autoit?


RomanY
 Share

Recommended Posts

Hi all,

I have simple question and can not find answer on it. I am working with WPF application and I want to automate it with Autoit. For now I found Inspect.exe tool which gives me all wpf controls, but how do I can use that controls to click some buttons or dropdown list?

For example I have such a controls

AutomationId:    "comboArrayType" or 

Name:    "_Submit"
Which autoit command can I use to handle this?

Thanks and Regards, Roman Y

Edited by RomanY
Link to comment
Share on other sites

Use this tool, and output the 'control' tab back here...

"C:\Program Files (x86)\AutoIt3\Au3Info.exe"

 

Assuming your control actually is a combo, you can use these functions:

ControlCommand

Or one of they many:

_GUICtrlComboBoxEx_* functions...one such example:

_GUICtrlComboBoxEx_SetCurSel

 

Edit: oops, not standard control...nevermind :)

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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

×
×
  • Create New...