Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ accelerators, reverting to original behaviour

accelerators, reverting to original behaviour

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Bluebear   (2 posts)  Bio
Date Sun 23 Jul 2006 06:30 PM (UTC)

Amended on Sun 23 Jul 2006 06:31 PM (UTC) by Bluebear

Message
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?
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 23 Jul 2006 08:40 PM (UTC)
Message
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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nexes   (65 posts)  Bio
Date Reply #2 on Mon 24 Jul 2006 03:10 AM (UTC)
Message
I also posted a way to make it work without updating your MUSHclient in the Achaea forums, Blujixapug. Namely, /world.SelectCommand
Top

Posted by Bluebear   (2 posts)  Bio
Date Reply #3 on Mon 24 Jul 2006 03:45 AM (UTC)
Message
Ah, version 3.73. I'll download the latest version and failing that i'll go with Nexes' solution. Thankyou both very much.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,545 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.