sk1nhead
12-01-2007, 08:09 AM
Okay, i've (tried to) make a hotkey for zoom In a timer.
This is the code:
case THIRDTIMER: //timer for zoom hotkey
{
if (GetKeyState(VK_RBUTTON)&1<< 0xF)
Writelong(0xADD126, 1);
else
Writelong(0xADD126, 0);
}
break;
I've defined the THIRDTIMER (and the other timers) in the resource.h. And i'm NOT getting any errors. But when I press rightmouse click in-game. nothing happens.
Did I do something wrong with the getkeystate?
This is the code:
case THIRDTIMER: //timer for zoom hotkey
{
if (GetKeyState(VK_RBUTTON)&1<< 0xF)
Writelong(0xADD126, 1);
else
Writelong(0xADD126, 0);
}
break;
I've defined the THIRDTIMER (and the other timers) in the resource.h. And i'm NOT getting any errors. But when I press rightmouse click in-game. nothing happens.
Did I do something wrong with the getkeystate?