As most people know there is a plugin called "Super Health Bar" and it is an implementation of COM into a VB Application. I have been programming using a language called AutoIt, and have managed to create a child MDI window, for use in sending SW's, the window iterlf dynamically sizes itself in the lower right corner of the MDIClient1 control (The grey section behind world files, if maximized), and it reads its SW's from a txt file, that is located in the same directory as the executable itself, which can be anywhere. It also has a list of ALL open worlds and you can choose which one you wish to send the SW to. Once an area is selected from the pulldown list, it populates a text box with the SW for easy editing before sending to the editbox within the desired world. There is a clear button if you wish to clear the box, and then the send button, which also responds to ENTER if the new window is active.
It is NOT implemented as as Plugin, and is ENTIRELY independent of MUSHclient. Run it when you want, don't when you don't need it.
I have been able to try to access MUSHclient's COM interface using AutoIt, and have been only successful in creating a NEW MUSHclient.World object, and can send ANY command it will respond to, BUT I cannot seem to attach to a pre existing world file, and I believe it to be the implementation of COM in Mushclient itself, the IDispatch section of the COM interface is restricted, as well as MANY other sections, I found this from using the OLE/COM Object viewer that Microsoft distributes. I think that some of the actual programmers here would agree, that if one could create a new instance of a control, that you should be able to attach to a pre-existing one with the same ease.
I do not know if what I am asking is possible, but I think that MUSHclient would be extremely well off if it allowed several other COM interfaces to be exposed, and was less restrictive in that aspect.
If you would like to try out my program I have created e-mail me at Onoitsu2@yahoo.com, and I can attach it in a reply. And Nick I have already sent it to you, if you check your e-mail address you sent me a message from you should see it there. I can and will also send the source file I used to create it, it is not the cleanest, but it works quite well for what it does do :) I plan on implementing a hotkey that makes it active, and deactivates it, so you can still have your world file maximized.
Please Nick, and ANY other programmers on this forum, with your 2 cents on this idea, because it could make the plugins that are distributed with mushclient much more powerful, as AutoIt, or any language that can implement COM, could allow for many amazing things to be done, such things as temporary triggers, or aliases, auto healers that have a full GUI even. And for Linux users using wine, I do not know if you can implement COM yet, or some form there of, but 90% of Apps made using AutoIt are usable in wine, I have a weather map by region displayer (USA only) that functions with only a 1 line change to the code, which is removing the internet check, which is pinging google.com and seeing if the ping is greater than 0, which is a fail.
I know that my thoughs here are sporadic, and misaligned, and I am sorry, but that is how my though process works, and I have done many a great thing because of it, the program of which I speak is one of them :)
Laterzzz,
Onoitsu2 |