Difference between revisions of "Talk:Executing External Programs"

From Free Pascal wiki
Jump to navigationJump to search
m (Removed old irrelevant stuff as promised in 2012)
(Dynamic Buffer for output)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== Not fount examples for started aplications windows managing ==
+
===Reading large output===
 
+
NB: use AProcess.Output.Read(Buffer'''[0]''', BUF_SIZE) for dynamic Buffer
''I'm seek examples for managen started applications.
 
My test example not work on Win XP :(''
 
 
 
  Var
 
    P1 : TProcess;
 
  BEGIN
 
    P1 := TProcess.Create(nil);
 
    P1.CommandLine := 'C:\Windows\notepad.exe';
 
    P1.Options := P1.Options + [poWaitOnExit];
 
    P1.Desktop := '\\.\DISPLAY2';
 
  \\ or
 
  \\P1.Desktop := '2';
 
  END.
 
 
 
''How to start or move started application to second display?''
 
 
 
=== Reply ===
 
Sorry, no idea. Please ask this question on the forum or mailing list... much more chance of knowledgeable people responding.
 
--[[User:BigChimp|BigChimp]] 12:37, 12 July 2012 (UTC)
 

Latest revision as of 21:00, 5 March 2017

Reading large output

NB: use AProcess.Output.Read(Buffer[0], BUF_SIZE) for dynamic Buffer