UPDATED Notes: ===============================================================================
UPDATED: My main and second questions answered. Here the answers:
To add/access WinMenuSelectItem you need to [Thanks to Fernando_Marinho]: Add AutoItX.Dotnet in Manage NuGet Packages Right Click in your Project -> Add -> Reference... -> COM ( Type Libraries )than, check the option AutoItX3 1.0 Type Library using AutoItX3Lib; AutoItX3 au3 = new AutoItX3(); au3.WinMenuSelectItem("", ...) My full source code in C# exists in 11 posts in below. How to access those overloaded methods in AutoitX3 that are not accessible via above method!? Or how to fix AutoitX3 DLL Registration need in target computers without Autoit pre-installed on them!? Please check my post at 14 posts below!
=============================================================================== Original Post:
I was writing a small app in Autoit to close µTorrent app. It was working. Then I try to import AutoItX into C#, but unfortunately this method
WinMenuSelectItem Couldn't find by IntelliSense and If I typed completely it still give me this message:
Please check the image. I Google it and I found this QA at stackoverflow: Autoit error within C# application I saw they use this line:
au = new AutoItX3Lib.AutoItX3Class(); I figure it how to add 'AutoItX3Lib' to project (by adding 'AutoItX3.dll' to reference) but again! When I use this line:
var au = new AutoItX3Class(); I got this error message: Interop type 'AutoItX3Class' cannot be embedded. Use the applicable interface instead.
My system info:
Visual Studio 2017 Enterprise - v15.5.4
X64 Windows 10 Enterprise 1607
Thanks in advanced
I am using window XP in my desktop, so I want to convert basic disk to a dynamic disk, so how it is possible?
Hi all, Below is my script,
Pls advise me if any wrong on that....File exit in location but the return -1.
$line = FileReadLine($file)
Local $aArray = _FileListToArrayRec($serverpath, "*|*.txt", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_NOPATH)
If @error Then
MsgBox($MB_SYSTEMMODAL, "Ooops!", "No files found")
;_ArrayDisplay($aArray, "Sorted tree")
Local $hSearch = FileFindFirstFile($line)
I'm trying ot use controlClick to click on button. So I'm using the Window Info Finder tool. But I noticed that the control ID in windowInfo changes each time I restart the app.
Am I doing this wrong.
I am trying to use the ControlClick in a "save as"-window to select the path of where to save the document.
I found out that when in press the icon in front of the path, i select the path. So I am trying to press that button (i have attached a print screen of this window).
While trying to figure out how i had to use the ControlClick, it said somewhere that i could us Au3Info to find out what title,... i should use with the ControlClick.
The result of the Au3Info I have attached aswel.
The ControlClick that i tried are these: (and none of these even move the mouse)
ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "", "Left" ,1 ,10,10)
ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "1001", "Left" ,1 ,10,10)
ControlClick("[CLASS:ToolbarWindow32]", "", "", "Left" ,1 ,10,10)
ControlClick("Save project as", "", "", "Left" ,1 ,10,10)
I don't know what I am doing wrong.
Should I use a controlID? is my windowtitle wrong?
Can anyone help me?
Thanks in advance,