programProject1; uses
Windows, Forms, Unit1 in
'Unit1.pas' {Form1}; {$R *.RES} begin
if
GetKeyState(vk_F8) < 1 then
MessageBox(0, 'F8 was pressed during startup', 'MyApp', mb_ok); Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end
.