| View previous topic :: View next topic |
| Author |
Message |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 07, 2014 12:38 pm Post subject: How do I assign speed change to button |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Thu Aug 07, 2014 2:01 pm Post subject: |
|
|
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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 07, 2014 2:21 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Thu Aug 07, 2014 2:29 pm Post subject: |
|
|
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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 07, 2014 2:57 pm Post subject: |
|
|
| 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 |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Thu Aug 07, 2014 3:56 pm Post subject: |
|
|
| 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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 07, 2014 4:42 pm Post subject: |
|
|
| 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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Fri Aug 08, 2014 6:37 am Post subject: |
|
|
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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 14, 2014 6:19 am Post subject: |
|
|
| I still can't generate the hack.Please help |
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Thu Aug 14, 2014 6:32 am Post subject: |
|
|
| 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 |
|
 |
LanternKill How do I cheat?
Reputation: 0
Joined: 07 Aug 2014 Posts: 7
|
Posted: Thu Aug 14, 2014 10:32 am Post subject: Thank you but... |
|
|
| I do not know how to assign the speed change to the button.I know how to make the interface . |
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Thu Aug 14, 2014 10:39 am Post subject: Re: Thank you but... |
|
|
| 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 |
|
 |
|