Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Tsunami
USA (204 posts) bio
|
| Date |
Tue 16 Nov 2004 07:30 PM (UTC) [ quote
] |
| Message |
I've been trying to desgin a alias to supplement the auto-mapper. It works in a plugin where I have an ENTITY tag which defines several common, non-direction commands I might want the automapper to execute. For instance:
<!DOCTYPE muclient [
<!ENTITY otherTriggers "say|get|put" >
]>
The alias is meant to be used to define a reverse command at the same time as excuting the command. The alias is as follows:
<alias
script="OtherWReverse"
match="^((?:&otherTriggers;).*?)?/(.*)$"
enabled="n"
group="Mapping"
regexp="y"
sequence="998"
>
</alias>
The script is as follows:
sub OtherWReverse(name,output,wildcs)
world.AddToMapper wildcs(1), wildcs(2)
world.send wildcs(1)
end sub
Some examples the alias should match on:
say hello/say bye
/say bye
put 1 blah in blah/get 1 blah from blah
It's the second example (/say bye) I'm having problems with. I get the following error message:
Error number: -2146828275
Event: Execution of line 1 column 1
Description: Type mismatch: 'say'
Line in error:
Called by: Immediate execution
Any help? Thanks! | top |
|
| Posted by |
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator |
| Date |
Reply #1 on Wed 17 Nov 2004 03:40 AM (UTC) [ quote
] |
| Message |
The slash character is the "immediate script" prefix, although you can change that.
For example:
When you type:
It is sending "say bye" to VBscript which is then complaining.
If you want to use / in this context open the scripting configuration window, and change the script prefix to something else.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
1,413 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )