Key is down or up? *resolved*
Following code is in the timer with interval set to 100
VB Code:
If GetAsyncKeyState(VK_F12) Then
....
num = num + 1
end if
The problem is if i keep F12 down without releasing it, num will increase by 1 every 100 milliseconds. Is there anyway to make it work so num = num + 1 will ONLY execute when F12 has been released, so if I press F12 when num = 0, num will stay 0 until I depress F12, and when I press it again num will equal to 1, and so on. With each key press num will increase by 1, but with continuous key press, num will not change.