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 to extract hotkeys from memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 223

PostPosted: Sun Aug 21, 2016 9:06 pm    Post subject: How to extract hotkeys from memory Reply with quote

Is that possible to change hotkeys used in game with cheat engine memory scanning ? I want to replace ctrl key which is responsible of flying in the game with left click How to do that ?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 76

Joined: 29 Oct 2010
Posts: 3676

PostPosted: Sun Aug 21, 2016 9:11 pm    Post subject: Reply with quote

It's possible. Depending on the game, you may try different approaches.
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 223

PostPosted: Sun Aug 21, 2016 9:53 pm    Post subject: Reply with quote

++METHOS wrote:
It's possible. Depending on the game, you may try different approaches.


tell me some of them please?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 76

Joined: 29 Oct 2010
Posts: 3676

PostPosted: Sun Aug 21, 2016 10:13 pm    Post subject: Reply with quote

First, find the instruction that handles the ctrl key. Inject a script to cancel it out. Then, find the instruction that handles the mouse button and combine that with a script that handles flying and set up a trigger that checks for button-down.

Alternatively, you may be able to find the routine for flying and see if there is a check being done for keyboard/mouse inputs and change them around.

You may also be able to simply change the instruction that handles ctrl and write a combined script with mouse instruction so that flying happens with mouse-down instead of ctrl-down etc. etc..
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 223

PostPosted: Sun Aug 21, 2016 11:31 pm    Post subject: Reply with quote

Thank you very much i nearly go it .. but how can I extract left mouse button from memory ? I know its value is 1 from here
https://msdn.microsoft.com/fr-fr/library/windows/desktop/dd375731%28v=vs.85%29.aspx

is there any technique ?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 76

Joined: 29 Oct 2010
Posts: 3676

PostPosted: Sun Aug 21, 2016 11:49 pm    Post subject: Reply with quote

Scan for it.
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 223

PostPosted: Sun Aug 21, 2016 11:56 pm    Post subject: Reply with quote

++METHOS wrote:
Scan for it.


how I get million result !! leftclick =0x1 !!
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 76

Joined: 29 Oct 2010
Posts: 3676

PostPosted: Mon Aug 22, 2016 12:09 am    Post subject: This post has 1 review(s) Reply with quote

Do another scan.

Unknown initial value. Hold left-click and search for increased value. Let off of mouse button and search for decreased value. Search for unchanged value. Press and hold left-click again and search for increased value. Repeat steps as needed.
Back to top
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 223

PostPosted: Mon Aug 22, 2016 1:01 am    Post subject: Reply with quote

I fail in this sorry
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 76

Joined: 29 Oct 2010
Posts: 3676

PostPosted: Mon Aug 22, 2016 1:27 am    Post subject: Reply with quote

Make sure that you keep focus on the target process while doing your scans. You'll have to set up hotkeys in CE so that you can scan without removing focus from the game and without letting go of the mouse.

If that doesn't work, try changed/unchanged instead of increased/decreased.

If that doesn't work, maybe I can take a look when I am not busy.
Back to top
View user's profile Send private message
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