how to make hotkeys

Go down

how to make hotkeys

Post  rob7601 on Fri Jan 29, 2010 2:59 am

you need 1 timer set to 150 intervals and enable it
wright just above private sub form1_load or whatever

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer

wright this code for timer

Dim HotKey1 As Boolean
HotKey1 = GetAsyncKeyState( key here)

If HotKey1 = True Then MessageBox.Show("Test message")

remember to say thanks if it helped

Posts : 53
Join date : 2009-10-20
Age : 24

View user profile

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum