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
Zanzer
I post too much
Reputation: 126
Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 05, 2016 9:36 pm    Post subject:

Maybe add the ability to configure prompts and add your own keywords.

For example:
Code:
{
  displayName="Name for Lua script template",
  templateSections=
[==[
--Write script here--
]==],
  prompts = {
    {
      question = "Please enter the timer's interval",
      keyword = "timer_interval"
    }
  }
},


Timer Template
Code:
mytimer=createTimer(nil, false)
mytimer.Interval = %timer_interval%
mytimer.OnTimer = function(timer)
  -- insert code here
end
mytimer.Enabled = true

Breakpoint Template
Code:
debug_setBreakpoint(address, 1, bptExecute, function()
  debug_continueFromBreakpoint(co_run)
  return 1
end)

Auto-Activate Scripts On Attach
Code:
function onOpenProcess()
  local timer = createTimer(nil, false)
  timer.Interval = 500
  timer.OnTimer = function(timer)
    local list = getAddressList()
    list.getMemoryRecordByDescription("Script Name (Description)").Active = true
    timer.Destroy()
  end
  timer.Enabled = true
end

Hotkey Template
Code:
myhotkey = createHotkey(function()
  -- insert code here
end, VK_A) -- define key here
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
sbryzl
Review: Approve
Post reference:
ReviewPosted: Thu Oct 06, 2016 8:12 pm


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