View Single Post
  #1  
Old 14-05-2009, 08:05
h4x0r #'s Avatar
h4x0r # h4x0r # is offline
Registered User
 
Join Date: Apr 2009
Location: Spain
Posts: 200
Thanks: 0
Thanked 5 Times in 2 Posts
h4x0r # is on a distinguished road
Arrow 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.
__________________
IN NEW PROJECTS

Last edited by h4x0r #; 14-05-2009 at 10:32.
Reply With Quote
Sponsored Links