Hello. I'm sorry if a solution has been posted here elsewhere, I searched but couldn't find one.
I'm having problems reverting keypresses that i've set as accelerators back to their original function. For example one of the accelerators I used was Shift+Home, but when I tried to use both Lua and VBscript to revert this back to its normal function, all that happened was the accelerator/macro had no function. The new function I assigned was removed, but the original function was not returned. I first tried VBscript, and then tried Lua, but no luck.
The commands/script I used (i'm pretty new at scripting) were:
VBscript:
Accelerator "Shift+Home", "parry head"
(successful)
Accelerator "Shift+Home", ""
(unsuccessful, did not revert properly)
Lua:
Accelerator ("Shift+Home", "parry head")
(successful)
Accelerator ("Shift+Home", "")
(unsuccessful)
I know that at least the first of the two accelerators is correct, the keypress works, it sends 'parry head' to my game of choice. The second clears the accelerator/keypress, but replaces it with a blank command, instead of returning it to its original function (in this case highlighting text in the command window).
My scripting is going off the examples given at the script functions section for accelerators here at the Gammon website.
Is there some way I can specifically set the accelerator Shift+Home back to its original function, rather than just assigning it as blank? What would the command for that be? Am I just not scripting this properly?
I'm having problems reverting keypresses that i've set as accelerators back to their original function. For example one of the accelerators I used was Shift+Home, but when I tried to use both Lua and VBscript to revert this back to its normal function, all that happened was the accelerator/macro had no function. The new function I assigned was removed, but the original function was not returned. I first tried VBscript, and then tried Lua, but no luck.
The commands/script I used (i'm pretty new at scripting) were:
VBscript:
Accelerator "Shift+Home", "parry head"
(successful)
Accelerator "Shift+Home", ""
(unsuccessful, did not revert properly)
Lua:
Accelerator ("Shift+Home", "parry head")
(successful)
Accelerator ("Shift+Home", "")
(unsuccessful)
I know that at least the first of the two accelerators is correct, the keypress works, it sends 'parry head' to my game of choice. The second clears the accelerator/keypress, but replaces it with a blank command, instead of returning it to its original function (in this case highlighting text in the command window).
My scripting is going off the examples given at the script functions section for accelerators here at the Gammon website.
Is there some way I can specifically set the accelerator Shift+Home back to its original function, rather than just assigning it as blank? What would the command for that be? Am I just not scripting this properly?