Code: Select all
Wait, 100
Code: Select all
SetTimer, 100, ..
Code: Select all
#NoEnv
SendMode Input
otime := A_TickCount
toggletc := true
delay := 0
DelayCounter:
if (toggletc) {
delay := A_TickCount - otime
otime := A_TickCount
SetTimer, DelayCounter, 1000
}
F1::
MsgBox, %delay%
F2::
toggletc := !toggletc
Wenn ich den Timer mit 10 starte kommt delay bei 15-16 raus, bei 1000 schwankt es zwischen 1000 und 1032.
Das gleiche gilt übrigens auch für Wait + Goto.
Kann ich irgendwas tun, um das zu beheben?