Jump to content

Recommended Posts

Posted

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 :blink: .

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.

Posted

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.

  • 4 weeks later...
Posted

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

Posted (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 by Richard Robertson
  • 4 months later...
Posted

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]

Posted (edited)

This code shows me an error when im trying to launch it in MVS 2010 on win7 x64 Posted Image

post-34243-0-57613600-1293629551_thumb.p

Edited by Belfigor

[size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size]

Posted

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]

  • 2 months later...
Posted

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.

  • 3 years later...
Posted

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#.

Posted

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.

  • 1 year later...
Posted

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!

  • 2 years later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...