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 write a 64 bit version GetAsyncKeyState ????

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

Joined: 12 Jun 2016
Posts: 96

PostPosted: Sat Jul 01, 2017 10:02 am    Post subject: How to write a 64 bit version GetAsyncKeyState ???? Reply with quote

I want to hack a game to run with my custom camera control.

Can't find game inner key check function.

So is there a way to check such thing like win32 API or something.

ASM or lua?If CE can,how?Any short example?


Last edited by mindoff on Sun Jul 02, 2017 1:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Rudo
Advanced Cheater
Reputation: 2

Joined: 27 Jun 2015
Posts: 80

PostPosted: Sat Jul 01, 2017 10:10 am    Post subject: Reply with quote

GetAsyncKeyState

https://msdn.microsoft.com/en-us/library/windows/desktop/ms646293(v=vs.85).aspx
Back to top
View user's profile Send private message
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Sat Jul 01, 2017 7:07 pm    Post subject: Reply with quote

Thanks for the key word.

I will check some example right now.

http://www.cheatengine.org/keypresstut.php

Interesting,x64 use a different way

http://forum.cheatengine.org/viewtopic.php?t=574257

OK,get trouble on 64 bit

DK says

you must allocate some stackspace and pass the parameters in registers

How to do that?

Can anyone write a 64 bit version example of how to use GetAsyncKeyState.

Much appreciate




very strange,when I use

push 20
call GetAsyncKeyState

rax always return

FFFFFA800CC50000

no matter I press space key or not,other VK_KEYCODE value get same result

what does it mean?

It is hard to guess what really mean,and when I write C file

GetAsyncKeyState return 0 or 1,which seems much useful then asm return Crying or Very sad




OOOOOMMMMMMGGGGGGG

Fxxking amazing,copy from Visual Studio,finally make it correct.

Why life is so hard.Why it just use double register instead of stack.

Anyway I'm done.Waste a lot of time.

Finally done. Very Happy
Back to top
View user's profile Send private message
PlzSuckMaDuck
How do I cheat?
Reputation: 0

Joined: 01 Feb 2019
Posts: 5

PostPosted: Sat Feb 02, 2019 12:57 am    Post subject: Reply with quote

How did you figured out what to do? I need help with getasynckeystate on 64 bit platform as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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