FileForums

FileForums (https://fileforums.com/index.php)
-   Game Coders (https://fileforums.com/forumdisplay.php?f=36)
-   -   help me whit getkeystate plz (https://fileforums.com/showthread.php?t=86629)

h4x0r # 14-05-2009 08:05

help me whit getkeystate plz
 
I try to make press NUMPAD 1 in trainer lisen sound "activated" and pressing again NUMPAD 1 sound "desactivated" but no work no can lisen the second sound prssing the same key 2 times, any can help me?

thanks

DELPHI CODE:

Code:

if HiWord(GetKeyState(VK_NUMPAD1)) <> 0 then
    PlaySound (PChar ('ACT'), Hinstance, SND_Resource Or SND_ASYNC)
    else
    PlaySound (PChar ('DEC'), Hinstance, SND_Resource Or SND_ASYNC);

PD: solved.


All times are GMT -7. The time now is 04:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com