GetAsyncKeyState Help Code: Dim hotkey as boolean hotkey = GetAsyncKeyState(keys.F6) if hotkey = true then timer1.enabled=true The hotkey function should be written in the button code or in the timer code?
Originally Posted by techial2 Make 2 timers or do form.keydown ... So a timer to start and a timer to stop?
example you want to do something when user press a 'enable timer1 form1.load: timer1.start timer1.tick: if get@@@(keys.a) then trololozilla.appears end if might not be 100percent true but..