06-02-13, 03:06 PM
وعليكم السلام ورحمة الله وبركاته
ضع Timer على الفورم
وجرب الكود التالي
بالتوفيق
ضع Timer على الفورم
وجرب الكود التالي
PHP كود :
Private Declare Function Getasynckeystate Lib "user32" Alias "GetAsyncKeyState" (ByVal VKEY As Long) As Integer
Private Sub Form_Load()
Timer1.Interval = 1
End Sub
Private Sub Timer1_Timer()
If Getasynckeystate(vbKeyReturn) Then
MsgBox "لا اله الا الله"
End If
End Sub
بالتوفيق

