Sign in to follow this  
Followers 0
kramed

Execute .au3 scripts via AutoItX?

11 posts in this topic

Hello,

Great piece of software you have here, very impressive.

Anyways I would like to know if it is possible to execute regular .au3 scripts via the AutoItX .dll ? I need to automate several simple tasks in many different ways (each requiring a seperate script) on machines that will not have AutoIt. I know it is possible to use compiled scripts but was hoping that I could include the support to run the script in my program.

What are my other options if this is not possible? Compiling each script? Reading through the license it appears that distributing the Autoit3.exe is legal as long as the help chm is included. Am I clear on that issue?

Thanks,

Mark

Share this post


Link to post
Share on other sites



No.

If you want to execute scripts though, you can compile a single blank script and distribute that, then use the command line to execute a script from it. I forget the syntax, but it's in the help file.

Share this post


Link to post
Share on other sites

I'm not sure if this is correct...

$ScriptPath = @ScriptDir & "\Hello.au3")
Run(@AutoItEXE & " " & $ScriptPath)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I'm not sure if this is correct...

$ScriptPath = @ScriptDir & "\Hello.au3")
Run(@AutoItEXE & " " & $ScriptPath)
It's not.

Edit:

look for /AutoIt3ExecuteScript

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

It still works for me though... :)

Share this post


Link to post
Share on other sites

It still works for me though... :)

Because you have autoit installed on that machine :)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Oh.. :)

Share this post


Link to post
Share on other sites

Yes, a compiled script won't be able to run a script that way, it'll need the extra parameter.

Share this post


Link to post
Share on other sites

Thanks, appears to be working well so far.

Share this post


Link to post
Share on other sites

This tip works great. I now advise my Intelliremote users who need more functionality than AutoITX can provide to just execute the full scripts this way. Very cool!


----------------------------------------------------------------------------------------Melloware Inchttp://www.melloware.comHome of Intelliremote, take back control of your HTPC!www.intelliremote.com-----------------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites

#11 ·  Posted

OOOOOOOOOOOOOOOOOOh! :)


[center]I LOVE ALGERIA .... ;-)[/center]

Share this post


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
Sign in to follow this  
Followers 0