Kivin Posted January 21, 2007 Posted January 21, 2007 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?
Zedna Posted January 21, 2007 Posted January 21, 2007 It's working fine. If you want to run and not open for edit then try: ShellExecute("C:\~\Test.au3", "", "", "run") Resources UDF ResourcesEx UDF AutoIt Forum Search
Kivin Posted January 21, 2007 Author Posted January 21, 2007 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?
Helge Posted January 21, 2007 Posted January 21, 2007 What is the error-message ? Are you sure you have the newest version of AutoIt ? MsgBox(64, "", @AutoItVersion)
Kivin Posted January 21, 2007 Author Posted January 21, 2007 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
Helge Posted January 21, 2007 Posted January 21, 2007 Unknown function name...exactly. You need to update your AutoIt to the newest, which is 3.2.2.0.
Zedna Posted January 21, 2007 Posted January 21, 2007 I have 3.2.0.1 versionTo use ShellExecute() you must have latest 3.2.2.0 version. Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now