View previous topic :: View next topic |
Author |
Message |
Game Hacking Dojo Expert Cheater Reputation: 1
Joined: 17 Sep 2023 Posts: 160
|
Posted: Sat May 04, 2024 3:18 am Post subject: Disable Predefinded Hotkeys |
|
|
Is there a possibility I could disable certain hotkeys using Lua scripts?
I am interested in all the hotkeys, used in the AA script under the template section.
Could you give me the "Execute" button and "Assign to current cheat table" option names?
If you tell me how you do it I won't bother you with retrieving form options names.
Thank you, in advance.
Description: |
|
Filesize: |
42.27 KB |
Viewed: |
1265 Time(s) |
|
|
|
Back to top |
|
|
Game Hacking Dojo Expert Cheater Reputation: 1
Joined: 17 Sep 2023 Posts: 160
|
Posted: Sat May 04, 2024 12:24 pm Post subject: |
|
|
Little update. I found almost everything I needed. However, overriding the hotkeys doesn't seem as straightforward.
["frmAutoInject"].Codeinjection1.Shortcut = ""
["frmAutoInject"].APIHook1.Shortcut = ""
["frmAutoInject"].Coderelocation1.Shortcut =""
["frmAutoInject"].miCallLua.Shortcut = ""
["frmAutoInject"].menuAOBInjection.Shortcut = ""
["frmAutoInject"].menuFullInjection.Shortcut = ""
["frmAutoInject"].CheatTablecompliantcodee1.Shortcut = ""
I checked the hotkeys before and after
result before:
Ctrl+I
Ctrl+Alt+A
Ctrl+R
Ctrl+L
Shift+Ctrl+A
Shift+Ctrl+F
Ctrl+Alt+T
result after:
Unknown
Unknown
Unknown
Unknown
Unknown
Unknown
Unknown
But nothing practically changed. I could still see the hotkeys being written next to the item label and the hotkeys still work. Any idea?
Edit:
Okay, thank you I just found out how and will post the code soon for those who want it.
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 34
Joined: 16 Feb 2017 Posts: 1402
|
Posted: Sat May 04, 2024 1:14 pm Post subject: |
|
|
use:
Code: | aa1 = MainForm.frmAutoInject.Codeinjection1.getShortcut()
print(aa1)
-- res: Ctrl+I
MainForm.frmAutoInject.Codeinjection1.setShortcut("")
aa2 = MainForm.frmAutoInject.Codeinjection1.getShortcut()
print(aa2)
-- res: Unknown |
Check:
celua.txt --> line 962
methods --> line 979
Code: | MainForm.frmAutoInject.Codeinjection1.getShortcut()
MainForm.frmAutoInject.Codeinjection1.setShortcut(Ctrl+W)
--or
MainForm.frmAutoInject.Codeinjection1.setShortcut("") |
_________________
|
|
Back to top |
|
|
Game Hacking Dojo Expert Cheater Reputation: 1
Joined: 17 Sep 2023 Posts: 160
|
Posted: Sat May 04, 2024 2:59 pm Post subject: |
|
|
I found something fishy.
Code: | print(MainForm.frmAutoInject)
07BD67B0
print(MainForm.frmAutoInject.Codeinjection1)
07F11B10
print(MainForm.frmAutoInject.Codeinjection1.Shortcut)
Ctrl+I
Print(getForm(1).Name)
frmAutoInject_1
Print(getForm(1))
13697CD0
Print(getForm(1).Codeinjection1)
1F15A580
Print(getForm(1).Codeinjection1.Shortcut)
Ctrl+I |
Could you explain?
The only way to override the shortcuts is by using getForm(). Other ways are not viable.
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 34
Joined: 16 Feb 2017 Posts: 1402
|
Posted: Sat May 04, 2024 3:29 pm Post subject: |
|
|
I give up and leave the rest to you.
You can also apply this to your own form (CETrainer).
Code: | aa22=getForm("frmAutoInject").Codeinjection1.getShortcut()
Print(aa22)
frm = getForm("frmAutoInject")
for i = 0, frm.ComponentCount - 1 do
print(frm.Component[i].Name)
print(frm.Component[i].Shortcut)
end |
_________________
|
|
Back to top |
|
|
Game Hacking Dojo Expert Cheater Reputation: 1
Joined: 17 Sep 2023 Posts: 160
|
Posted: Sat May 04, 2024 4:00 pm Post subject: |
|
|
it's fine I had to write a looong code to do it. But I want to know how to execute it whenever I open the script.
I tried:
Code: | MainForm.frmAutoInject.OnCreate=function()
DisableShortcuts()
end |
It didn't work. (My function works)
This one didn't work for me
Quote: | Code: | aa22=getForm("frmAutoInject").Codeinjection1.getShortcut()
Print(aa22)
frm = getForm("frmAutoInject")
for i = 0, frm.ComponentCount - 1 do
print(frm.Component[i].Name)
print(frm.Component[i].Shortcut)
end |
|
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 146
Joined: 06 Jul 2014 Posts: 4485
|
|
Back to top |
|
|
Game Hacking Dojo Expert Cheater Reputation: 1
Joined: 17 Sep 2023 Posts: 160
|
Posted: Sat May 04, 2024 4:29 pm Post subject: |
|
|
Wow man, thank you that's crazy good. Thanks a lot
|
|
Back to top |
|
|
|