Sign in to follow this  
Followers 0
Kivin

Update question

9 posts in this topic

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



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

What is the error-message ? Are you sure you have the newest version of AutoIt ?

MsgBox(64, "", @AutoItVersion)

Share this post


Link to post
Share on other sites

I have 3.2.0.1 version

Share this post


Link to post
Share on other sites

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

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

Thank you for help, Helge & Zedna! :)

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