10-02-2012, 10:35 PM
وعليكم السلام ورحمة الله
تابع GetAsyncKeyState هو API Windows يعيد النتيجة:
القيمة التي شاهدتها هي أدنى قيمة لنوع البيانات SmallInt
كان من الأحسن كتابتها بشكل:
بالتوفيق.
تابع 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 -32768..32767PHP كود :
if KeyResult = Low(SmallInt) then
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...

