ZxPwds Advanced Cheater Reputation: 0
Joined: 27 Oct 2015 Posts: 59
|
Posted: Thu Oct 29, 2015 8:11 pm Post subject: [HELP] CE Lua Scripting - Using Timers for Hotkeys |
|
|
Hello everybody, I've been getting a lot of help here on CheatEngine forums on Lua and I want to
thank this great active community. I don't know where else I would ask for help other then here.
I've been using cheatengine for years and I just came back to the hacking scene and I saw these new
features that you can use lua in cheatengine now. It's great. Below I'm going to give you a snippet for hotkeys I use
in vb.net and I want to know if somebody could help me get something like this working for lua.
I do not like using the ToggleBox because it gets annoying going into a game and then minimizing the game to
turn off the hacks. It's stressful and nobody likes that. So I wish to use Timers and create hotkey to Turn on and off
the hacks.
VB.NET Snippet:
Code: |
Dim Skywalk As String = "00484993"
Dim hotkey0 As Boolean
If (GetAsyncKeyState(Keys.NumPad0) And 1) > 0 Then
hotkey0 = Not hotkey0
If hotkey0 Then
WriteFloat("theduel.exe", "&H" + Skywalk, 120) '
lblcheckHack5.ForeColor = Color.Lime
Else
WriteFloat("theduel.exe", "&H" + Skywalk, 10000) '
lblcheckHack5.ForeColor = Color.White
End If
End If
|
Description: |
|
Filesize: |
326.48 KB |
Viewed: |
3238 Time(s) |
|
|
|