mIRC Homepage
Posted By: andymps add an icon? - 10/07/03 07:28 AM
is it possible to add icons to that bar between the main menubar and the channels bar, the one with the options, remotes,dcc stuff etc on it?
Posted By: pheonix Re: add an icon? - 10/07/03 07:30 AM
yes,it is also possible to make your own toolbar using ktools.dll and mdx.dll
Posted By: andymps Re: add an icon? - 10/07/03 07:31 AM
hmm how do i do it ?
Posted By: pheonix Re: add an icon? - 10/07/03 07:32 AM
dll pathtoktools.dll DockToolbar $dialog(name).hwnd
dll pathtomdx.dll SetDialog name Style

p.s both should be on the init:*:{ section of your dialog.
Posted By: andymps Re: add an icon? - 10/07/03 07:34 AM
ok i put that in remotes ? yes?
Posted By: pheonix Re: add an icon? - 10/07/03 07:35 AM
do you have mdx and ktools?
Posted By: andymps Re: add an icon? - 10/07/03 07:36 AM
yes
Posted By: pheonix Re: add an icon? - 10/07/03 07:43 AM
mdx
ktools
Posted By: andymps Re: add an icon? - 10/07/03 07:48 AM
ok i got them, i read through the readme and im lost
Posted By: pheonix Re: add an icon? - 10/07/03 07:50 AM
on dialog:name:init:0:{
dll pathtoktools DockToolbar $dialog($dname).hwnd
dll pathtomdx SetDialog $dname Style
<anything you want to add here>
}
Posted By: andymps Re: add an icon? - 10/07/03 07:57 AM
ok i have done that, then what am i supposed to do?
Posted By: pheonix Re: add an icon? - 10/07/03 08:03 AM
make your dialog and icons......
Posted By: andymps Re: add an icon? - 10/07/03 08:04 AM
how, i dont know what to do, with the icon bit anyways
Posted By: pheonix Re: add an icon? - 10/07/03 08:07 AM
use the icon feature in dialog studio.
Posted By: andymps Re: add an icon? - 10/07/03 08:22 AM
ok i got this,
dialog Mp3_icon {
size -1 -1 104 62
title "Dialog"
icon 1,10 10 83 40,C:\Program Files\mIRC\button1.jpg, 0
}
on dialog:mp3_icon:init:0:{
dll c:\ktools\ktool.dll DockToolbar $dialog($dname).hwnd
dll c:\dialog_Scripts\mdx.dll SetDialog $dname Style
}
but now it just opens a dialog box with it in
also /dialog -what shall i use
Posted By: pheonix Re: add an icon? - 10/07/03 08:25 AM
change:
on dialog:mp3_icon:init:0:{
to
on *:dialog:mp3_icon:init:0:{

use: /dialog -m mp3_icon mp3_icon
Posted By: vexx0r Re: add an icon? - 10/07/03 08:25 AM
That is the kind of person you tell /help dialogs. Just my opinion though.
Posted By: Watchdog Re: add an icon? - 10/07/03 08:26 AM
Perhaps, but the help file does not support DLL's.
Posted By: andymps Re: add an icon? - 10/07/03 08:26 AM
ok, now it has opened a dialog box in the toolbar
Posted By: pheonix Re: add an icon? - 10/07/03 08:26 AM
technically it should be /help dll's because its not really the dialog hes having trouble with wink
Posted By: pheonix Re: add an icon? - 10/07/03 08:27 AM
yes thats right.
Posted By: andymps Re: add an icon? - 10/07/03 08:29 AM
but it has opened a box, and i want just the icon
Posted By: pheonix Re: add an icon? - 10/07/03 08:30 AM
well you cant, i dont think, unless you want to remake mircs toolbar in a dialog and add your 1 icon to the end.
Posted By: vexx0r Re: add an icon? - 10/07/03 08:32 AM
Yea but if you would have read in the beginning when he said what do i do? and you told him to put the stuff in his dialog and he said what do i do?
Posted By: pheonix Re: add an icon? - 10/07/03 08:34 AM
o i see what ya mean now grin
Posted By: pheonix Re: add an icon? - 10/07/03 08:36 AM
alternately you could make your own dll grin
Posted By: andymps Re: add an icon? - 10/07/03 08:39 AM
if u wanna show me how grin
im suprised i can do mirc scripting i suck at most stuff, i once tried an html website, trust me u dont wanna see what that turned out like, imagine a dll
Posted By: pheonix Re: add an icon? - 10/07/03 08:41 AM
find a dll tutorial

i cannot write dll's yet but im learning c++, and im looking at necromans tutorial on dll's, now i just have to find a compiler wink
Posted By: andymps Re: add an icon? - 10/07/03 08:42 AM
nahh i think i know someone who has done an icon i prolly find out off him grin
Posted By: vexx0r Re: add an icon? - 10/07/03 08:43 AM
Maybe you should stick to using a previously made mirc script it would probably be better for you and the poor guy that is trying to help you, i am a couple days into this scripting thing and i understood what pheonix has told you to do... and for html easiest internet scripting language (if you can even call it that) i guess ... well i don't know i suggest you read the intro to mirc and then practice for a couple days or weeks or maybe motnhs until you have a grasping on what it is you want.
Posted By: pheonix Re: add an icon? - 10/07/03 08:45 AM
other than the use of dll's the only way i can think of adding an icon to the toolbar is by hacking the exe and dont even think about asking for help on that mad
Posted By: andymps Re: add an icon? - 10/07/03 08:48 AM
o, ok, i know someone who can do that to, j/k
Posted By: pheonix Re: add an icon? - 10/07/03 08:55 AM
or there may be another posibilty,if you can get the opening position of the dialog to land exactly where u want the icon and make the dialog really small,it might mix in and just look like a "dialogless" icon wink

Edit: thats just a suggestion, im not too sure but the dll might automatically resize the dialog so it fits with the toolbar :tongue: .
Posted By: andymps Re: add an icon? - 10/07/03 08:56 AM
wont let it go small enough
Posted By: pheonix Re: add an icon? - 10/07/03 08:58 AM
it goes small enough for me :tongue:

size -1 -1 88 16

that is small enough to fit, but you have to play with -1 -1 to change the position of where it opens wink
Posted By: andymps Re: add an icon? - 10/07/03 09:01 AM
i c, i will give it a try
Posted By: CusHi0n Re: add an icon? - 10/07/03 10:43 AM
If you want some help using mdx/popups/ktools dll's. PM me, I'd be happy to help.
Greetz
Posted By: Watchdog Re: add an icon? - 10/07/03 11:50 AM
To let your URL format correctly you need to make sure there's no space where the = sign is. And also the site is not there.
© mIRC Discussion Forums