So, I'm kinda new to ahk...made a program that when I press a specific key, a variable goes up, and when I press another key, the variable become 0. Simple Code. Now I want to see the variable on my monitor in real-time, so i made a gui.
But, It does not update and is stuck at 0 no matter what I do. I searched for documents and examples, but still haven't got any clue. This is my code so far:
Gui, Font, s32, impact
Gui, Color, EEAA99
WinSet, TransColor, EEAA99
Gui -Caption +AlwaysOnTop +ToolWindow
Gui, Add, Text, , CC: %ConsCount%
Gui, Add, Text, , LN: %LastN%
Gui, Add, Text, , LR: %LastR%
Gui, Add, Text, , LS: %LastSpace%
Gui, Show, NoActivate X0 Y0
SetTimer, Loop, On
Loop:
SetTimer, Loop, off
Sleep, 2
SetTimer, Loop, reset
I know It makes no sense at all, but I really have no idea what to do.