Jump to content

Can I run .AU3 script files?


Recommended Posts

I got AutoIt3X installed in Delphi. I already know how to do most of its functions using the Windows API though. I was hoping I could use the ActiveX to run the .AU3 files. Is this possible?

Example: A user of my Delphi program could specify (in an INI) a seperate .AU3 script for different actions inside the program.

I was hoping my Delphi code would look like this:

AutoIt3X.RunScript('c:\myscript.au3');

Link to post
Share on other sites

I got AutoIt3X installed in Delphi.  I already know how to do most of its functions using the Windows API though.  I was hoping I could use the ActiveX to run the .AU3 files.  Is this possible?

Example:  A user of my Delphi program could specify (in an INI) a seperate .AU3 script for different actions inside the program.

I was hoping my Delphi code would look like this:

AutoIt3X.RunScript('c:\myscript.au3');

<{POST_SNAPBACK}>

Hello RPM_VR4,

The AutoItX control uses only a subset of the commands available in AutoIt3.exe. So you can't use the control to run .AU3 scripts.

Instead you could let Delphi call the Autoit3.exe program to run a script. You can return values from the script to the Delphi program by using the AutoIt3 exit(<number>) statement. That's however limited to integer values.

Regards,

-Sven

Link to post
Share on other sites

Reproduction and Distribution. You may reproduce and distribute an

unlimited number of copies of the SOFTWARE PRODUCT; provided that

each copy shall be a true and complete copy, including all copyright

and trademark notices, and shall be accompanied by a copy of this

EULA. Copies of the SOFTWARE PRODUCT may be distributed as a

standalone product or included with your own product.

Commercial Use.  You may sell for profit and freely distribute scripts

and/or compiled scripts that were created with the SOFTWARE PRODUCT.

You may not reverse engineer or disassemble the SOFTWARE PRODUCT.

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to post
Share on other sites

You can use AUT2EXE to compile your script into an EXE and just distribute that.

<{POST_SNAPBACK}>

But I want users of my embedder/skining application to be able to create their own AutoIt startup / button press scripts.
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...