mIRC Home    About    Download    Register    News    Help

Print Thread
#184458 29/08/07 10:40 AM
Joined: Aug 2007
Posts: 25
S
sameh84 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2007
Posts: 25
please i made a custom nick list but need some help when join the room it doesn't replaced with the mirc nick list so when i am trying to query some nick or use the mirc nick list popups for the selected nick get an error so i can change in width of mirc nick list while the custom nick list is working so any help about this how can i replace with the mirc one or how can i show the mirc nick list popups for the custom nick list.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I'm not too sure what DLL your using, if it's the nickLUST dll try this:

Code:
alias <marked alias> {
  if ($1 == rclick) {
    return TRUE
  }
}


Change <marked alias> to the alias you chose in call where you marked the channel.

From the nickLUST help file:

Since we return FALSE in the rclick event nickLUST wont call mirc's default popups. If we were to return TRUE or return nothing at all then the default popups will be opened.

Joined: Aug 2007
Posts: 25
S
sameh84 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2007
Posts: 25
mm this may help more :

Code:
on *:Dialog:nicklist:init:*: {
  dll dlls\rebar.dll Dock $dialog($dname).hwnd > right
  dll $mdx SetMircVersion $version
  dll $mdx MarkDialog $dname
  dll $mdx SetDialog $dname style sysmenu
  dll $mdx SetControlMDX $dname 11 ListView report single noheader > $views
  dll $mdx SetDialog $dname bgcolor $rgb(0,0,0)
  dll $mdx SetFont $dname 1,10,29,30,47,53 -12 600 Courier New
  dll $mdx SetFont $dname 2,4,6,8 -17 600 Arial
  dll $mdx SetFont $dname 14 -13 600 Arial
  dll $mdx SetColor $dname 31,32,26,3,5,7,9,20,41,42,15,60 text $rgb(255,0,0)
  dll $mdx SetColor $dname 2,4,6,8,14 text $rgb(252,252,252)
  dll $mdx SetColor $dname 31,32,26,3,5,7,9,20,41,42,15,60 textbg $rgb(0,0,0) << (black theme)
  dll $mdx SetColor $dname 2,4,6,8,14 textbg $rgb(0,0,0)<<(black theme)
  dll $mdx SetColor $dname 1,10,29,30,47,53,2,4,6,8,14 background $rgb(0,0,0) <<(black theme)
  did -i $dname 11 1 headerdims 160
  did -i $dname 11 1 iconsize normal small
  did -i $dname 11 1 seticon normal 0, $+ $ico(bcn.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(owner.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(host.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(spec.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(norm.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(ignore.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(cup.ico)
  did -i $dname 11 1 seticon normal 0, $+ $ico(voice.ico)
}



The ID for The list of the nicklist is 11

Code:
on *:DIALOG:nicklist*:*:11: {
  if ($gettok($did($dname,1),1,32) == sclick) { sline $active $calc($did($dname,11).sel - 1) }
  if ($gettok($did($dname,1),1,32) == dclick) {
    sline $active $calc($did($dname,11).sel - 1)
    query $nick($active,$calc($did($dname,11).sel - 1))
  }
  if ($gettok($did($did,1),1,32) == rclick) {
    sline $right($dname,-5) $calc($did($dname,11).sel - 1)
    %null = $dll($ndll,Popup,$!window(* $+ $right($dname,-6) $+ *,1))
  }
}


no one is working from the right or single click or even double

and if i changed the id in select event to 11 doesnt work or even echo any thing

Code:
if ($gettok($did($dname,1)

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Nope it doesn't help sorry. The portion your looking for will look something like:

Code:
  dll nickLUST.dll NickLust.dll Mark # > <marked alias> nosortheader balloon flatsb hottrack
  dll nickLUST.dll SetTipTitle # 1 > Nickname Info
  dll nickLUST.dll SetTipColor # text $rgb(255,0,0)
  dll nickLUST.dll SetTipColor # bkg $rgb(0,0,0) 
  dll nickLUST.dll SetColor # op $rg(cop)
  dll nickLUST.dll SetColor # halfop $rg(ch)
  dll nickLUST.dll SetColor # normal $rg(crr)
  dll nickLUST.dll SetColor # bkg $rg(bkn)
  dll nickLUST.dll SetColor # voice $rg(cv)


Search your script for similar code to that.

Or simply search all files for "SetColor # op" or "nicklust" without quotes.

Joined: Aug 2007
Posts: 25
S
sameh84 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2007
Posts: 25
mm i think i explained that in wrong way may be that code for the custom nick list and this one doesnt work
Code:
on *:DIALOG:nicklist*:*:11: {
  if ($gettok($did($dname,1),1,32) == sclick) { sline $active $calc($did($dname,11).sel - 1) }
  if ($gettok($did($dname,1),1,32) == dclick) {
    sline $active $calc($did($dname,11).sel - 1)
    query $nick($active,$calc($did($dname,11).sel - 1))
  }
  if ($gettok($did($did,1),1,32) == rclick) {
    sline $right($dname,-5) $calc($did($dname,11).sel - 1)
    %null = $dll($ndll,Popup,$!window(* $+ $right($dname,-6) $+ *,1))
  }
}


when i join the channel all nicks appears in the nicklist but when i try to right click on any nick to get the orignal nicklist options that in the popups tab cant get so this code is wrong ? or wt is the wrong in the pervious


Link Copied to Clipboard