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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to: Read result of action, enter info into variable, use variable

How to: Read result of action, enter info into variable, use variable

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


Posted by VJMarcus   (1 post)  [Biography] bio
Date Mon 03 Mar 2014 12:28 PM (UTC)

Amended on Mon 03 Mar 2014 01:11 PM (UTC) by VJMarcus

Message
G'Day
Here is what i want to do
I run a "tell the time" alias to get this result

The chronograph is open, showing that the current time is 12:50am, Thursday 16th June Prime, UC 2033, the moon is in its waxing crescent phase, and the weather is cloudy.

I then want to enter something like this

(alias name) (spellname) (variable)

with (variable) being the words between "showing that the current time is" and the full stop at the end of the line

How do i do this?
I'm doing a c&p atm and would like to reduce it to a single word which sends what ever is in that section in place of the word.

I did read elsewhere about putting selected text into the clipboard, even doing a control-v will be ok

TIA

VJM
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 03 Mar 2014 10:17 PM (UTC)
Message
Well, you want a trigger that matches something like:


The chronograph is open, showing that the current time is *.


Save that (%1) into a variable and use that variable in your alias.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


7,381 views.

It is now over 60 days since the last post. This thread is 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 HostDash]