Jump to content

running scripts from c++


Recommended Posts

Hi,

Im new to Autoit, im using AutoItx3.dll to run its functions form C++. I need access to SysTray to close application. I found scripts that can do this but my question is:

How can I run existing scripts or functions form C++??

do I have to rewrite them adding "AU3_" before every function. Is there any chance it would work. Is there any other way? Moreover can I rewrite every script so that it works in C++.

thaks for your attention :whistle:

Link to comment
Share on other sites

Moreover can I rewrite every script so that it works in C++.

Not every single script can be rewritten.

do I have to rewrite them adding "AU3_" before every function

You need to change the syntax of the scipt as well.

Is there any chance it would work.

Depends on the script.

Why not just use C++'s system() function with a compiled AutoIt script as the parameter?

#)

Link to comment
Share on other sites

thanks for your help :whistle:

Why not just use C++'s system() function with a compiled AutoIt script as the parameter?

Yes that's the way, it would work but, It's not good/elegant solution :) I need C++ API to it as it should be extendible and scalible. Putting a system invocation of exe file makes it very much uneditable :)

Not every single script can be rewritten.

im thinking of this one, do you think it's possible to rewrite it ??

http://www.autoitscript.com/forum/index.ph...ost&id=5938

:~)

Link to comment
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
 Share

  • Recently Browsing   0 members

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