I am unable to get any information about a started program
Posted: Sun Nov 24, 2024 8:35 pm
I found myself unable to get information about a program started with RunProgram.
Too make things simple I wrote the following code lines:
The program desktopOK is started.
The debug output is:
-1311699904
not valid
Whatever of the functions
IsProgram(); ProgramID(); ProgramRunning(); WaitProgram(); KillProgram(); ProgramExitCode(); CloseProgram()
I try, I always get the error line: Not a valid program.
What am I doing wrong?
Too make things simple I wrote the following code lines:
Code: Select all
p.l = RunProgram("C:\Users\hd\Desktop\DesktopOK_x64.exe", "", "", #PB_Program_Open)
Debug p
If IsProgram(p)
Debug "ok"
Else
Debug "not valid"
EndIf
The debug output is:
-1311699904
not valid
Whatever of the functions
IsProgram(); ProgramID(); ProgramRunning(); WaitProgram(); KillProgram(); ProgramExitCode(); CloseProgram()
I try, I always get the error line: Not a valid program.
What am I doing wrong?