accelerators, reverting to original behaviour

Posted by Bluebear on Sun 23 Jul 2006 06:30 PM — 4 posts, 19,263 views.

#0
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?
Amended on Sun 23 Jul 2006 06:31 PM by Bluebear
Australia Forum Administrator #1
Which version are you using? This was changed/fixed in version 3.75:

http://www.gammon.com.au/scripts/showrelnote.php?version=3.75&productid=0

See here to obtain it:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=7166
#2
I also posted a way to make it work without updating your MUSHclient in the Achaea forums, Blujixapug. Namely, /world.SelectCommand
#3
Ah, version 3.73. I'll download the latest version and failing that i'll go with Nexes' solution. Thankyou both very much.