Register forum user name Search FAQ

Gammon Forum

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 ➜ Plugins ➜ Super Health Bar plugin with external VB program

Super Health Bar plugin with external VB program

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


Pages: 1  2  3 

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #30 on Tue 10 Feb 2004 03:10 AM (UTC)

Amended on Tue 10 Feb 2004 03:11 AM (UTC) by Nick Gammon

Message
That is in the plugin, to display if the CreateObject call fails.

Thus it was not able to find the MUSHclient_bar.Bar COM object. Why, it is hard to say.

However as you have used Shadowfyr's registry entries I would check they match what you have on your system. In particular:

[HKEY_CLASSES_ROOT\CLSID\{3AF6B065-CF8D-11D7-A78D-0080AD7972EF}\LocalServer32]
@="C:\\PROGRAM FILES\\MUSHCLIENT\\WORLDS\\PLUGINS\\MUSHCLIENT_BAR.EXE"


Does that path actually contain that file?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Theman007   (6 posts)  Bio
Date Reply #31 on Tue 10 Feb 2004 06:08 AM (UTC)
Message
It appears that all the keys are there. Am i going to end up needing a VB compiler after all?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #32 on Tue 10 Feb 2004 07:28 AM (UTC)
Message
I was asking about the file that the key refers to, not the key itself.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Theman007   (6 posts)  Bio
Date Reply #33 on Tue 10 Feb 2004 05:34 PM (UTC)
Message
Fixed the problem: Whne I installed MUSH 3.42, I wanted to keep my old version so I called the new one mushclient342. When I created a plugins folder and put the bar.exe file, it compiled.

However, I'm having trouble getting it to customize- when I copy/paste the same trigger I want from the standard health bar plugin, the super bar still isn't responding- all 3 fields remain blank.
Top

Posted by Theman007   (6 posts)  Bio
Date Reply #34 on Wed 11 Feb 2004 03:02 AM (UTC)
Message
nevermind, trigger was wrong.

Thanks for all the help guys!!
Top

Posted by David   USA  (49 posts)  Bio
Date Reply #35 on Thu 22 Apr 2004 10:19 PM (UTC)
Message
I'd like to do something like this but with gossip/ooc channels. Using a window that can scroll and be placed always on top that way I can simply focus on the mud rather than what other people are saying. I've posted idea's about having output windows coded into mushclient in the past. This is very similar to what I'd like mushclient to do.

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 Poromenos   Greece  (1,037 posts)  Bio
Date Reply #36 on Fri 23 Apr 2004 12:09 AM (UTC)
Message
I have created a plugin to do that, it's an external window you can add colored text to, etc... It's posted somewhere in the forums.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Avariel   Portugal  (55 posts)  Bio
Date Reply #37 on Fri 01 Oct 2004 03:28 PM (UTC)
Message
im considering to use this idea to build a sort of "external info bar" mainly to check up settings without spam myself to dead with world.notes...

what i wanted to know is if it is possible to "link" this window to the MUSHclient window, so when i minimize the MC window the "info window" would also minimize, and when i restore MC it would restore my window too.

thank you in advance

The Avariel Wind Lord
Top

Posted by Shadowfyr   USA  (1,791 posts)  Bio
Date Reply #38 on Fri 01 Oct 2004 08:15 PM (UTC)
Message
Well.. Not really. There is no event trapping in Mushclient itself that lets you tell when/if it is minimized and the only other way requires trapping system events, which can, if done wrong, cause lethal results to the OS. In either case you would need to add functions to the bar that hide it when either the bar itself detected the change (with system event traps) or the script told it too (which would require Mushclient to tell the script something happened). You may be able to fake it using existing lose and gain focus functions that Mushclient does provide, but that would mean that merely switching to a seperate window would hide it. That may be OK in this case, but I can imagine some other tools where that is definitely not the right behaviour. However, using those functions still requires changes to the bar itself so you can tell it to hide/unhide. Hiding a window requires access to some commands in the User32.dll API, which is not an ActiveX object or something scripts allow access to normally. Python 'may' be able to, but not any of the other and then not without at least as much effort and redesigning the bar in the first place.

So yes, it is possible, just not exactly with the existing bars features..
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.


135,404 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.