I like doing away with the extra dependency on timer.au3 better   #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** HotKeySet("{F10}", "_terminate") While 1 Sleep(100000) WEnd Func _terminate() Local Static $itv_timer = 0 Local Static $counter = 0 Local $itv_diff