Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Abfragen des Input (https://www.delphipraxis.net/131282-abfragen-des-input.html)

christheg 23. Mär 2009 17:59

Re: Abfragen des Input
 
also eleganter wäre dann zb

Delphi-Quellcode:
procedure TForm1.StartesequenzielleAufnahme1Click(Sender: TObject);
begin
  while QAPIExtReadDI32(handle, 0, 0) = 0 do
  Aufnahme:=true; AnsichtUpdate1Click(self); //aktualisiere Menüs
  if form1.IniEinzelbild then begin
     // Foto - Sequenz
     timer1.Interval:=form1.IniIntervall*1000;
     TimerStatus:=TSBildFolge;
     timer1.Enabled:=true;
  end else begin
     // Video - Folge
     TimerStatus:=TSvideoFolge;
     repeat
       label1.Caption:='Videoaufnahme';
       NextDateiname;
       EinVideo;                                       // aufnehmen
       Timer1.Interval:=form1.IniEinzelVideoDauer*1000;
       timer1.Enabled:=true;
       repeat
         Application.ProcessMessages;                  //Abbruchmöglichkeit 1 
       until TimerStatus<>TSvideoFolge;
       label1.Caption:='Videoerholpause';
       EinVideoStop;                                   // erholen
       Timer1.Interval:=form1.IniErholzeit;
       timer1.Enabled:=true;
       repeat
         Application.ProcessMessages;                  //Abbruchmöglichkeit 1 
         label1.Caption:=inttostr(timer1.interval)+'x'+inttostr(Timerstatus);
       until TimerStatus<>TSvideoFolgePause;
     until TimerStatus=TSStopAnforderung;             // abbruch? 
     Aufnahme:=false;
     AnsichtUpdate1Click(self);
  end;
end;

kann es leider erst morgen testen von daher die vielen fragen sry :/


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:03 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz