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 


Trainer CheckBox Help!

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

Joined: 27 May 2014
Posts: 9

PostPosted: Tue May 27, 2014 8:23 pm    Post subject: Trainer CheckBox Help! Reply with quote

Can some one explain this to me, because i made a Trainer for LFS and i have to use the standard keyboard buttons and i dont like that. Ive looked on here but i could not understand some stuff, So any game hacker out if you can please help me.So heres what i dont understand:

CheckBox Class: (Inheritance: ButtonControl->WinControl->Control->Component->Object)

createCheckBox(owner): Creates a CheckBox class object which belongs to the given owner. Owner can be any object inherited from WinControl

checkbox_getAllowGrayed(CheckBox)

checkbox_setAllowGrayed(CheckBox, boolean)

checkbox_getState(checkbox): Returns a state for the checkbox.

(cbUnchecked, cbChecked, cbGrayed)

checkbox_setState(checkbox, boolean): Sets the state of the checkbox

checkbox_onChange(checkbox, function)

ToggleBox Class: (Inheritance: CheckBox->ButtonControl->WinControl->Control->Component->Object)

createToggleBox(owner): Creates a ToggleBox class object which belongs to the given owner. Owner can be any object inherited from WinControl

GroupBox Class: (Inheritance: WinControl->Control->Component->Object)

createGroupBox(owner): Creates a GroupBox class object which belongs to the given owner. Owner can be any object inherited from WinControl
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Wed May 28, 2014 3:14 am    Post subject: Re: Trainer CheckBox Help! Reply with quote

BOSCHDRIFT wrote:
Can some one explain this to me, because i made a Trainer for LFS and i have to use the standard keyboard buttons and i dont like that. Ive looked on here but i could not understand some stuff, So any game hacker out if you can please help me.So heres what i dont understand:

CheckBox Class: (Inheritance: ButtonControl->WinControl->Control->Component->Object)

createCheckBox(owner): Creates a CheckBox class object which belongs to the given owner. Owner can be any object inherited from WinControl

checkbox_getAllowGrayed(CheckBox)

checkbox_setAllowGrayed(CheckBox, boolean)

checkbox_getState(checkbox): Returns a state for the checkbox.

(cbUnchecked, cbChecked, cbGrayed)

checkbox_setState(checkbox, boolean): Sets the state of the checkbox

checkbox_onChange(checkbox, function)

ToggleBox Class: (Inheritance: CheckBox->ButtonControl->WinControl->Control->Component->Object)

createToggleBox(owner): Creates a ToggleBox class object which belongs to the given owner. Owner can be any object inherited from WinControl

GroupBox Class: (Inheritance: WinControl->Control->Component->Object)

createGroupBox(owner): Creates a GroupBox class object which belongs to the given owner. Owner can be any object inherited from WinControl


This means that you can create a checkbox with createCheckBox(owner),owner is the form where you want to put your checkbox,then you can access some properties of your checkbox with those methods,for example:
Code:
do
local cb=createCheckBox(getMainForm())
cb.Top,cb.Left=325,270
showMessage(cb.getState())
cb.setState(1) --cb.setState is the same as checkbox_setState
end
This example code will show a checkbox in the main CE window,when it is unchecked,checkbox_getState will return 0,and when checked,it'll return 1
Back to top
View user's profile Send private message
BOSCHDRIFT
How do I cheat?
Reputation: 0

Joined: 27 May 2014
Posts: 9

PostPosted: Wed May 28, 2014 6:30 am    Post subject: Trainer CheckBox Help! Reply with quote

Am getting alittle bit of it. But i want to make check boxes to enable my hack on and off. I found something on here:

[enable]
00C2CF77:
db 90 90 90 90 90 90 90 90

[disable]
00C2CF77: // 90 90 90 90 90 90 90 90 90 81 EC ?? ?? ?? ?? 33 C0
db ff 75 0c e8 2e 4e 02 00

I dont get what the (db ect etc...)
and the two slashes after the address ( 90 90 90 90 90 90 90 90 90 81 EC ?? ?? ?? ?? 33 C0 ) Can you explain me that. Or can i post my trainer here or cheat table and you can help me with it.
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Wed May 28, 2014 1:54 pm    Post subject: Re: Trainer CheckBox Help! Reply with quote

BOSCHDRIFT wrote:
Am getting alittle bit of it. But i want to make check boxes to enable my hack on and off. I found something on here:

[enable]
00C2CF77:
db 90 90 90 90 90 90 90 90

[disable]
00C2CF77: // 90 90 90 90 90 90 90 90 90 81 EC ?? ?? ?? ?? 33 C0
db ff 75 0c e8 2e 4e 02 00

I dont get what the (db ect etc...)
and the two slashes after the address ( 90 90 90 90 90 90 90 90 90 81 EC ?? ?? ?? ?? 33 C0 ) Can you explain me that. Or can i post my trainer here or cheat table and you can help me with it.

db : write bytes : when the script will execute,it'll write the associated bytes to the specified region.
// can be removed,it starts a comment,just like '--' in Lua
for block comments,use {multi
line
comment}
Back to top
View user's profile Send private message
BOSCHDRIFT
How do I cheat?
Reputation: 0

Joined: 27 May 2014
Posts: 9

PostPosted: Wed May 28, 2014 2:43 pm    Post subject: Trainer CheckBox Help! Reply with quote

Ok am kinda getting it, Is it ok for you if you write me a lua script for one hack, i wan to see how you do it , ill give u the cheat table and everything, Thank you i really apriciated.
Back to top
View user's profile Send private message
BOSCHDRIFT
How do I cheat?
Reputation: 0

Joined: 27 May 2014
Posts: 9

PostPosted: Thu Jun 05, 2014 7:44 pm    Post subject: Trainer CheckBox Help! Reply with quote

So am guessing now one knows how to add a CheckBox to a trainer. Sad
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jun 05, 2014 9:31 pm    Post subject: Reply with quote

Code:
createCheckBox(createForm()).Caption = 'Checkbox.. as you requested';

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
BOSCHDRIFT
How do I cheat?
Reputation: 0

Joined: 27 May 2014
Posts: 9

PostPosted: Thu Jun 05, 2014 10:00 pm    Post subject: Trainer CheckBox Help! Reply with quote

I know that part, but the part to activate and deactivate the hack. Sorry for being rude am just really tryna learn this. Sorry gaing
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Jun 06, 2014 9:36 am    Post subject: Reply with quote

Code:
createCheckBox(createForm()).onChange = function (sender) if sender.Checked then autoAssemble('luacall(showMessage("Activated"))'); else autoAssemble('luacall(showMessage("Deactivated"))'); end; end;

insert the auto assemble scripts instead of the luacall command.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
BOSCHDRIFT
How do I cheat?
Reputation: 0

Joined: 27 May 2014
Posts: 9

PostPosted: Sat Jun 07, 2014 4:16 pm    Post subject: Trainer CheckBox Help! Reply with quote

Thnk U!
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