VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This is the easy example of API Call for finctional KEYS fot F1 to F10

by EskoHC (2 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 9th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This is the easy example of API Call for finctional KEYS fot F1 to F10

API Declarations


Public Const VK_F1 = &H70
Public Const VK_F2 = &H71
Public Const VK_F3 = &H72
Public Const VK_F4 = &H73
Public Const VK_F5 = &H74
Public Const VK_F6 = &H75
Public Const VK_F7 = &H76
Public Const VK_F8 = &H77
Public Const VK_F9 = &H78
Public Const VK_F10 = &H79
Public Ceclare Function GetAsyncKeyState lib "user32" (byval vKey As Long)As Integer



Rate This is the easy example of API Call for finctional KEYS fot F1 to F10



Static i As Integer
i = i + 1
if i = 60 then i = 0
if GetAsyncKeyState(VK_F5) then
msgbox "You pres key F5"
end if
End Sub


Download this snippet    Add to My Saved Code

This is the easy example of API Call for finctional KEYS fot F1 to F10 Comments

No comments have been posted about This is the easy example of API Call for finctional KEYS fot F1 to F10. Why not be the first to post a comment about This is the easy example of API Call for finctional KEYS fot F1 to F10.

Post your comment

Subject:
Message:
0/1000 characters