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