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 make a button turbo/rapid fire automatically?

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

Joined: 13 Aug 2018
Posts: 44

PostPosted: Mon Aug 20, 2018 9:37 pm    Post subject: How to make a button turbo/rapid fire automatically? Reply with quote

Instead of having to rapidly press a button on the controller by hand, I want to just hold it down and have it rapidly "press" that command for me. How can this be done with Cheat Engine? I can't seem to find anything on this when I do a search.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Aug 21, 2018 6:35 am    Post subject: Reply with quote

lua (see celua.txt in install dir and/or wiki for documentation):
keyDown(key) : causes the key to go into down state
keyUp(key) :causes the key to go up
doKeyPress(key) : simulates a key press

?
get/
setXBox360ControllerVibration(ControllerID, leftMotor, rightMotor) - Sets the speed of the left and right vibrating motor inside the controller. Range (0 to 65535 where 0 is off)
?

(Not sure there's anything for other controllers...)


afaik you won't be able to use the same key for the trigger and what gets activated since they'd interfere with each other but maybe you can setup something to work regardless using those.
Of course, if you know enough you could just change the game code to only want it held but I've no idea myself how you'd do that Smile

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Fxwfran
How do I cheat?
Reputation: 0

Joined: 14 Apr 2015
Posts: 8

PostPosted: Fri Aug 24, 2018 2:07 pm    Post subject: Reply with quote

Use what you've learned in step 9 of the Cheat Engine tutorial.

Find the address of the function that shoots and detour it to some newly allocated memory where it gets triggered 10 times (Copy paste the ASM opcodes 10 times then retn)
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