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 


How do I assign speed change to button

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

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 07, 2014 12:38 pm    Post subject: How do I assign speed change to button Reply with quote

Hello everyone!
I am trying to make an executable speed hack but I do not know how to assign the speed change ( 2 times the speed ) to a button I made ( Used the Trainer Generator ) as well as undo the speed change ( Start - Stop buttons ).

In case you did not understand what I want to achieve:
When I press the Start button I want my speedhack to be applied.When I press the Stop button I want the speed change to be undone.

Thank you for reading,
LanternKill
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Aug 07, 2014 2:01 pm    Post subject: Reply with quote

speedhack_setSpeed(2)
speedhack_setSpeed(1)

_________________
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
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 07, 2014 2:21 pm    Post subject: Reply with quote

Dark Byte wrote:
speedhack_setSpeed(2)
speedhack_setSpeed(1)


Sorry but I am new to cheatengine.How can I add this script to the button?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Aug 07, 2014 2:29 pm    Post subject: Reply with quote

Put the 2 line in the onClick event of the button that sets the speed and the 1 line in the OnClick event handler of the button that disables the speedhack
_________________
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
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 07, 2014 2:57 pm    Post subject: Reply with quote

Dark Byte wrote:
Put the 2 line in the onClick event of the button that sets the speed and the 1 line in the OnClick event handler of the button that disables the speedhack

I am getting: speedhack_setSpeed(1) is not a valid method name
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Aug 07, 2014 3:56 pm    Post subject: Reply with quote

LanternKill wrote:
Dark Byte wrote:
Put the 2 line in the onClick event of the button that sets the speed and the 1 line in the OnClick event handler of the button that disables the speedhack

I am getting: speedhack_setSpeed(1) is not a valid method name


Of course,you must enter a function name,not call the function.

in the onClick event,type something like 'setThatSpeed' or any valid identifier (http://www.lua.org/pil/1.3.html ),a small window will pop up,in the body of that function,write
Code:
return speedhack_setSpeed(1)
Back to top
View user's profile Send private message
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 07, 2014 4:42 pm    Post subject: Reply with quote

Sorry I do not understand this.I tried the code that was given to me and it does not work.I have tried removing the () off of it but nothing happens.
Back to top
View user's profile Send private message
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Fri Aug 08, 2014 6:37 am    Post subject: Reply with quote

Still nothing works.I added the scripts and nothing happened.I get the following error: Error:[string "speedhack_setSpeed(2)..."]:1: attempt to call global 'speedhack_setSpeed' (a number value)
Script Error
Back to top
View user's profile Send private message
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 14, 2014 6:19 am    Post subject: Reply with quote

I still can't generate the hack.Please help
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Aug 14, 2014 6:32 am    Post subject: Reply with quote

LanternKill wrote:
I still can't generate the hack.Please help


Here is an example with the windows calculator (calc.exe),open the calculator first.
Of course,the showMessage is optionnal,and there is more than one way to do it.
Back to top
View user's profile Send private message
LanternKill
How do I cheat?
Reputation: 0

Joined: 07 Aug 2014
Posts: 7

PostPosted: Thu Aug 14, 2014 10:32 am    Post subject: Thank you but... Reply with quote

I do not know how to assign the speed change to the button.I know how to make the interface .
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Aug 14, 2014 10:39 am    Post subject: Re: Thank you but... Reply with quote

LanternKill wrote:
I do not know how to assign the speed change to the button.I know how to make the interface .


Open the cheat table that I posted in my previous post,then press CTRL+ALT+L,and look at the code.

Click the table submenu,then main->Edit and check how the onClick event is done.
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 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