Tonik Posted February 15 Share Posted February 15 I'm trying to create a script that starts a timer when I press "o" and stops the timer when I press "p". Here is what I've got: HotKeySet('o', 'StartTimer') HotKeySet('p', 'EndTimer') $hTimer=0 Func StartTimer() Local $hTimer = TimerInit() EndFunc Func EndTimer() Local $fDiff = TimerDiff($hTimer) ConsoleWrite ($fDiff) ConsoleWrite (@crlf) EndFunc While 1 WEnd When I run this, I pressed "o" followed by three "p" keypresses and received this output in the console: 29362443.6463 29363759.7981 29365535.129 29366384.2509 I'm honestly not sure how to interpret this output to try and trouble shoot it - does anyone have any ideas where I'm messing up? Thank You in advance. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now