Jump to content
Sign in to follow this  
Israel

Executar arquivo au3 dentro do própio script

Recommended Posts

Boa tarde galera,

 

Queria saber se é possível através do código do meu script eu chamar e executar um outro arquivo au3. Eu consigo executar arquivos exe pela função Run(), mas queria saber se consigo executar um script pelo seu arquivo de origem.

 

 

vlw

 

Israel

Share this post


Link to post
Share on other sites

Sim, é possível.
Algo como isso:

ShellExecute("AutoIt3.exe", "/AutoIt3ExecuteScript teste.au3", @ScriptDir)

Para script compilado como a3x vale da mesma forma:

ShellExecute("AutoIt3.exe", "/AutoIt3ExecuteScript teste.a3x", @ScriptDir)
Edited by Luigi

Share this post


Link to post
Share on other sites

Do arquivo de ajuda:

 


Run a script using the interpreter:

AutoIt3.exe [/ErrorStdOut] [/AutoIt3ExecuteScript] filename [params ...] Execute the AutoIt3 script 'filename' with optional parameters

At its simplest: AutoIt3.exe myScript.au3 will run a standard AutoIt script 'myScript.au3' with no parameters.

Run a compiled script:

Compiled.exe [/ErrorStdOut] [params ...]
Execute a compiled AutoIt3 Script File produced with Aut2Exe.

Run a single line of code:

AutoIt3.exe [/ErrorStdOut] /AutoIt3ExecuteLine "command line"
Execute one line of code.

 

JS

  • Like 1

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  

×