الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ممكن المساعده

مغلق
بدأه hythamzero في 7 مايو 2006 · 2 رد · 479 مشاهدة · في لغة Ms Visual Basic 6 وما قبلها من إصدارات
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اريد بيان الفرق بين الدوال الاتيه واريد متغيراتها

Declare Function GetKBCodePage Lib "user32" Alias "GetKBCodePage" () As Long

Declare Function GetKeyState Lib "user32" Alias "GetKeyState" (ByVal nVirtKey As Long) As Integer

Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer

Declare Function GetKeyboardState Lib "user32" Alias "GetKeyboardState" (pbKeyState As Byte) As Long

Declare Function SetKeyboardState Lib "user32" Alias "SetKeyboardState" (lppbKeyState As Byte) As Long

Declare Function GetKeyboardType Lib "user32" Alias "GetKeyboardType" (ByVal nTypeFlag As Long) As Long

Declare Function GetKeyNameText Lib "user32" Alias "GetKeyNameTextA" (ByVal lParam As Long, ByVal lpBuffer As String, ByVal nSize As Long) As Long

كل هذه الدوال متعلقه ب لوحه المفاتيح ارجاء الشرح

برنامج رسم تصميمي]برنامج التجسس علي لوحه المفاتيح

برنامج رسم تصميمي

لعبه لغز الارقام من تصميمي

لعبه سيجا من تصميمي

لعبه اكس و اووووووووو

برنامج لحساب عمرك برمجه كامله دون الاستعانه بدوال vb

لعبه الكره الناريه

#2

أولا أسم الموضوع مخالف

ثانيا :براحة علينا شوية كل دى دوال ( أنت طالب مننا نشرح ال msdn و لا أيه )

على العموم أعرف معظمهم سأرد عليك بعد أن أستب الفيجوال بيسيك حتى لا أعطيك معلومات خاطئة

لا تراجع و لا إستسلام

#3

السلام عليكم ورحمة الله...

أرجو يكون هذا يوضح لك تلك الدوال

The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
· vKey  Specifies one of 256 possible virtual-key codes.
---
The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer.
· lpKeyState, Points to the 256-byte array that will receive the status data for each virtual key.
----
The SetKeyboardState function copies a 256-byte array of keyboard key states into the calling thread’s keyboard-input state table.
· lpKeyState, Points to a 256-byte array that contains keyboard key states.
---
The GetKeyboardType function retrieves information about the current keyboard.
· nTypeFlag, Specifies the type of keyboard information to be retrieved. This parameter can be one of the following values:
0 Keyboard type
1 Keyboard subtype
2 Number of function keys on the keyboard
---
GetKeyNameText function retrieves a string that represents the name of a key.
but this function isnt that important tho.. because you need to use copymem..etc to get the key name NOT the keystroke!
-------
GetKeyState ..Tells you whether or not a specified key is down.
(nVirtKey  Specifies one of 256 possible virtual-key codes.)

من سجن عكا وطلعــت جنـازة...

محمد جمجوم و فؤاد حجـازي

جازي عليهم يا شعبــي جازي...المندوب السامي وربعه عموما

محمد جمجوم ومع عطا الزير...فؤاد حجـــــــــازي عز الذخيـره

فلـسطـين

هذا الموضوع مغلق.

مواضيع مشابهة