I have code like:
begin
RunProgram:=TProcess.Create(nil);
RunProgram.Commandline:= calc.exe ;
RunProgram.Execute;
RunProgram.Commandline:= notepad.exe ;
RunProgram.Execute;
RunProgram.Free;
end.
并且,在执行死刑后,我想睡觉或拖延。
I have code like:
begin
RunProgram:=TProcess.Create(nil);
RunProgram.Commandline:= calc.exe ;
RunProgram.Execute;
RunProgram.Commandline:= notepad.exe ;
RunProgram.Execute;
RunProgram.Free;
end.
并且,在执行死刑后,我想睡觉或拖延。
You had the right idea - it s Sleep
.
begin
RunProgram:=TProcess.Create(nil);
RunProgram.Commandline:= calc.exe ;
RunProgram.Execute;
Sleep(1000); // Adds a 1 second delay
RunProgram.Commandline:= notepad.exe ;
RunProgram.Execute;
RunProgram.Free;
end.
或许需要将<条码>Windows/code>单位(或可能有不同的单位——我不熟悉自由Pascal的单位安排)添加到<条码>。 能够编纂<代码>的条款 睡觉/密码功能。
I m doing an event manager in Freepascal Each event is an object type TEvent (=object), each kind of event must derive from this class. Events are differentiated by an integer identificator, assigned ...
I ve written a custom SDL GUI toolkit (source is on http://sourceforge.net/projects/lkgui/files/) and I m having an issue with an inherited object. When the object is within the main program, the ...
I have form with MainMenu and I want to intercept when the user selects a command item from a menu. This works in Delphi: type TForm1 = class(TForm) ... // Memo and MainMenu created protected ...
I am porting a Delphi application to FPC/Lazarus and this application shows info in splash screen. When unit has initialization section then this initialization section calls something like: Splash....
Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it ...
I ve done a simple search on the usual suspects(Google Code, Source Forge, SO) but did not find any hints of a project for AMF or Flash/Flex remoting. Has anyone stumbled on a project of this nature?
I am using Synapse for Delphi, but when during HTTP downloads, of course, the GUI freezes. Looking at the documentation, they suggest using the OnHeartbeat method. (See http://www.ararat.cz/...
I used to use Indy back in the Delphi 6 days, and I am playing with Indy 10 now. What I want to do is incredibly simple, but I don t see a simple way of doing it, so I must be missing something. ...