بخصوص الدالة GetAsyncKeyState
#2
وعليكم السلام ورحمة الله
تابع GetAsyncKeyState هو API Windows يعيد النتيجة:
كود :
Return Values If the function succeeds, the return value specifies whether the key was pressed since the last call to GetAsyncKeyState, and whether the key is currently up or down. If the most significant bit is set, the key is down, and if the least significant bit is set, the key was pressed after the previous call to GetAsyncKeyState. The return value is zero if a window in another thread or process currently has the keyboard focus.
القيمة التي شاهدتها هي أدنى قيمة لنوع البيانات SmallInt
كود :
Smallint -32768..32767
كان من الأحسن كتابتها بشكل:
PHP كود :
if KeyResult = Low(SmallInt) then 
بالتوفيق.
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...
الرد


الردود في هذا الموضوع
بخصوص الدالة GetAsyncKeyState - بواسطة abdelali91 - 10-02-2012, 07:15 PM
بخصوص الدالة GetAsyncKeyState - بواسطة kachwahed - 10-02-2012, 10:35 PM
بخصوص الدالة GetAsyncKeyState - بواسطة abdelali91 - 11-02-2012, 07:59 AM
بخصوص الدالة GetAsyncKeyState - بواسطة abdelmalek - 11-02-2012, 03:04 PM
بخصوص الدالة GetAsyncKeyState - بواسطة kachwahed - 11-02-2012, 07:44 PM
بخصوص الدالة GetAsyncKeyState - بواسطة abdelali91 - 13-02-2012, 03:01 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم