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 


Assist with a Hotkey and function

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

Joined: 02 Nov 2019
Posts: 8

PostPosted: Sun Nov 03, 2019 12:37 pm    Post subject: Assist with a Hotkey and function Reply with quote

Dark Byte wrote:
give two script entries in the addresslist the same hotkey

one activates, the other deacticates
set the deactivate script to async mode
and add this to the deactivate script
Code:

{$lua}
sleep(100)
{$asm}

this way the deactivate script will wait 300 milliseconds before deacticating

alternatively, you could use a more complex aa script that calls getasynckeystate and use gettickcount to determine when to disable



How and were do i have to do this?
Im a noob on coding.
Only what i know is binding 2 hotkeys to 2 different fuctions.
Activate and diactivate.

Were do i have to add the scripts Numpad 1 to activate and Numpad 2 deactivate function?
Actually i only want to have one function with hotkey Numpad 1 that activate the function but goes back to the original funtion after 3-5 seconds.
Than i have to press that 1 hotkey Numpad again if i need it.


This is a part of the lua script:

<CheatEntries>
<CheatEntry>
<ID>37</ID>
<Description>"Set Grip Multiplier [Player]"</Description>
<DropDownList DisplayValueAsItem="1">0:No Grip
0:No Grip
0.25:25% Grip
0.5:50% Grip
0.75:75% Grip
1:Normal Grip
1.25:125% Grip
1.5:150% Grip
1.75:175% Grip
2:200% Grip
</DropDownList>
<Color>FF0000</Color>
<VariableType>Float</VariableType>
<Address>GripRate</Address>
</CheatEntry>
<CheatEntry>
<ID>38</ID>
<Description>"Set Grip Multiplier [Computer]"</Description>
<DropDownList DisplayValueAsItem="1">0:No Grip
0:No Grip
0.25:25% Grip
0.5:50% Grip
0.75:75% Grip
1:Normal Grip
1.25:125% Grip
1.5:150% Grip
1.75:175% Grip
2:200% Grip
</DropDownList>



hotkey settings.PNG
 Description:
 Filesize:  7.9 KB
 Viewed:  4878 Time(s)

hotkey settings.PNG


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