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 


simulating keypress with lua

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

Joined: 02 Sep 2018
Posts: 60

PostPosted: Tue Sep 04, 2018 10:41 am    Post subject: simulating keypress with lua Reply with quote

can i simulate keypress i can send keys but when i send space it just sends character i want when it sends space in game should jump is it possible?

dont forget i want when it sends space key it jumps
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 18

Joined: 08 Oct 2015
Posts: 462

PostPosted: Wed Sep 05, 2018 6:27 am    Post subject: Reply with quote

you could modify the key values in the game's memory directly. simulating keypress from other programs e.g. CE, AutoHotkey etc. might result in issues with synchronization or lag.

if your game supports controller you can search for the directinput or xinput memory locations and when you want to send a key just modify that memory location.

just hold the key, pause the game executable from CE using a hotkey or mouse if your game is in windowed mode, and scan for unknown value. release key, scan for change. repeat until you have only a few left. you might not be only left with one so try and test writing the remaining few locations to determine the one.

you can see my script below which writes the key inputs to the dinput memory.
http://fearlessrevolution.com/viewtopic.php?p=49908#p49908

also search the forum here, there are past threads on how to find the keypress memory locations
Back to top
View user's profile Send private message
exohaxor
Advanced Cheater
Reputation: 0

Joined: 02 Sep 2018
Posts: 60

PostPosted: Thu Sep 06, 2018 5:18 am    Post subject: Reply with quote

lemme test it ty for method i was trying to make bhop for left4dead2 i can detect pointer value for on ground when i send keys it wasnt jumping so i will try now ty
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 Lua Scripting 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