Jump to content

Recommended Posts

Posted

And another odd behavior: When I put the two scripts in the Programs/Startup folder, only one would run.

But when I click each shortcut manually, they both run fine.

Odd.

Posted

I'm trying to launch an au3 file from within an au3 file using the Run command, and it errors out every time.

Is this forbidden?

Run() and RunWait() don't work with anything that isn't an executable. You will want to look at SlimShady's _ShellExecute() UDF.
Posted

Simply more advantages to not compiling.

The AutoItExe macro uses the AutoIt that started your initial script.

Example:

RunWait(@AutoItExe & ' "' & @ScriptDir & '\Script.au3"')
Posted

Simply more advantages to not compiling.

The AutoItExe macro uses the AutoIt that started your initial script.

Example:

RunWait(@AutoItExe & ' "' & @ScriptDir & '\Script.au3"')

That's great. Works. But there are two autoit.exe's running now. How can I kill the initial script without killing the second one?

RunWait(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"')

sleep (3000)

ProcessClose("AutoIt3.exe")

Doesn't work.

Posted

Change:

RunWait(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"')

sleep (3000)

ProcessClose("AutoIt3.exe")

to

Run(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"')

[size="1"][font="Arial"].[u].[/u][/font][/size]

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