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 


Need help with get GetAsyncKeyState

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
PlzSuckMaDuck
How do I cheat?
Reputation: 0

Joined: 01 Feb 2019
Posts: 5

PostPosted: Fri Jan 17, 2020 4:19 am    Post subject: Need help with get GetAsyncKeyState Reply with quote

I'm new to this so everything i've read so far has gone over my head.

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
sub [ecx+eax*2+0A],dx

exit:
jmp returnhere

"BH6.exe"+97A3F7:
jmp newmem
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"BH6.exe"+97A3F7:
sub [ecx+eax*2+0A],dx
//Alt: db 66 29 54 41 0A

I just want to disable this sub when i left mouse click. Can anyone write the code for me & tell me what exactly did you do?
Back to top
View user's profile Send private message
Dread Pony Roberts
How do I cheat?
Reputation: 0

Joined: 12 Dec 2018
Posts: 6

PostPosted: Thu Jan 30, 2020 1:59 pm    Post subject: Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
pushad
pushfd
push 1  //this is what changes the key. This is not my main account so I can't submit urls, but just google Virtual Key Codes and you should find a list of codes for rebinding.
call GetAsyncKeystate
shr ax,F
cmp ax,1
jne originalcode
popfd
popad
jmp returnhere


originalcode:
popfd
popad
sub [ecx+eax*2+0A],dx

exit:
jmp returnhere

"BH6.exe"+97A3F7:
jmp newmem
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"BH6.exe"+97A3F7:
sub [ecx+eax*2+0A],dx
//Alt: db 66 29 54 41 0A


Hope this helps.

_________________
How fair is it that you are the only one with a One Hit Kill? What if the AI had just as much power? That would definitely make the gameplay a bit more...EXTREME!
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 Gamehacking 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