Okay, I found a way to add
general shortcuts via
Options > Open User Properties, but the original hotkeys like F5 don't get disabled.
![🤷♂️](//cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f937-2642.png)
(Perhaps disabling them via AHK will still help you...)
I added this to the opened file
SciTEUser.properties:
Code: Select all
user.shortcuts=\
Ctrl+I|IDM_STOPEXECUTE|\
Ctrl+,|IDM_GO|
After saving that file, I restarted Scite4AHK.
This will run the script when I press
Ctrl and ,, and terminate it forcefully, when I press
Ctrl and i (I would still prefer a (temporary) hotkey in the script).
I got the command IDs and information from here:
https://www.scintilla.org/CommandValues.html and here
https://www.scintilla.org/SciTEDoc.html (user.shortcuts)
To change the hardcoded shortcuts of the debugger - which is a custom plugin for AHK, afaics - you probably need to separately edit
SciTEDebug.ahk file in the
Tools directory.
There you can find
F5:: and other hotkeys. But please note that this file is probably write-protected and needs admin rights to edit. I made a copy (better anyway), edited that copy in a directory of my computer that allows it, and copied it back to the Scite subdirectory (after renaming and keeping the original file). Then restarted Scite4AHK. Now my
ä key starts and pauses debugging (only while the debugging toolbar is visible).
But please edit anything at your own risk (
SciTEUser.properties should be low-risk, though) and create backups. I did just a quick test; there could be side-effects.
If Scite4AHK suddenly acts strangely, make sure that the process
InternalAHK.exe really exits when clsoing Scite, and before restarting it (check taskmanager).