Skip to content
MSN

Nicklist using popups.dll

A TG007 community discussion started by morph3us.

Discussion 6 posts
Page 1 of 1
Open
Topic #2523 · 6 published posts · 545 views

hey ppls i need some herlp can u please tell me whats wrong with this code

 

on *:dialog:nicklistdlg:*click:2:{
 tokenize 32 $did($did,1)
 if ($1 == rclick) { nicklist.options }
 if ($1 == dclick) { nonyet }
}

alias popdll { dll dlls\POPUPS.dll $$1- }

alias imgs { return $mircdir $+ images/ $+ $1 $+ .ico }

alias pop1 tokenize 32 $dll(dlls\popups.dll,Popup,$1-) | if ($isid) return $1- | $iif($4- != did not select a menu item,$4-)

alias nicklist.options { 
 dll $popdll New nicklist.options 16 16
 dll $popdll nicklist.options icon small $imgs(halo) 
 dll $popdll AddItem nicklist.options end +> 1 1 Nickname %selectednickname
 pop1 nicklist.options $mouse.dx $mouse.dy 
}

 

its not friggen working

Edited Jan 17, 2005 6:52 AM by morph3us

 

Operating System: Microsoft Windows 7 Ultimate 6.1.7600 (Ultimate)

CPU: AMD RX™ 8120 Eight Core, 3.10 GHz

Maximum Clock: 2200 MHz

RAM: DDR3 1333 16 gb Ram

Video Adapter: ATI Radeon HD 3200 Graphics (512 MB)

3D Accelerator: ATI Radeon HD 3200 (RS780)

Monitor: DELL ST2420 (Digital) [24 "LCD]

Monitor: HP 2159 Series Widle LCD monitor [23" LCD]

 

Your better off to have a friend than to be all alone.. If you fail, Your friend can help you up.

  tokenize 32 $did($did,1)

should be

 tokenize 32 $did($dname,1,1)

also, with your dll commands

dll $popdll New nicklist.options 16 16

would equal

dll dll dlls\POPUPS.dll New nicklist.options 16 16

which as you can see is incorrect, either change your alias or the dll line. I would recommend the alias.

 

replace:

alias popdll { dll dlls\POPUPS.dll $$1- }

with

alias popdll return $+(",$mircdirdlls\POPUPS.dll,")

which also gives the spaced directory ability. If you were using your code, and the directory to your mirc file had a space, it wouldn't work, the replace alias would fix it.

Edited Jan 17, 2005 7:00 AM by The Gate Keeper

with this

 

code

 

;;;;;;;;;;;;;;;;;;;;;; POPUPS
on *:dialog:nicklistdlg:*click:2:{
 tokenize 32 $did($dname,1,1)
 if ($1 == rclick) { nicklist.options }
 if ($1 == dclick) { nonyet }
}
alias popdll return $+(",$mircdirdlls\POPUPS.dll,")
alias imgs { return $mircdir $+ images/ $+ $1 $+ .ico }
alias pop1 tokenize 32 $dll(dlls\POPUPS.DLL,Popup,$1-) | if ($isid) return $1- | $iif($4- != did not select a menu item,$4-)
alias nicklist.options { 
 dll $popdll New nicklist.options 16 16
 dll $popdll nicklist.options icon small $imgs(halo) 
 dll $popdll AddItem nicklist.options end +> 1 1 Nickname %selectednickname
 pop1 nicklist.options $mouse.dx $mouse.dy 
}

i get this err0r

* /dll: no such routine 'nicklist.options' (line 91, nicklist.hls)

line 91 is

  dll $popdll nicklist.options icon small $imgs(halo) 

this even occurs if i left click aswell

Edited Jan 17, 2005 7:28 AM by morph3us

 

Operating System: Microsoft Windows 7 Ultimate 6.1.7600 (Ultimate)

CPU: AMD RX™ 8120 Eight Core, 3.10 GHz

Maximum Clock: 2200 MHz

RAM: DDR3 1333 16 gb Ram

Video Adapter: ATI Radeon HD 3200 Graphics (512 MB)

3D Accelerator: ATI Radeon HD 3200 (RS780)

Monitor: DELL ST2420 (Digital) [24 "LCD]

Monitor: HP 2159 Series Widle LCD monitor [23" LCD]

 

Your better off to have a friend than to be all alone.. If you fail, Your friend can help you up.

try and replace the alias for this

 

 alias pop1 tokenize 32 $dll($popdll,Popup,$1-) | if ($isid) return $1- | $iif($4- != did not select a menu item,$4-) 

 

i fixed the error

 dll $popdll nicklist.options icon small $imgs(halo) 

to

  dll $popdll LoadImg nicklist.options icon small $imgs(halo)  

now i get no err0rs but no popup

 

EDIT: and i also changed the code that u told me to change

 

Edited Jan 17, 2005 7:54 AM by morph3us

 

Operating System: Microsoft Windows 7 Ultimate 6.1.7600 (Ultimate)

CPU: AMD RX™ 8120 Eight Core, 3.10 GHz

Maximum Clock: 2200 MHz

RAM: DDR3 1333 16 gb Ram

Video Adapter: ATI Radeon HD 3200 Graphics (512 MB)

3D Accelerator: ATI Radeon HD 3200 (RS780)

Monitor: DELL ST2420 (Digital) [24 "LCD]

Monitor: HP 2159 Series Widle LCD monitor [23" LCD]

 

Your better off to have a friend than to be all alone.. If you fail, Your friend can help you up.

ok its workn now it was becuse of the " +> " becuase i had no join on menu

 

Operating System: Microsoft Windows 7 Ultimate 6.1.7600 (Ultimate)

CPU: AMD RX™ 8120 Eight Core, 3.10 GHz

Maximum Clock: 2200 MHz

RAM: DDR3 1333 16 gb Ram

Video Adapter: ATI Radeon HD 3200 Graphics (512 MB)

3D Accelerator: ATI Radeon HD 3200 (RS780)

Monitor: DELL ST2420 (Digital) [24 "LCD]

Monitor: HP 2159 Series Widle LCD monitor [23" LCD]

 

Your better off to have a friend than to be all alone.. If you fail, Your friend can help you up.