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 


[HELP] CE Lua Scripting - Using Timers for Hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ZxPwds
Advanced Cheater
Reputation: 0

Joined: 27 Oct 2015
Posts: 59

PostPosted: Thu Oct 29, 2015 8:11 pm    Post subject: [HELP] CE Lua Scripting - Using Timers for Hotkeys Reply with quote

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




help3.png
 Description:
 Filesize:  326.48 KB
 Viewed:  3238 Time(s)

help3.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 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