mIRC Home    About    Download    Register    News    Help

Print Thread
#109121 25/01/05 11:23 PM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
Hi,
I need to change icons on DCC Chat, DCC SEND, DCC RECEIVE Window's smilar like this

ctcp *:DCC Chat*:?:{
mircustom SetIcon -w $window($nick).hwnd 8 $aicl
}

how can i do? i know this code is wrong, but is just for idea.
thanks

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
Hi,
I need to change icons on DCC Chat, DCC SEND, DCC RECEIVE Window's smilar like this

ctcp *:DCC Chat*:?:{
mircustom SetIcon -w $window($nick).hwnd 8 $aicl
}

how can i do? i know this code is wrong, but is just for idea.
thanks


I havent ever customized mirc like this, but ill assume you can do it however you are doing it. One thing is a dcc chat is =$nick, and the window wont have opened i dont think yet, maybe try...

ctcp *:DCC Chat*:?:{ .timer 1 1 mircustom SetIcon -w $window(= $+ $nick).hwnd 8 $aicl }
ctcp *:DCC SEND*:?:{ .timer 1 1 mircustom SetIcon -w $window(get $nick $nopath($filename)).hwnd 8 $aicl }

Am i walking off in the wrong direction here?

Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
thanks for the effort DaveC
with DCC Chat icon change only if window is opened, and requested for opened second time in the same person, at this time icons change, but if you open DCC Chat for the first time with one mate not work. just tested with two mirc opened
for DCC SEND for what i look no lucky, i try to make something myself.
thanks again dave

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You could use 'on open' for chats = in the target field is for dcc chats. See /help on open
I'm also assuming you have an alias called mircustom to pass the data on to the mircustom.dll.
Code:
on *:open:=:{
  mircustom SetIcon -w $window(=$nick).hwnd 8 $aicl
}


For gets/sends I thnk you'll have to do some looping through $get().hwnd
Code:
  var %i = 1
  while $get(%i).hwnd {
    mircustom SetIcon -w $v1 8 $aicl
    inc %i
  }


and $send().hwnd
Code:
  var %i = 1
  while $send(%i).hwnd {
    mircustom SetIcon -w $v1 8 $aicl
    inc %i
  }

Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
thanks Iori, very helpful
thanks!


Link Copied to Clipboard