PDA

View Full Version : Generating key press



ganglyman21
05-02-2008, 04:42 AM
Hi, just wondering. Is there anyways that you can make your hack generate a sequence of key presses? I want to add to my hack (use f1-f4 for weapons) so when I press f1 it activates my weapon function, then presses and hold "w" and then shift to mimic a roll so there is just 1 key press to get the shotgun out for example.

ZeaS
05-02-2008, 05:08 AM
Hi, just wondering. Is there anyways that you can make your hack generate a sequence of key presses? I want to add to my hack (use f1-f4 for weapons) so when I press f1 it activates my weapon function, then presses and hold "w" and then shift to mimic a roll so there is just 1 key press to get the shotgun out for example.

GetAsyncKeyState :confused:

ganglyman21
05-02-2008, 05:17 AM
"GetAsyncKeyState" is to obtain key press right? I want my exe to press them for me. Like I press "F1" it presses w+shift. does this make sense?

ZeaS
05-02-2008, 05:57 AM
"GetAsyncKeyState" is to obtain key press right? I want my exe to press them for me. Like I press "F1" it presses w+shift. does this make sense?

why do you want to do this way =\ i don't know anything about "KeyDown" take a look at the msdn

http://msdn.microsoft.com/en-us/library/aa713389(VS.71).aspx

ganglyman21
05-02-2008, 06:00 AM
Well as you probably know you gotta roll to get winchester out and things, I just want the whole process automated you know? And thanks Ill read up on keydown.

AlexSleyore
05-02-2008, 03:40 PM
Well as you probably know you gotta roll to get winchester out and things, I just want the whole process automated you know? And thanks Ill read up on keydown.

umm OR you could just set 4E along with 4C to the addy and it will shoot that or just set 4E but you wont be holding the gun you will just be shooting like the gun you selected(aka you do damage with shotgun still but your not holding it same firing rate and everything)

ganglyman21
05-03-2008, 03:56 AM
Ok so I need to write 4e AND 4c to the player pointer? Like in my weapon function:


weapon1()
{
playerpoint, 4c, 42;
playerpoint, 4e, 42;
}

Like that?

HydroQc
05-03-2008, 01:59 PM
You should put if GetKeyState

Somthing like this


if (GetKeyState(VK_SHIFT+VK_57) &1)
{
WritePointerFloat (0xAddy, 0xOffser, 42)
}

ganglyman21
05-03-2008, 05:59 PM
well I use a DLL and my functions are all called from there, each weapon has it's own function. Don't wanna post it for detection reasons. But it works as I have it but "I" have to roll manually, I want to automate this process. Thanks or your replies but you guys are drifting from what I want. My weapon hack works 100% but I want to press f2 and it to write my function and then roll in game, leaving me nothing to do but shoot.