|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: 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> |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: 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 |
|
|
|
Jorville Wanderer
Joined: 30 Apr 2006 Posts: 58 Location: Brookhaven, MS
|
Posted: 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 |
|
|
|
|
|