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 


Cheat Engine Forum Index
PostGo back to topic
TheyCallMeTim13
Wiki Contributor
Reputation: 50
Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed May 15, 2019 10:40 pm    Post subject:

You can open the Lua Engine from the main form with "Ctrl+Alt+Shift+L".
Or you can add this to the auto run folder. It will put the menu item in the "Table" menu and assign the shortcut "Ctrl+L".
Code:

local t = translate
local format = string.format

local TableMenuItemName = 'miTable'

local function showLuaEngine()
   local frmLuaEngine = getLuaEngine()
   frmLuaEngine.show()
   return frmLuaEngine
end

local function addLuaEngineShortCut()
   if MainForm.Menu == nil then return end
   local menuItems = MainForm.Menu.Items
   local miTable = nil
   for i = 0, menuItems.Count - 1 do
      if menuItems[i].Name == TableMenuItemName then
         miTable = menuItems[i]
      end
   end
   if miTable ~= nil then
      local mi = createMenuItem(miTable)
      mi.Caption = t('Open Lua Engine')
      mi.Shortcut = 'Ctrl+L'
      mi.onClick = showLuaEngine
      miTable.insert(1, mi)
   end
end

addLuaEngineShortCut()


_________________
wiki.CheatEngine.org - Tutorials
OpenCheatTables.org
Back to top
View user's profile Send private message Visit poster's website
Post reviews:   Approve 1
Author Review
Razi
Review: Approve
Post reference:
ReviewPosted: Thu May 16, 2019 5:14 am

Thanks for help
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites