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 


A simple trainer for game shortcut and speed hack tool

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue May 12, 2015 2:01 am    Post subject: A simple trainer for game shortcut and speed hack tool Reply with quote

Hello guys,

For reason to learning about making cheat engine trainer, I made a simple trainer that use for shortcut to open some games website by default browser.

It's also completely with attaching process function which use for open a process in computer memory to process your hacks if any.
Customize speed hack tool able to use if you already attached a process in connection using your hacks for a specific game.

This trainer is made by using the CE Form Designer. The size, name, caption, visibility and other related to trainer properties, has been determined . But, it is possible for you , to do editing or modification.
Just open the trainer and go to lua table to adding your own editing or adding/changing game website link you want.

(Button Game4 to Game8, is empty and able to adding your game link address. Just look for sample in Button Game1 to Game3 function buttonClick Sender)).

The point I made this trainer is want to have a trainer template that able to modification (from many trainer templates).

As a beginner , I realized that the trainer is very far from perfect . However, I hope this can help and provide inspiration for those who need it.

Good luck


Last edited by Corroder on Sat May 30, 2015 1:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Fluffer_Nutter
Advanced Cheater
Reputation: 0

Joined: 26 Feb 2015
Posts: 67

PostPosted: Tue May 12, 2015 3:13 pm    Post subject: Reply with quote

Little bit of an error.

If you click on one of the sites. Then click it again it will print an error.
Give me a few mins ill post a fix for that. Have to read through all of it and see what is going on.

** EDIT**

I am not really sure why you are using a separate function to open the game site? So if you remove the "t" functions and just tell the button click to edit the text and open the site it wont toss an error.

Here is just 1 example:

YOUR CODE
Code:
function Button_Game1Click(sender)
  control_setVisible(UDF1.CELabel_Tutor1, false)
  control_setVisible(UDF1.CELabel_Tutor2, false)
  control_setVisible(UDF1.CELabel_Tutor3, false)
  control_setVisible(UDF1.CELabel_Tutor2, true)
  control_setCaption(UDF1.CELabel_Tutor2, "Open 8 Ball Pool Miniclip Site")
  t.Enabled=true
end

function pro()
  if (t) then
      t.Enabled=false
     t.Destroy()
     shellExecute("URL")
  end
end
t=createTimer(nil, false)
t.onTimer=pro
t.Interval=3000


EDITED CODE
Code:
function Button_Game1Click(sender)
  control_setVisible(UDF1.CELabel_Tutor1, false)
  control_setVisible(UDF1.CELabel_Tutor2, false)
  control_setVisible(UDF1.CELabel_Tutor3, false)
  control_setVisible(UDF1.CELabel_Tutor2, true)
  control_setCaption(UDF1.CELabel_Tutor2, "Open 8 Ball Pool Miniclip Site")
  shellExecute("URL")
end


also removed all the "function pro()" Im no expert tho. So i might be wrong.
I was looking at line 120 - 138
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue May 12, 2015 8:54 pm    Post subject: Reply with quote

The idea I put function pro() to every function button click which use to execute URL is give time for user to read description for each shortcut buttons that click by user. (Anyhow everyone can delete this function if no needed).

function pro() work as a timer or interval time. Give user chance to read our messages in Tutorial groupbox. In this case that is 3 seconds.

If we use set caption to label use for display our messages, no problem if we only want give user one message (if more than one message, of course we can add some label use for message and set the control Caption and Visible foe every label as we want).

I have my own edited / modified of the trainer. And it's already free from error 100%. The point posted the trainer as CT file is to give everyone who need it and give their chance to modifying it as they want.
Maybe change all properties made by form designer to full control lua script (example : create form(), create button(), etc) and delete some function that user not want or adding some new functions.

By the way, thank you very much for suggestion and hope it's all could helpful and useful for everyone needed.

Regards
Back to top
View user's profile Send private message
Fluffer_Nutter
Advanced Cheater
Reputation: 0

Joined: 26 Feb 2015
Posts: 67

PostPosted: Tue May 12, 2015 9:02 pm    Post subject: Reply with quote

Corroder wrote:
The idea I put function pro() to every function button click which use to execute URL is give time for user to read description for each shortcut buttons that click by user. (Anyhow everyone can delete this function if no needed).

function pro() work as a timer or interval time. Give user chance to read our messages in Tutorial groupbox. In this case that is 3 seconds.

If we use set caption to label use for display our messages, no problem if we only want give user one message (if more than one message, of course we can add some label use for message and set the control Caption and Visible foe every label as we want).

I have my own edited / modified of the trainer. And it's already free from error 100%. The point posted the trainer as CT file is to give everyone who need it and give their chance to modifying it as they want.
Maybe change all properties made by form designer to full control lua script (example : create form(), create button(), etc) and delete some function that user not want or adding some new functions.

By the way, thank you very much for suggestion and hope it's all could helpful and useful for everyone needed.

Regards


Yea was just posting to say i got an error to help if you needed it. Smile

Cheers mate and nice work!
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