Posted: Fri Oct 28, 2016 2:43 am Post subject: How would I go about doing this?
So in a game, there is basically away to pick up/use items on the ground, to do this you must press and hold E for 3 seconds; Any tips for hold I could find the address to this?
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Fri Oct 28, 2016 4:14 am Post subject:
Depending on how they handle input, you could look for some basics:
- GetAsyncKeyState
- GetKeyState
- GetKeyboardState
- Window Proc Hook (WM_CHAR, WM_KEYDOWN/WM_KEYUP, WM_KEYPRESS, etc.)
- DirectInput (GetDeviceState / GetDeviceData)
Look for how the key is being handled and reverse from there. _________________
Posted: Fri Oct 28, 2016 7:38 am Post subject: Re: How would I go about doing this?
Ghosting wrote:
So in a game, there is basically away to pick up/use items on the ground, to do this you must press and hold E for 3 seconds; Any tips for hold I could find the address to this?
If you're using cheat engine, which I assume you are.... You need to find the address which contains the yes or no for the "item pickup ready state"...
There should be an address or addresses which contain a 0 or 1 value stating whether or not you have held down the mouse or key for x amount of time.
So, obviously, the first scan will be 0, you need to scan for 1 as soon as you are in the "ready position". Probably set a hotkey to scan immediately after the game confirms you have held down the mouse or key for x time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum