Free internet winamp plugins download3/21/2024 Remember that methods use a third parameter of 1, parameter gets use a 2 and parameter sets use a 4. To do this, we can simply use the WinAmp.GetVersion method. So, the first task any script that uses this COM object needs to do is see if WinAmp is already running and, if it is not running, to start it. * Opened Com 'WinAmp' (gen_scripting.WinAmp)Īccording to the help page, this dll doesn't work if WinAmp is not already running. To create an object from this COM dll, you use the command: I will use WinAmp in all of my examples in this article.Īlso, since those who use WinAmp tend to leave it running while their computer is on, it can safely be assumed that mIRC can create the COM object in the on START event and remove it in the on EXIT event, though that part's really unnecessary as mIRC is releasing any memory it used anyway. I suggest using either objWinAmp, oWinAmp or just WinAmp as the object name. Since you'll only ever be using a single such COM object at any given time, there is no need to bother with adding $ticks to its name to make it a unique object name. The -k is just habit, I prefer my window buttons without the leading since it's already in the icon. This is so that you can paste in multiple command lines at a time and then hit enter to do them all at once, pretty much minimizing the /set -u issues as described before. window -Ek that I've used a multiline editbox in this window definition. I would suggest that you open a custom window in which to type the commands that follow so that all the output is in a single place, a window you can log or not as you see fit. In a real script, you would probably want to use var %variablename = $com(WinAmp).result for that. This is to give you 60 seconds to type in the next command(s) at the command line before the variable expires and is removed. Note that when I need to retain values between command lines in this article, I use //set -u60 %variablename value. When you //echo -a $com() commands, you'll get back either a 0 (command failed for some reason) or a 1 (it appeared to work - although it might not have done what you thought it did) inside your script, of course, you'll use the NULL Command: !.echo -q $com to throw away that 0 or 1. comreg "C:\Program Files\WinAmp\Plugins\gen_scripting.dll"Īs with any new COM object you are playing with, it's usually best to type these commands in a separate window within mIRC so you can see what is returned or what mIRC responds with, before quieting the commands with. This need only be done once, installing the COM object dll. Next, the COM object must be registered with Windows. Download the dll from Gen_Scripting 1004, then unzip it into C:\Program Files\WinAmp\Plugins\. First, the COM dll must be registered with Windows. The home page for the COM object this article deals with is Gen_Scripting and contains all the function calls and their expected syntaxes. Although I downloaded the source of the dll as well, I didn't need to, nor did I use it while I wrote this article. This is also an excellent tutorial on how to translate such documentation into a mIRC COM script. Furthermore, I have translated all of the ones I felt most people would need to use. I have not translated all of the featured, obviously, but from what I have translated, you should be able to easily use the other features as you see need them. In response to the request, here is a fairly complete translation from the help page (the URL is in the FIRST STEPS section) to how you'd use it in mIRC script. NOTE to non-scripters or scripters who don't like $com: Feel free to completely ignore this very lengthy post.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |