Jump to content
Sign in to follow this  


Recommended Posts


I'm new to ActiveX/COM.

The following code gives me an error:

private static AutoItX3Lib.AutoItX3Class autoit = new AutoItX3Lib.AutoItX3Class();

private void button1_Click(object sender, EventArgs e)


autoit.WinMenuSelectItem("Intel ® PROSet/Wireless", "Wireless networks found. Select", "&Tools", "Administrator &Tool... Ctrl+T");


Error 1 No overload for method 'WinMenuSelectItem' takes '4' arguments


Share this post

Link to post
Share on other sites
Richard Robertson

You say you are doing this in C#? C# cannot account for optional arguments, why I still don't know.

You'll have to add nulls or "" for all the extra optional item parameters. There are 9 parameters altogether.

WinMenuSelectItem("Intel ® PROSet/Wireless", "Wireless networks found. Select", "&Tools", "Administrator &Tool... Ctrl+T", "", "", "", "", "")

See if that works.

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.