|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Jan 11, 2011 5:18 pm Post subject: Replacing the Cheat Engine gui with your own |
|
|
If you want to make a so called "Trainer-table" then the first thing you want to do is hide the main Cheat Engine window so it won't distract the user
For that you can use the hideAllCEWindows function
Just call hideAllCEWindows() and ce will be gone. You will be of course responsible for making it visible again( unhideMainCEwindow() ), or closing Cheat Engine when you're done (closeCE() ).
e.g:
Code: |
hideAllCEWindows();
showMessage("Where did CE go?");
unhideMainCEwindow();
showMessage("Ah, there it is!");
|
example of a more complex script that uses this method (and can be added to a cheat table)
Code: |
if (HaxTableByDBVersion1==nil) then
--do one time initialization only
HaxTableByDBVersion1=1
showMessage("This is the first time you ran this table!(Since restarting CE)")
else
--do stuff when it's ran again (e.g destroying windows or reinitializing them)
showMessage("Welcome back to this table!!! WEEEEE")
end
--this can get executed each time the table is loaded
hideAllCEWindows()
f=createForm()
control_setCaption(f,"WEEE!!!")
control_setSize(f, 200,100)
form_centerScreen(f)
b=createButton(f)
control_setSize(b,100,25)
control_setPosition(b,(200/2)-(100/2), 10) --centers the button on the form
control_setCaption(b,"Click");
function aclick(sender)
showMessage("Click!");
end
control_onClick(b,aclick)
b2=createButton(f)
control_setSize(b2,100,25)
control_setPosition(b2,(200/2)-(100/2), 10+30) --place the second button 30 pixels under the previous
control_setCaption(b2,"Close");
function aClose(sender)
r=messageDialog("Are you sure?", mtConfirmation, mbYes, mbNo)
if (r==mrYes) then
object_destroy(f)
end
end
control_onClick(b2, aClose)
function onClose(sender)
f=nil
b=nil
b2=nil
showMessage("NUUUUUUUUUUUUuuuuuuuuuuuuuu!");
unhideMainCEwindow();
end
form_onClose(f,onClose)
|
_________________
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 |
|
|
ubiByte Advanced Cheater Reputation: 1
Joined: 08 Mar 2013 Posts: 57
|
Posted: Thu Sep 26, 2013 10:18 pm Post subject: |
|
|
Hey DarkByte,
That seems pretty neat, the methods your using are not available to the public right? Do you have an API that you can share with us so we can see what other commands are available?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Sep 27, 2013 3:06 am Post subject: |
|
|
Everyone can do this. This is just lua script.
Read main.lua for a list of all commands
_________________
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 |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Thu Jun 26, 2014 8:46 pm Post subject: |
|
|
wow, this is pretty damn nice!.
It does give me access violation after i close it but probably cause its a very old code.
_________________
|
|
Back to top |
|
|
|
|
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 cannot download files in this forum
|
|