[430b5]Problems with ReadProgramString()
Posted: Thu Dec 04, 2008 7:23 pm
moin, moin...
I have compiled this for console:
Now I call it this way:
I get debugged:
TIA...
scholly
I have compiled this for console:
Code: Select all
If OpenConsole()
title.s = ""
Repeat
title + ProgramParameter()
Until ProgramParameter() = ""
PrintN("data = start")
PrintN("title = "+title)
PrintN("otitle = The silence of the lambs")
PrintN("year = 1990")
PrintN("country = USA")
PrintN("regie = Jonathan Demme")
PrintN("mmactor = Anthony Hopkins")
PrintN("mfactor = Jodie Foster")
PrintN("fsk = 16")
PrintN("len = 108")
PrintN("type = feature movie")
PrintN("genre = psycho-thriller")
PrintN("data = end")
Delay(5000)
CloseConsole()
EndIf
End
Code: Select all
hProcess = RunProgram("plugin.exe","Das Schweigen der Lämmer","",#PB_Program_Open|#PB_Program_Read|#PB_Program_Hide)
If hProcess
Debug "No something should appear..."
Repeat
Debug ReadProgramString(hProcess)
Until ProgramRunning(hProcess) = #False
CloseProgram(hProcess)
EndIf
End
What am I doing wrong?No something should appear...
d
t
o
y
c
r
m
m
f
l
t
g
d
TIA...
scholly