mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2015
Posts: 18
X
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2015
Posts: 18
Hello,

I was just wondering if there was a way to modify the favicon of a mIRC dialog to something custom.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
mIRC has by default the /tray command only change the tray icon, but for the main mIRC icon you will need to download the dcx.dll that you can customize the mIRC - google it!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
There's an "icon" control you can define in a dialog.

Joined: Apr 2015
Posts: 18
X
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2015
Posts: 18
But that icon is just an image, not a favicon

Joined: Apr 2015
Posts: 18
X
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2015
Posts: 18
Can you link me, all I can find is dcx studio, which doesn't even work/

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Have a look here: http://westor.ucoz.com/load/mirc_dlls/dcx/2-1-0-7

This is the dcx.dll, but actually the FAQ page is down!

If you want help about this connect into irc.undernet.org into the #mircscripting channel, there is the DCX developer ask there which is the dcx command.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Actually forget the DLL my mistake, i had really forget that, Loki is right, mIRC has this feature by default on dialogs, just put the "test.ico" into your mirc.exe directory and use this code:

To run the dialog: /dialog -m test test

Code:
dialog test {
  title "Test Dialog"
  size -1 -1 233 121
  option dbu
  icon test.ico, 0
  button "Button", 1, 97 105 37 12
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Apr 2015
Posts: 18
X
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2015
Posts: 18
I put the file in the same dir as mirc.exe, and used this:
Code:
dialog away {
  title "Away Manager"
  size -1 -1 130 81
  option dbu
  icon tlogo.ico, 0
  button "Go Away", 1, 7 5 53 12
  button "Come back", 2, 70 5 53 12
  combo 4, 7 21.5 85 50, size edit drop
  button "Add", 5, 94 20 14 12
  button "Del", 6, 109 20 14 12
  check "Auto Time Away", 8, 7 35 46 12
  check "Auto Idle Away", 9, 7 45 43 12
  check "Open on Away?", 10, 7 55 43 12
  text %stat, 7, 7 70 116 8
}



However, it did not work.

(I only copied the relevant code here)

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
It working on me: http://goo.gl/qMu2Xi

Try with the icon in the 30x30 pixels.

or

add in the icon tlogo.ico, 0 an full path example:

Code:
icon C:\westor\Documents\mIRC\tlogo.ico, 0

Last edited by westor; 11/06/15 07:38 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Apr 2015
Posts: 18
X
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2015
Posts: 18
The static path worked, but is there any way to use a dynamic one?

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try to put the icon into the code file path and use:

Code:
icon $scriptdirtlogo.ico, 0


/help $scriptdir

Last edited by westor; 11/06/15 07:48 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard