Jump to content

Update question


Kivin
 Share

Recommended Posts

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?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...