Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ What might this be used for?
|
What might this be used for?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| David B
USA (80 posts) Bio
|
| Date
| Sat 30 Aug 2003 08:40 PM (UTC) |
| Message
| CreateObject: Creates and returns a reference to an Automation object...
|
My code(with a LOT of Nicks help) to fame:
sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end sub
| | Top |
|
| Posted by
| Shadowfyr
USA (1,792 posts) Bio
|
| Date
| Reply #1 on Sun 31 Aug 2003 01:01 AM (UTC) |
| Message
| If you search the forums you will find it used in quite a few places. In general 'Automation Object' is a fansy name for anything that uses COM to let other programs talk to it. The kinds of things you can use this for is to talk to a program you design to work with Mushclient, accessing a database, controlling other programs like WinAmp from inside Mushclient, etc.
I even used it one time in a slightly less than impressive attempt to check on the current position on the Top Mud list of the one I play at by using a COM object that read the HTML data in from inside my script. It didn't work to well though since it took 30-40 second to load the entire page, so Mushclient froze while it was doing this. :(
You also can't do things like creating a window or using other objects that are called 'controls'. A control is usually something like a button or picture, which requires that you not just create it, but that you also have some place to put it after the fact. Mushclient doesn't provide such a thing, so they will either refuse to be created or fail to do anything.
Basically, this is the only means that the scripts provide for talking to other programs, databases, etc. that you may want Mushclient to interact with in some way. | | 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.
11,495 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top