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 to make a hotkey in lua?

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

Joined: 01 Apr 2013
Posts: 9
Location: The netherlands

PostPosted: Fri May 31, 2013 9:05 am    Post subject: How to make a hotkey in lua? Reply with quote

I'm wondering how I could make a hotkey in the cheat table lua script. I've created this working lua script and I'm wondering how I could set a hotkey to enable and disable it. The current script is this:

autoAssemble([[aobscan(bla, D9 58 44 8B 05 ?? ?? ?? ?? D9 40 44 D9 05)
bla:
db 90 90 90]]);

autoAssemble([[aobscan(bla, D9 9F 8? 00 00 00 0F B6)
bla:
db 90 90 90 90 90 90]]);

If anyone can help me that'd be great.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri May 31, 2013 9:24 am    Post subject: Reply with quote

Code:
createHotkey(function , key).

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
shadowwolf
How do I cheat?
Reputation: 0

Joined: 01 Apr 2013
Posts: 9
Location: The netherlands

PostPosted: Sat Jun 01, 2013 6:22 am    Post subject: Reply with quote

thank you, couldn't find the createHotkey command anywhere, but now it's working
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Jun 01, 2013 6:29 am    Post subject: Re: How to make a hotkey in lua? Reply with quote

shadowwolf wrote:
aobscan(bla, D9 9F 8? 00 00 00 0F B6)

Just to point out that 8? is treated as ??

_________________
Back to top
View user's profile Send private message MSN Messenger
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