View previous topic :: View next topic |
Author |
Message |
blapanda Cheater
Reputation: 0
Joined: 30 Apr 2013 Posts: 31
|
Posted: Sat Mar 05, 2022 6:14 pm Post subject: Hotkeys (application, not scripts!) and default Speech text |
|
|
Hey there.
I am asking for some, probably, simple stuff.
I am kinda searching for the interface shortcuts/hotkeys to change. For example, we know that CTRL+H does open up the hotkey section for your cheat headers and whatnot, but I would like to add something like CTRL+C for the color panel to show up. Is this possible via the compiled version or do I have to download the src for it to make it on my own?
Secondly, about the "{MRDescription} Activated" part. I would like to alter the default "Activated/Deactivated" with "On/Off". Sounds kinda better imo.
Is there a way to do this without any editing of the src?
Thanks in advance!
Btw. I am using the v7.4 build.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Mar 05, 2022 9:57 pm Post subject: |
|
|
You can probably add menu shortcuts using lua.
The hotkey sounds can be changed by simply changing them to whatever you want; it works as text-to-speech. Just select Speak Text from the drop-down menu and then change the text.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sun Mar 06, 2022 3:43 am Post subject: |
|
|
if you're asking because it's too much trouble to change the default text to On/Off each time you can use this script in your autorun:
Code: |
function forEachAndFutureForm(classname, func)
local i
for i=0,getFormCount()-1 do
local f
f=getForm(i)
if f.ClassName==classname then
func(f)
end
end
registerFormAddNotification(function(f)
if classname==f.ClassName then
f.registerFirstShowCallback(function()
func(f)
end)
end
end)
end
forEachAndFutureForm("THotKeyForm",function(f)
f.edtActivateText.text='{MRDescription} On'
f.edtDeactivateText.Text='{MRDescription} Off'
end)
|
(or use a translation file that changes just that text)
for the change color:
Code: |
MainForm.miChangeColor.ShortCut=textToShortCut("CTRL+C")
|
good luck copying entries now , but I'm sure you can adjust the shortcut to something else
_________________
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 |
|
 |
blapanda Cheater
Reputation: 0
Joined: 30 Apr 2013 Posts: 31
|
Posted: Sun Mar 06, 2022 3:24 pm Post subject: |
|
|
Dark Byte wrote: | if you're asking because it's too much trouble to change the default text to On/Off each time you can use this script in your autorun:
Code: |
function forEachAndFutureForm(classname, func)
local i
for i=0,getFormCount()-1 do
local f
f=getForm(i)
if f.ClassName==classname then
func(f)
end
end
registerFormAddNotification(function(f)
if classname==f.ClassName then
f.registerFirstShowCallback(function()
func(f)
end)
end
end)
end
forEachAndFutureForm("THotKeyForm",function(f)
f.edtActivateText.text='{MRDescription} On'
f.edtDeactivateText.Text='{MRDescription} Off'
end)
|
(or use a translation file that changes just that text)
for the change color:
Code: |
MainForm.miChangeColor.ShortCut=textToShortCut("CTRL+C")
|
good luck copying entries now , but I'm sure you can adjust the shortcut to something else |
Thank you very much! Probably people saying this already as often as possible but, thank you for the incredible software, too!
|
|
Back to top |
|
 |
|