Sign in to follow this  
Followers 0
Doppio

WinMenuSelectItem

2 posts in this topic

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

Thanks.

Share this post


Link to post
Share on other sites



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  
Followers 0