Custom Toolbar
TurboIRC not only provides you the opportunity to change any toolbar , but also enables you to make a toolbar button to make another thing that it usually does , like firing a script !
In order to change a toolbar , you need to provide a image file 500x50 pixels , which contains 10 images 50x50 pixels to use as a toolbar . Images accepted are *.bmp,*.jpg,*.jif,*.rle,*.dib,*.tga,*.pcx)\0*.bmp;*.jpg;*.jif;*.rle;*.dib;*.tga;*.pcx : I suggest you use a JPG file or a BMP file . If you have deselected Big Buttons from metrics , your toolbar should be 300x30 with 10 images 30x30 pixels to use .
You can change the toolbar for the main window , the server windows , the channel windows , the query windows and the DCC windows .
Changing a toolbar action
If you want a button to do a different thing than that it usually does , you need to create a toolbar script . Each toolbar script is a single line , that contains 3 parameters .
The first parameter is a number from 0 to 5 , and it is the type of the window that the toolbar is on.
The second parameter is a number from 0 to 9 , describing which button of the 10 toolbar buttons will be changed . 0 is the first button , 1 is the second .... 9 is the last .
The rest of the line has the action to be done . If you create a script for the main window toolbar , this must be a number describing the action that the button should do :
For example , the first button is used to fire the "connect" dialog box . To change it to fire the alias editor you would write :
0 0 803
If you need also the second button to make the connection instead of the alias editor you would write both
0 0 803
0 1 801
The script is extended for the rest of windows , i.e the server , channel query and DCC windows . You may include one of the predefined numbers to do an action
BUT , you can also type an input . For example
2 0 hey there
this rule will cause the 1st button of the channel toolbar to say "hey there" when pressed . You can easily configure it to fire an alias ! If you want for example to fire the alias /jc , then you do this :
2 0 /jc
Or with any parameters
2 0 /jc 1
In that way , you can completely change your toolbars !
See also: