Autor Beitrag
Unknown
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mo 06.11.06 14:18 
HI, wie gehtz
könntet ihr mir das beatworten...
zwei sachen :
-Wie kann ich machen,dass bei einer bestimmten Situation der Rechner sinngemäß runterfährt. (z.b If ... then Runterfahrn;)
-Ich will den Timer so anstellen (Interval) das er jede Sekunde(ca. GENAU) seine Sache macht.

Moderiert von user profile iconGausi: Erste Frage ausgeblendet und Titel geändert. Bitte nur auf die andere antworten.
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Mo 06.11.06 14:34 
1) mit der Function ExitWindowsEx aus der WinApi
2) Timer1.interval := 1000; oder was ?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 06.11.06 15:02 
Titel: Re: Runterfahren und sekundentakt
user profile iconUnknown hat folgendes geschrieben:
-Ich will den Timer so anstellen (Interval) das er jede Sekunde(ca. GENAU) seine Sache macht.

Window ist kein Echtzeit-Betriebssystem, sondern ein Nachrichten basierendes. Zu dem haben die WM_TIMER Nachrichten eine sehr geringe Priorität. Deswegen die Frage warum es so genau sein muss.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 06.11.06 15:04 
Ich hab mal eine der beiden Fragen ausgeblendet. Da beide schon beantwortet waren, hab ich sie nicht gelöscht.
Die andere Frage (Windows herunterfahren) bitte in einem neuen Thread nochmal stellen.

Hier gehts jetzt also weiter mit dem Sekundentakt :)

_________________
We are, we were and will not be.
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mo 06.11.06 16:03 
Also ist Intervall:=1000 gleich einer sekunde.
Warum ich det brauch:...............................Stopuhr
Falls mir noch jemand bei Frage 2 helfen will www.delphi-forum.de/...terfahren_66356.html
zum Thema Herunterfaehereren
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 06.11.06 16:07 
OK. Und warum muss die Stoppuhr unbedingt so genau sein? Was willst du messen? Eventuell schafft ein Multimediatimer Abhilfe.
Unknown Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 184

Win XP
Delphi 7
BeitragVerfasst: Mo 06.11.06 19:05 
Nein ist ok thx
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mo 06.11.06 19:20 
user profile iconUnknown hat folgendes geschrieben:
-Ich will den Timer so anstellen (Interval) das er jede Sekunde(ca. GENAU) seine Sache macht.

Also so ungefähr "(ca. GENAU)" eine Sekunde sollte sogar der Standarttimer schaffen. :mrgreen::mrgreen::mrgreen:
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 06.11.06 19:23 
Gibste mal in der Suche "Zeitmessung" ein für deine Stoppuhr ;) Das sollte ungefähr genau hinkommen...