mIRC Home    About    Download    Register    News    Help

Topic Options
#253366 - 11/06/15 06:30 PM Is there a way to change the favicon
xboxer16 Offline
Pikka bird

Registered: 08/04/15
Posts: 18
Hello,

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

Top
#253367 - 11/06/15 06:38 PM Re: Is there a way to change the favicon [Re: xboxer16]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#253368 - 11/06/15 07:05 PM Re: Is there a way to change the favicon [Re: westor]
Loki12583 Offline
Hoopy frood

Registered: 22/01/04
Posts: 1263
There's an "icon" control you can define in a dialog.

Top
#253369 - 11/06/15 07:09 PM Re: Is there a way to change the favicon [Re: Loki12583]
xboxer16 Offline
Pikka bird

Registered: 08/04/15
Posts: 18
But that icon is just an image, not a favicon

Top
#253370 - 11/06/15 07:10 PM Re: Is there a way to change the favicon [Re: westor]
xboxer16 Offline
Pikka bird

Registered: 08/04/15
Posts: 18
Can you link me, all I can find is dcx studio, which doesn't even work/

Top
#253371 - 11/06/15 07:15 PM Re: Is there a way to change the favicon [Re: xboxer16]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#253372 - 11/06/15 07:25 PM Re: Is there a way to change the favicon [Re: westor]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#253373 - 11/06/15 08:25 PM Re: Is there a way to change the favicon [Re: westor]
xboxer16 Offline
Pikka bird

Registered: 08/04/15
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)

Top
#253374 - 11/06/15 08:36 PM Re: Is there a way to change the favicon [Re: xboxer16]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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


Edited by westor (11/06/15 08:38 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#253375 - 11/06/15 08:41 PM Re: Is there a way to change the favicon [Re: westor]
xboxer16 Offline
Pikka bird

Registered: 08/04/15
Posts: 18
The static path worked, but is there any way to use a dynamic one?

Top
#253376 - 11/06/15 08:47 PM Re: Is there a way to change the favicon [Re: xboxer16]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Try to put the icon into the code file path and use:

Code:
icon $scriptdirtlogo.ico, 0


/help $scriptdir


Edited by westor (11/06/15 08:48 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top