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 


Same button Activate/Deactivate Function?

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

Joined: 08 Jul 2015
Posts: 5

PostPosted: Thu Jul 09, 2015 7:44 am    Post subject: Same button Activate/Deactivate Function? Reply with quote

Hi, i'm doing a trainer and a function is infinite healt, pratically pressing a button like(F2) it frezze, but i like to add that if i press again F2 when it's freeze, it unfreeze. It's possible to do? i see a lot of trainer that when you press a button it activate the cheat and if you press again the same button it deactivate. Thanks at who help me =)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 345

Joined: 09 May 2003
Posts: 20119
Location: The netherlands

PostPosted: Thu Jul 09, 2015 8:05 am    Post subject: Reply with quote

Seeing you posted this in the auto assembler tutorial section (Wrong section as it's not a tutorial) I am assuming you're asking about a cheat you wrote in the auto assembler

In your auto assembler script just have a [disable] section where you disable the cheat.

If your script handles more, then use a variable your script looks at.
e.g if addressx=1 then freeze else don't apply cheat

and then use a secondary aa script where you just set the value in the enable and disable part

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Bexian
How do I cheat?
Reputation: 0

Joined: 08 Jul 2015
Posts: 5

PostPosted: Fri Jul 10, 2015 7:42 am    Post subject: Reply with quote

what i need to insert against of addressx? Because it is a pointer. For the aa script i dont know how to use it i'm learning now. Thanks for the help
Back to top
View user's profile Send private message
Syperus
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2011
Posts: 60

PostPosted: Fri Jul 10, 2015 8:25 am    Post subject: Reply with quote

I also show how to do this in C++ in my AoB tutorial if you ever decide to write your own trainer http://forum.cheatengine.org/viewtopic.php?t=582654 It's at the bottom of the tut, but here's how to do it
Code:
if(GetAsyncKeyState(VK_F1) & 1)
        {
           HackStatus = !HackStatus;
 
            if(HackStatus)
            {
                HackON();
            }
            else
            {
                HackOFF();
            }
        }
Back to top
View user's profile Send private message
Bexian
How do I cheat?
Reputation: 0

Joined: 08 Jul 2015
Posts: 5

PostPosted: Fri Jul 10, 2015 12:57 pm    Post subject: Reply with quote

Syperus wrote:
I also show how to do this in C++ in my AoB tutorial if you ever decide to write your own trainer. It's at the bottom of the tut, but here's how to do it
Code:
if(GetAsyncKeyState(VK_F1) & 1)
        {
           HackStatus = !HackStatus;
 
            if(HackStatus)
            {
                HackON();
            }
            else
            {
                HackOFF();
            }
        }

ho, Thank you really nice. When i have time i'll try certainly. The only problem is that i'm 14 years old and for me is a bit hard. If i need help i can request you? i'm italien sucsme for bad english
Back to top
View user's profile Send private message
Syperus
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2011
Posts: 60

PostPosted: Fri Jul 10, 2015 1:43 pm    Post subject: Reply with quote

Bexian wrote:
If i need help i can request you?
Any problems you have just post them and I'll help with what I can, but also others will be able to help too.
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