[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Getting Started
. . -> [Subject]  Making a macro (function key)
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Making a macro (function key)

This subject is now closed.     [Refresh] Refresh page


Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Sat 04 Aug 2007 11:37 PM (UTC)
Message

One of the advantages of using a modern client is to save typing. Let's say we are using the "task" system (described elsewhere in this forum) and often need to type "task available". Rather than doing that tediously every time we can make a macro so we just hit F4 and have it do that for us. First, Press Alt+Enter to open the world configuration dialog, and then click on "Macros" (on the left) to open the Macros configuration. Then, using the list box on the right, scroll down until you see F4, select that, and click Edit:

Macro configuration

We are now editing what is sent if you hit F4. Type in "task available" (or whatever you want to do), and click OK, and then OK again to close the world configuration:

Edit a macro

Now I can hit F4 and it will send "task available" to the MUD:

Testing the macro

Now you can go and set up further macros to save other typing. Don't forget to save your world file afterwards so your changes are not lost (Press Ctrl+S).


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Gimpmaster   (7 posts)  [Biography] bio
Date Reply #1 on Wed 03 Oct 2012 07:02 AM (UTC)

Amended on Tue 26 Nov 2013 03:43 AM (UTC) by Nick Gammon

Message
Ive a question:

if you have the alias set up for targeting how would you tie that into a macro,say casting burn? or would you just use another alias as in the example here:


http://vimeo.com/80326272


with kick and backstab?


also: if I could get pointed in the right direction for adding a wait command to triggers that would be great


and thank you so much, everything here is a godsend for me
[Go to top] top

Posted by Gimpmaster   (7 posts)  [Biography] bio
Date Reply #2 on Wed 03 Oct 2012 07:24 AM (UTC)
Message
well, you know I thought a bout it and i could just do the alias,but things like "burn", and "Fire-b" would still be too long for me...


would i set up an alias then have the macro input what i would type for the alias to work




EXAMPLE:

for a burn spell macro I would make an alias like this:


[Edit Alias] (x)
///////////////////////////////////////
--Alias: "burn"--

--Input: "cast burn @target"--


send to world, expanded, and enabled
///////////////////////////////////////

then the macro is this:


[Edit Macro F-2] (x)
/////////////////////////////////////////

--Macro Type: "F-2"--


--Send:"burn"--



send now
///////////////////////////////////////////



so when i hit f2 i burn who ive targeted, right?



(sorry for the weird formatting, have no idea how to write in script yet really, hope you understand)

[Go to top] top

Posted by Gimpmaster   (7 posts)  [Biography] bio
Date Reply #3 on Wed 03 Oct 2012 07:37 AM (UTC)
Message
no, it just types in what i want the alias to input


(see example above: thats what i tried to input, works for "kill @target", but not this one)
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Wed 03 Oct 2012 12:22 PM (UTC)
Message
You'll want to use an AcceleratorTo for that.

See first the FAQ section on accelerators:
http://www.mushclient.com/forum/?id=7794#39

And then the documentation for AcceleratorTo (a special kind of accelerator that can send to script):
http://mushclient.com/scripts/doc.php?function=AcceleratorTo

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Gimpmaster   (7 posts)  [Biography] bio
Date Reply #5 on Thu 04 Oct 2012 03:04 AM (UTC)

Amended on Mon 08 Oct 2012 02:26 AM (UTC) by Gimpmaster

Message
thank you, ill let you know how it works out


you guys are great
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #6 on Thu 04 Oct 2012 12:35 PM (UTC)
Message
Quote:
btw: you should come checkout ..., even if only for a day, need to try to get the populaces up...sorry if this is considered spamming

Please don't do that here. We have an entire section of the forum for server announcements.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Gimpmaster   (7 posts)  [Biography] bio
Date Reply #7 on Mon 08 Oct 2012 02:25 AM (UTC)
Message
of course, forgive me...amending the message right now
[Go to top] 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.


8,409 views.

This subject is now closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]