Hi there,
I am trying to emulate a button being clicked using AutoIt, on a C# WinForms (.net 2.0) GUI. The problem is the ID and Handle seem to change everytime the button is opened, I have tried this method:
ControlClick("myForm", "", 1001)
But the button ID changes everytime the GUI form is opened. So I tried this using the buttons Handle instead:
#Include <GuiButton.au3>
Send("{tab 5}")
_GUICtrlButton_Click(0x001804D6)
This tabs to the button, then forces a click, but the handle changes everytime the GUI is opened! Anyone know how I can specify that particular button to click, say using something like _GUICtrlButton_Click() ? Ideally I'd rather not use the button name, as there is a chance this might be duplicated.
Thanks!