Opening a text file with the run program() command, why does JSL pause?Hello!
I open a text file with the following command.
Until this text file is closed, JSL is in a waiting state and cannot perform operations later in JSL.

Automation and ScriptingData AccessWindowsRe: Opening a text file with the run program() command, why does JSL pause?How does this change the code?
win 7 64BIT
jmp 14
Thanks!
Re: Opening a text file with the run program() command, why does JSL pause?Run Program( executable( "I:\00\Em64\EmEditor.exe" ), options( {"C:\1\ABC.txt"} ) );Re: Opening a text file with the run program() command, why does JSL pause?Store the RunProgram object in a variable.
rp = Run Program( executable( "notepad.exe" ) );
If you don't keep the RunProgram object somewhere, JMP deletes the object. When the RunProgram object is deleted, it can't always force the remote program to terminate. It has to wait for the remote program to gracefully end.
Re: Opening a text file with the run program() command, why does JSL pause?Thank Craige!
Yes, I found other ways
Launch the text file with AHK
AHK
Run C:\1\ABC.txt
Just run the AHK through JSL and it will work.
run program(executable("I:\00\AHK\AutoHotkey.exe"),options({"D:\`AHK\TXT.ahk"}));