GreatBarrier86 Posted January 20, 2009 Share Posted January 20, 2009 Hi, I tried out AutoItX today in my C# environment and i noticed that unlike native AutoIT development, this version requires that you use all the available overloads. For instance, in SciTE, you could just do WinWaitActive("Network Connections"), but in C#, i had to do AutoIT.WinWaitActive("NetworkConnections", "Network", 10"). The problem is, i dont need the last two overloads. Is there a way around this? or is this a limitation of C#? Link to comment Share on other sites More sharing options...
ReFran Posted January 20, 2009 Share Posted January 20, 2009 (edited) Hi,I tried out AutoItX today in my C# environment and i noticed that unlike native AutoIT development, this version requires that you use all the available overloads. For instance, in SciTE, you could just do WinWaitActive("Network Connections"), but in C#, i had to do AutoIT.WinWaitActive("NetworkConnections", "Network", 10"). The problem is, i dont need the last two overloads. Is there a way around this? or is this a limitation of C#?It's the same in VBS/WSH., but I wouldn't say "... overload" to it.Otherwise you can leave out "(", ")" and you can write different commands in one line, what is especially helpfull for much sleep and send statements :-)HTH, Reinhard Edited January 20, 2009 by ReFran Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 20, 2009 Share Posted January 20, 2009 ReFran, overloading is a technique where multiple functions can share the same name but differ by parameters. GreatBarrier86, the functions aren't actually overloaded, but have optional parameters. C# does not have a mechanism for optional parameters. Neither do COM objects, as far as I know. Link to comment Share on other sites More sharing options...
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