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 


Help with Buttons

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

Joined: 03 Aug 2012
Posts: 9

PostPosted: Fri Aug 10, 2012 5:28 pm    Post subject: Help with Buttons Reply with quote

I'm pretty new to this Trainer thing, but i have made a couple, and already figured out how to add buttons.

My questions are:

If a memory Address was not found, can you make the buttons "gray" or unclickable?
(say i load the trainer before the game, all the buttons should be gray because the trainer did not find the Address)


Can you make the trainer constantly search for the Addresses? So that I can activate the button for a cheat, even before its Address was found.


I REALLY appreciate your help
-Dennis
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Aug 10, 2012 5:36 pm    Post subject: Reply with quote

I'm not behind a real comp so can't write a full script, but look into timers
Then in the timer use readInteger, if it returns nil instead of a value (nil is not 0) then the address does not exist

To make a button grey set it's enabled property to false

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Droppinacid
How do I cheat?
Reputation: 0

Joined: 03 Aug 2012
Posts: 9

PostPosted: Fri Aug 10, 2012 7:48 pm    Post subject: Reply with quote

I almost got the grey buttons to work. The grey buttons are always grey, and don't "un-grey".

I'm having some trouble understanding what you mean, after all this is all alien to me. Rolling Eyes

I would really appreciate it if you showed me what you mean.
I uploaded an example trainer of mine, if you could edit to make a sample for each that would be really awesome!

Thanks again Dark Byte,
-Dennis[/u]



Example.CT
 Description:

Download
 Filename:  Example.CT
 Filesize:  2.39 KB
 Downloaded:  902 Time(s)

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