About C++ virtual code

05/20/2013 01:43 nasyer_boy#1
Hi there everyone.. Hope someone would help me with this..

i have a problem about combination of virtual hot keys..

i wanted to input the combination of keyboard

e.g.

CRTL+numpad1

how to input that??:confused::confused::confused:

i don't know if this is correct

(GetKeyState (VK_RCONTROL + VK_NUMPAD1)

please help
05/21/2013 11:12 Wayntressierts#2
do 2 GetKeyStates, not sure if this is the ideal way but worked for me
05/24/2013 06:51 nasyer_boy#3
Quote:
Originally Posted by Wayntressierts View Post
do 2 GetKeyStates, not sure if this is the ideal way but worked for me

like this??

if (GetKeyState (VK_RCONTROL) + (GetKeyState VK_NUMPAD1) < 0

:confused::confused::confused:
05/25/2013 05:10 FUJl#4
//LEFT CONTROL + NUMPAD 1
if (GetKeyState (VK_LCONTROL) < 0)
{
if (GetKeyState (VK_VK_NUMPAD1) < 0)
{
//Your Code
}
}
06/03/2013 11:11 ExE_To_DLL#5
Quote:
Originally Posted by FUJl View Post
//LEFT CONTROL + NUMPAD 1
if (GetKeyState (VK_LCONTROL) < 0)
{
if (GetKeyState (VK_VK_NUMPAD1) < 0)
{
//Your Code
}
}
Thankz Men!