Doppio Posted August 16, 2007 Posted August 16, 2007 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.
Richard Robertson Posted August 16, 2007 Posted August 16, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now