| View previous topic :: View next topic |
| Author |
Message |
Razi Expert Cheater
Reputation: 1
Joined: 17 Jan 2018 Posts: 205
|
Posted: Sun May 31, 2020 7:02 pm Post subject: CE hotkeys |
|
|
I want to add a hotkey to call the “Show Cheat Table Lua Script” window with the F12 hotkey, to have two hotkeys for this: F12 and ctrl + alt + L.
And want to add a hotkey to main CE window, to execute script from the "Show Cheat Table Lua Script" window using the Ctrl + F9 hotkeys. Is there any way to do this?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25823 Location: The netherlands
|
Posted: Mon Jun 01, 2020 1:00 am Post subject: |
|
|
| Code: |
local hiddenmi=createMenuItem(MainForm.Menu)
hiddenmi.Caption='Also show show table script because ShortcutKey2 is not working'
hiddenmi.OnClick=MainForm.miShowLuaScript.OnClick
hiddenmi.ShortCut=textToShortCut('F12')
hiddenmi.Visible=false
MainForm.miTable.insert(0,hiddenmi)
MainForm.miShowLuaScript.ShortCutKey2=hiddenmi.ShortCut --visually
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Razi Expert Cheater
Reputation: 1
Joined: 17 Jan 2018 Posts: 205
|
Posted: Mon Jun 01, 2020 1:49 am Post subject: |
|
|
Thanks. I often use the on-screen keyboard. What can I say, 1 hotkey will be faster than 3.
Is it possible to create hotkey Ctrl + F9 for main CE window, to execute script from the "Show Cheat Table Lua Script"
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25823 Location: The netherlands
|
Posted: Mon Jun 01, 2020 2:26 am Post subject: |
|
|
| Code: |
local i
for i=0, getFormCount()-1 do
local f=getForm(i)
if f.ClassName=='TfrmAutoInject' then
if f.ScriptMode=='smLua' then
frmLuaTableScript=f
end
end
end
if frmLuaTableScript==nil then
return
end
local miExecuteTableScript=createMenuItem(MainForm.Menu)
miExecuteTableScript.Caption='Execute Table Script'
miExecuteTableScript.OnClick=frmLuaTableScript.Button1.OnClick
miExecuteTableScript.ShortCut=textToShortCut("Ctrl+F9")
miExecuteTableScript.Visible=true --change to false if you don't want the item visible
MainForm.miTable.insert(1,miExecuteTableScript)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Razi Expert Cheater
Reputation: 1
Joined: 17 Jan 2018 Posts: 205
|
Posted: Mon Jun 01, 2020 2:31 pm Post subject: |
|
|
| Great. I need these functions, because I use them a hundred times in a day. Many thanks.
|
|
| Back to top |
|
 |
|