I have been working with AutoItX for a while now. I needed to write a program in VB.NET that would interact with multiple other windows programs. So far, I have had no trouble working with the various controls - getting / setting text from textboxes, clicking buttons, moving sliders, etc. I thought I was about finished and the last things I have to do is be able to interact with checkboxes (and radiobuttons). I thought it would be fairly straightforward, but I haven't been able to figure it out, and searching around this forum hasn't solved it for me yet. I would appreciate any help that I can get. I figure this must be a standard thing to want to do, so I must be missing something.
What I thought I needed to do was a command like
Dim state As Integer
state = AutoIt.ControlTreeView(MainName, "", 1073, "IsChecked", "", "")
and then just evaluate state to see if it is a -1,0,1. This doesn't seem to do anything though. MainName is the title of the form and the checkbox handle is 1073. I am not sure about putting the extra1 and extra2 as "", "" - but it gives me a syntax error if I don't put something for the optional extras.
I must be missing something. I thought I should be able to toggle the state by using the following to click on it (just like a button), but it doesn't do anything either.
AutoIt.ControlClick(MainNameThermoTrak, "", 1073)
So, the last things I need to work out is how to check the state of checkboxes and radiobuttons in a different windows application, and how to check / uncheck them.
On a side question: From what I can tell, the AutoItX.dll doesn't have the fully library of controls in it. Is there a way to add them and gain the full functionality of the AutoIt library when using the DLL inside a vb.net program?