View previous topic :: View next topic |
Author |
Message |
raiderr1 How do I cheat? Reputation: 0
Joined: 02 Oct 2017 Posts: 1
|
Posted: Wed Nov 28, 2018 5:28 pm Post subject: How to Enable/Disable a script from within auto assembly |
|
|
I'd like to be able to enable/disable a script from withing a code injection that I'm writing with the auto assembler. Is there a way to do this?
The reason I want to do this, is I want to enable/disable a script based on a game controller button press. I found the assembly code in memory that is running when I hold a button down and when I release it. So I'm hoping to inject some code into those two places that will enable/disable a different CE script.
Thank you
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Fri Nov 30, 2018 6:16 am Post subject: |
|
|
you probably need lua, and you may want another script to enable/disable the second script.
or from within the script you can use some lua code to allocate/free the allocated memory, but remember the script will be active and it will wait for a key press or so to re-allocate the memory.
the best thing to do is condition code (cc) in the first line of the script, you will need the following:
- allocate a byte or more
- register a symbol
- add the symbol to address-list
- assign a hotkey
- compare if the value is 0 if so exexute the original code (otherwise execute your own code)
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Roogue Newbie cheater Reputation: 0
Joined: 31 May 2019 Posts: 14
|
Posted: Fri Jun 07, 2019 8:28 pm Post subject: |
|
|
I think he was asking about the [ENABLE] / [DISABLE] sections in code injection
Get to the address where you want to make a code injection, press CTRL + A,
go to template -> Cheat table framework code and then go to template again and choose code injection.
Do your things, and once you executed your code go to file -> assign to current cheat table
You can now enable / disable your CE script if that was your question
|
|
Back to top |
|
|
Billones142 How do I cheat? Reputation: 0
Joined: 04 Jan 2023 Posts: 1
|
|
Back to top |
|
|
|