Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Mon Nov 16, 2009 11:51 pm   

Link in window to command?
 
Can I Make A Clickable Link In My window
to just execute the command

#exec PlagueStatus Dragonform: {Pygmy}ClickLink {#exec PlagueAesir {Pygmy}

also can we add toggle color for it? say from yellow to green
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Nov 17, 2009 2:16 am   
 
You can, via the MXP send tag (and color tag for colorizing).

<send href='command to execute' hint='captions to show'>text</send>

hint is purely optional, it's there mostly for creating MXP menus (menus are defined using stringlists for the values of href and hint). "href=" is also optional, allowing you to shorten the tag down to <send 'command to execute'>.

<color col='colorname or number'>text</color>
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Tue Nov 17, 2009 2:32 am   
 
So I got soemthing like this....

#execwin PlagueStatus {#say Dragonform: <send href='Pygmy' hint='DragonForm Pygmy'>Pygmy</send>}

sends this to my window

Dragonform: <send href='Pygmy' hint='DragonForm Pygmy'>Pygmy</send>
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Nov 17, 2009 3:11 am   
 
No need for #SAY, I think. Maybe replace #EXECWIN with #WINDOW, but that's maybe not necessary (I use it for when I need to issue commands to the window, for just text and markup tags I stick with #window).

Might also want to check the window preferences to see if the MXP stuff is set correctly, but send and color should be working by default.
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Tue Nov 17, 2009 3:25 pm   
 
unexpected...

Iam using the #window comand, but when I clicked the link it somehow added pygmy to the end of my prompt line in my mud window and dissapeared from my status window..... and then whenn I clicked on it there it then inputed my alias and continues to be at the end of my prompt
Reply with quote
Jorville
Wanderer


Joined: 30 Apr 2006
Posts: 58
Location: Brookhaven, MS

PostPosted: Tue Nov 17, 2009 4:28 pm   
 
Here is an example of one that i use for a clickable link, the window name should be the name of the window you want to be able to click the link in, in this case i wanted my clickable link in my Damage window, the whole code here should be placed in whatever trigger/alias that you use to update your window, hope this helps

Code:

#WINDOW Damage <color cyan><send 'cleartracker'>Reset All</send></color>
_________________
Jorville
Player on SWMUD
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net