quote:
Originally posted by phalanxii
However, sometimes Plus! windows are not enough. For example, (as far as I know) it is impossible to detect the changing of tabbed chats using only the Plus! scripting engine and the Win32 API.
That's very possible iirc.
quote:
Originally posted by phalanxii
It is even more impossible to detect messages sent to external applications (like Winamp for example).
Also possible....
No need for an ActiveX for all of this. Just some API stuff... In fact, the ActiveXs do exactly what you already can do in Plus! by using the Windows API.
Though using this ActiveX might be the easy solution for some. So, very good and nice find though
...
But then again, some problems may arise when you use ActiveX (especially if more than one script is going to use the same one):
quote:
Originally posted by phalanxii
Firstly, the DLL is required to be registered when the script is imported, so this line must be added to ScriptInfo.xml:code:
<OleFiles>
<FileName>ARSubclass.dll</FileName>
</OleFiles>
Here is an example code of how to use it:code:
var ARSubclass = new ActiveXObject("ARSubclassLib.ARSubclass");
I actually do not recommend all of this (even including the use of <OleFiles>). (I think Patchou will shoot me now
) The reason is again that you will get into trouble when more than one script is going to use that DLL and you later install or remove even more scripts which use it.
---------
As for the tabbed chat window example, I think that can be done much easier and with subclassing just 1 window. The hidden Plus! window which controls the tabs.