Author: westor
Original: Kamek
Added: 5y
Updated: Never
mIRC: 7.52+
Hits: 1,799
Downloads: 43
Review: westor
Size: 9.21KB
2 0
Login to vote.
mIRCustom
v1.21
mIRC Customizer (mircustom) is a DLL that lets you change the appearance of windows in mIRC. At the moment, it lets you change the icon, the titlebar text and the cursor of them.
SetIcon
Syntax: SetIcon -amw [hWnd] [index] <filename>
Returns: S_OK, E_<error> <error description>
SetIcon changes the icon of a window.
To change the icon of the active window, use -a; to change the icon of the main mIRC window, use -m; to change the icon of any other window, use -w, and specify the hWnd parameter. You can use $window().hwnd (or $dialog().hwnd, if you want to change the icon of a dialog) to get this parameter.
If a file has more than one icon resource (for example, if it is a .dll, a .exe or a .icl file), you can specify an index number, starting from 1. If you don't specify the index number, it will default to 1.
Titlebar
Syntax: Titlebar -amw [hWnd] <text>
Returns: S_OK, E_<error> <error description>
Titlebar changes the title of a window.
The -amw switches and the hWnd parameter are the same from SetIcon.
The main purpose of this function is to let you change the titlebar text of @windows without having to prefix it with the window name. You can change the titlebar of a dialog by specifying its hWnd, but it doesn't make much sense since you can use /dialog -t.
Please note, that, although you can change mIRC's title with this function (and make it not have that "mIRC" prefix), it's not recommended to do so. As mIRC stores internally the titlebar which is set using /titlebar, whenever it needs to reset the titlebar (like after a highlight), the last text that was set with /titlebar will be back. If you use this function on the main mIRC window, $titlebar will also return the last content set using /titlebar.
If you use this command on a @window, $window().title will return the titlebar, but starting from the 2nd word (as it will assume the first should be the name of the @window). If you use it on a dialog, $dialog().title will work correctly.
SetCursor
Syntax: SetCursor -amw [hWnd] <cursor>
Returns: S_OK, E_<error> <error description>
SetCursor changes the cursor shape for a window. <cursor> can be one of these:
default appstarting cross hand help ibeam no size sizenesw sizens sizenwse sizewe uparrow wait
The -amw switches and the hWnd parameter are the same from SetIcon.
Note that this function actually changes the cursor for a whole window class – if you change, for example, the cursor for a custom window, all the other custom windows will have their cursor changed to the one you specified. So, you should use this function with care and reset the cursor to "default" when the mouse leaves the window.