Good day.
I've been having some difficulties getting going with AutoItX.
What I am trying to do is to use AutoItX within PowerShell to automate some difficult GUI interactions in an application I have.
I am not trying to execute AU scripts but rather wish to programmatically call AutoItX function call inside a powershell script.
So far all documentation I have found shows the exact same:
1. Register the correct AutoItX DLL (by arch)
2. Create a "New-Object" and
3. Call the method needed.
And so far all the code samples I have found look the same,(e.g:This should simply launch an instance of notepad.)
<code>
$AutoIt = New-Object -ComObject AutoItX3.Control $result = $AutoIt.Run("notepad.exe")
</code>
The problem is that this ".Control" is not available (though a "Control.Tasksymbol" is seen"
So my questions are:
1. How can I determine that the DLL is indeed registered in Windows?
2. What is the correct way to "make available" to powershell, the contained methods of AutoItX ?
3. Should/ should not ".Control" show up in the intellisense/autocomplete?
Thanks!
M.