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 :

  1. 801 - Connect
  2. 802 - Exit
  3. 803 - Aliases
  4. 804 - Events
  5. 805 - Special Events
  6. 806 - Help
  7. 807 - About
  8. 808 - Lookup
  9. 809 - Chat
  10. 810 - Chat Server
  11. 811 - Preferences
  12. 812 - View Sound Manager
  13. 813 - Services
  14. 814 - Main Checker
  15. 815 - Color Test
  16. 816 - Alarm Editor
  17. 817 - Proxy
  18. 819 - Show Tip Of The Minute
  19. 820 - URL Links
  20. 821 - TurboIRC Address Book
  21. 994 - Hide all and show an Icon in the tray

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

  1. 3014 - Exit
  2. 981 - Logging
  3. 983 - Write to File
  4. 989 - Change Key
  5. 811 - Preferences
  6. 806 - Help
  7. 731 - Locking
  8. 732 - Toolbar on/off
  9. 733 - Multiline Input
  10. 734 - Multi Query
  11. 735 - Attribute Copy to TurboIRC Clipboard
  12. 736 - Copy to TurboIRC Clipboard
  13. 737 - Paste to TurboIRC Clipboard
  14. 738 - Paste from Windows Clipboard
  15. 739 - Copy to Windows Clipboard
  16. 503 - Whois
  17. 510 - DCC Chat
  18. 511 - DCC Send
  19. 512 - DCC Secure Chat
  20. 513 - DCC Voice Chat
  21. 514 - DCC Chess
  22. 505 - CTCP Version
  23. 506 - CTCP Time
  24. 507 - CTCP Ping
  25. 508 - CTCP Finger
  26. 509 - CTCP Other
  27. 603 - Banlist
  28. 604 - Channel Prop's
  29. 605 - Channel Access
  30. 606 - Channel Target
  31. 504 - Query
  32. 702 - NickMode
  33. 706 - Join
  34. 707 - List
  35. 708 - Who
  36. 709 - Last Channels
  37. 721 - Notify
  38. 722 - Ignore
  39. 723 - Blacklist
  40. 724 - Silence
  41. 102 - Toggle owner
  42. 103 - Toggle host
  43. 104 - Toggle voice
  44. 105 - Kick/Ban
  45. 751 - FormatBold
  46. 752 - FormatItalic
  47. 753 - FormatUnderline
  48. 754 - FormatStrikeout
  49. 755 - FormatColor
  50. 756 - FormatSize
  51. 757 - FormatBeep
  52. 801 - Connect
  53. 803 - Aliases
  54. 804 - Events
  55. 805 - Special Events
  56. 808 - Lookup
  57. 812 - Sound Manager
  58. 816 - Alarm Editor
  59. 820 - URL Links
  60. 821 - TurboIRC Address Book
  61. 781 - Maximize all
  62. 782 - Minimize all
  63. 783 - Cascade all
  64. 784 - Tile horizontally all
  65. 785 - Tile vertically all
  66. 786 - Arrange Icons
  67. 787 - Select font
  68. 788 - Select color
  69. 998 - Join on invite
  70. 999 - Show main window
  71. 997 - Go to next window
  72. 996 - Close Window
  73. 995 - Emulate Alt+F4
  74. 994 - Hide all and show an icon
  75. 993 - Live Update TurboIRC

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:

Metrics

Preferences

Appearance

More Options