mIRC Home    About    Download    Register    News    Help

Print Thread
#109121 25/01/05 11:23 PM
A
Adriano
Adriano
A
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

D
DaveC
DaveC
D
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?

A
Adriano
Adriano
A
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

I
Iori
Iori
I
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
  }

A
Adriano
Adriano
A
thanks Iori, very helpful
thanks!


Link Copied to Clipboard