Jump to content
Sign in to follow this  
Kivin

Update question

Recommended Posts

Kivin

I want, that my programm can run content of not compiled scripts *.au3.

I try to write

ShellExecute("C:\~\Test.au3", "", "", "edit", @SW_MAXIMIZE)

but there is error

What I must to do?

Share this post


Link to post
Share on other sites
Kivin

Sorry. I don't understand!

I made two files:

First - Start.exe

#include <GUIConstants.au3>
GUICreate("My GUI",200,50)
$Button = GUICtrlCreateButton ("Run Script",70,15)
GUISetState (@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    If $msg = $Button Then
        ShellExecute(@ScriptDir &"\test.au3", "", "", "run")
EndIf
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

When I push $Button (Start.exe) Autoit say:

^ Error

What I do wrong?

Share this post


Link to post
Share on other sites
Kivin

Error is

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Мои разработки\Программирование\Start.au3"

D:\Мои разработки\Программирование\Start.au3 (8) : ==> Unknown function name.:

ShellExecute(@ScriptDir &"\test.au3", "", "", "run")

^ ERROR

>Exit code: 0 Time: 1.430

Share this post


Link to post
Share on other sites
Helge

Unknown function name...exactly. You need to update your AutoIt to the newest, which is 3.2.2.0.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.