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 ➜ General ➜ customising hotkeys for switching between active worlds

customising hotkeys for switching between active worlds

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


Posted by Sev   (8 posts)  Bio
Date Wed 11 Apr 2007 07:19 AM (UTC)
Message
Hi,

I have noticed that you can switch between active worlds by either using ctrl-tab or ctrl-X for the first 10 world windows (where X is a number from 1 to 10).

I was wondering if it was possible to customise the hotkeys for switch between specific world windows. For example, using F1 to switch to world one (instead of ctrl-1).

Thanks
Sev
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #1 on Wed 11 Apr 2007 10:58 AM (UTC)

Amended on Wed 11 Apr 2007 11:23 AM (UTC) by Shaun Biggs

Message
Yet again I'm going to answer the question on the assumption that Lua is the main scripting language. Please change the script if you are using a different language.

for i,v in pairs(GetWorldIdList()) do
  if i <= 10 then
    Accelerator( "F"..i, "/GetWorldById(\""..v.."\"):Activate() )
  end
end

That script should initialize all the function keys up top to open up whatever currently open window is associated with that number. And some day I will get things right on the first post without having to edit.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Sev   (8 posts)  Bio
Date Reply #2 on Wed 11 Apr 2007 03:03 PM (UTC)
Message
Thanks. However, I ended up just using the macro key settings of all the worlds in question and used: /world.DoCommand "WorldX"

I will might use the Accelerator function in the future though.

Again thanks.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #3 on Wed 11 Apr 2007 10:27 PM (UTC)
Message
Yeah, that's much simpler. And I learn something new every day. I didn't know that DoCommand could change worlds. Thanks.

It is much easier to fight for one's ideals than to live up to them.
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.


14,434 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.