Criticalstatement is executed before any timer functions are called?
Code: Select all
#SingleInstance Force global StartTime := A_TickCount SetTimer "MsgBox1", -1 SetTimer "MsgBox2", -1,-1 SetTimer "MsgBox3", -1 ; Timers are enabled before auto-execute is set to Critical Critical global xxx:=1 ; xxx = 1 proves that Critical statement was executed before timer function MsgBox1 is called; ; MsgBox1 interrupts auto-execute thread before msgbox "auto" below is executed msgbox "auto`n+" ElapsedTime := A_TickCount - StartTime
Is this the explanation? If so, does that mean that the placement ofA critical thread will be interrupted ... 3) any callback indirectly triggered by the critical thread itself
Criticalis not significant e.g. this script will behave the same whether or not
Criticalis placed before or after the