Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How would I go about doing this?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Fri Oct 28, 2016 2:43 am    Post subject: How would I go about doing this? Reply with quote

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?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Oct 28, 2016 4:14 am    Post subject: Reply with quote

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.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Fri Oct 28, 2016 7:38 am    Post subject: Re: How would I go about doing this? Reply with quote

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.

I hope that makes sense.

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites