JohnOne Posted July 7, 2010 Share Posted July 7, 2010 I just recently installed VC# Express and VC++ Express (the free studio one) Im wondering if the same procedure is true of C++ as it is of the OP of this thread? I'm back to complete noob again regarding these, and Ive even read every thread in this section of the forum from page 26 to 1 . So I'm hoping the answer is "Yes". AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 9, 2010 Share Posted July 9, 2010 No. C++ use of the dll is nothing like the .Net reference noted in the first post. It would be significantly easier to just include the header file provided with the installation (might be part of the help file, I can't remember) and call the functions DLL style. Link to comment Share on other sites More sharing options...
Chromebuster Posted August 6, 2010 Share Posted August 6, 2010 Hi folks, I was just wondering. I've got a person on one of the mailing lists I belong to, and he is having issues with arguments in C# with console applications. He is trying to use arguments on the command line and then have the program simply exit with no user intervention. He can't seem to do this in C#. I myself am not an expert, but I am learning C#. My question is, can he use AutoIt to take care of the exit function and then have the dll called in his C# program? If so, how would he go about doing this? He didn't post much code, so unfortunately, I am unable to duplicate anything. Please let me know. Thanks in advance! Chromebuster Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 6, 2010 Share Posted August 6, 2010 (edited) C#'s Main function handles command line arguments. All you have to do is set up the function to take a string[] parameter.int Main(string[] args) { if (args.Length == 1 && args[0] == "/exit") return 0; }Also, this wasn't really the right place to ask such a question. Basic programming should be delegated to a textbook. Edited August 6, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
Chromebuster Posted August 6, 2010 Share Posted August 6, 2010 Okay, I'm very sorry. It's just that I felt that he was receiving wrong information. Link to comment Share on other sites More sharing options...
Belfigor Posted December 28, 2010 Share Posted December 28, 2010 How to use AutoItX in C# in Microsoft Visual Studio 2010 ? [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size] Link to comment Share on other sites More sharing options...
jvanegmond Posted December 29, 2010 Share Posted December 29, 2010 How to use AutoItX in C# in Microsoft Visual Studio 2010 ?The process to add a reference (see first post) hasn't changed since Visual Studio 2005. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Belfigor Posted December 29, 2010 Share Posted December 29, 2010 (edited) This code shows me an error when im trying to launch it in MVS 2010 on win7 x64 Edited December 29, 2010 by Belfigor [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size] Link to comment Share on other sites More sharing options...
Belfigor Posted December 30, 2010 Share Posted December 30, 2010 Works fine in MVS 2008 on win7 x64 [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size] Link to comment Share on other sites More sharing options...
GreatKing Posted March 7, 2011 Share Posted March 7, 2011 When trying the example using VS 2010 and .net 4 I received the following error on the definition of au3 "Interop type 'AutoItX3Lib.AutoItX3Class' cannot be embedded. Use the applicable interface instead". This is exactly what I did: changed AutoItX3Lib.AutoItX3Class (class) to AutoItX3Lib.AutoItX3 (interface). Problem solved. Link to comment Share on other sites More sharing options...
raviii Posted April 2, 2014 Share Posted April 2, 2014 hii, i am doing project on c# and want to add autoit file which i have created, can u plz give a example how to use it in c#. Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 2, 2014 Share Posted April 2, 2014 hii, i am doing project on c# and want to add autoit file which i have created, can u plz give a example how to use it in c#. AutoItX is not for running AutoIt scripts. Link to comment Share on other sites More sharing options...
raviii Posted April 3, 2014 Share Posted April 3, 2014 hello Richard Robertson, using autoit script i have created a vlc player and this i want to add in my c# coding ,by using c# code i want to operate vlc player which i have created using autoit script. thank u. Link to comment Share on other sites More sharing options...
LegitStack Posted September 8, 2015 Share Posted September 8, 2015 I found this helpful, thanks!I wish, however, that I could import c# functionality into the autoitscript instead of the other way around because I'm not a programmer, I don't know c# but I can manage in autoit.Thanks OutShynd! Link to comment Share on other sites More sharing options...
JonnyQuy Posted June 18, 2018 Share Posted June 18, 2018 (edited) how do i add library au3 example:(ImageSearch.au3) into C# ? Edited June 18, 2018 by JonnyQuy Link to comment Share on other sites More sharing options...
Earthshine Posted June 18, 2018 Share Posted June 18, 2018 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
JonnyQuy Posted June 18, 2018 Share Posted June 18, 2018 i want add library .au3, can i do this? 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