|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I have this little problem, i store my icons in a *.icl file, but now i trying to return the icon from the file, in a dialog i can use:
$mircdir $+ icons.icl,N
but now i want to return the icon's in the file to nicklust:
nicklust AddIcon $1 > $shortfn()
it's here the problem are, how would i return the icon file? the code i trying to solve are between () in $shortfn, someone that know? or do i need to store the icons as *.ico files?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jul 2006
Posts: 4,180
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,180 |
i never used this dll but a search on google give me this : Syntaxe : dll nicklust.dll SetIcon # op|normal|halfop|voice > index,filename.ext
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
that didn't work. and i return the dll file like: alias nicklust { dll $+(",$mircdirdlls\nicklust3.dll,") $1- } and i call the dll with: nicklust AddIcon $1 > $shortfn() and the files in *.icl is named 1 - 2 - 3 - 4 and so on, so it's no difficult names that i misspelled. any more ideas? ;---------- EDIT I must also ask why this aren't working:
alias ic-pth {
var %x = 0
while (%x < 21) {
inc %x
return $mircdirnlist\ $+ %x $+ .ico
}
when this work:
alias ic-pth {
var %x = 0
while (%x < 21) {
inc %x
echo -a %x
}
i want to fill the dialog with icons, and to do that i call a alias named "ic-pth" with $ic-pth, then i want to inc %x untill it get to 21 and after that stop.
Last edited by sparta; 25/10/08 12:58 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
Fjord artisan
Joined: Mar 2007
Posts: 218 |
SetIcon # op|normal|halfop|voice > index,filename.ext You can use either a dll exe ico and icl. If you use a library of icons then you can also use an index to specify wich icon to use. Example: SetIcon # op > 5,op_icon.icl
Last edited by vexed2; 25/10/08 01:16 PM.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Hopefully a dumb question, but, have you confirmed that you have 21 .ico files in the subdirectory nlist, which is off of the mIRC installation directory?
P.S.: In both of your alias codes, your missing a closing brace bracket.
Regarding the nicklust problem, sorry but I've never used it.
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I have 21 files, and i missed the last } when i copied the code. it only return the firs file, %x = 1 , it won't inc %x when i return the answer and want to load the icon to the dialog.
:-------- edit
If i change the line that "return" the info. and replacing return with echo, after that it working as it should, so the question is, how can i return the info i want?
Last edited by sparta; 25/10/08 02:05 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jul 2006
Posts: 4,180
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,180 |
Do you know what return do ? I'm really wondering why you're asking question like this, you're doing a /return on a while and you don't undertand why it doesn't work ? You should also learn how to debug your code, simply by add the -s switch to /inc here, it will show you that return just do what it should, stop the routine.You can't do this, put you're while loop in your code directly.
And vexed2, read my post :p
Last edited by Wims; 25/10/08 02:09 PM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
Fjord artisan
Joined: Mar 2007
Posts: 218 |
I did, then realised it's the old nicklust helpfile anyway, from 2002. Nicklust3 is from 2004. I managed to find the help file in the end. If he has the helpfile, he should have no problems, the script is virtually all there ..
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I wanted to get help with it, the reason why i want it to inc the %x is so i don't need to have 21 lines with the path to the icon file, i know it "return" the info, then stop, but i also tried to make it keep on going until it was up to 21, and i pasted the code here since if i don't i get the answer "without the code we cant help you". so ideas on how to return the file path/name for all 21 would be great, or must i use the path/file.ico for all the files?
;------- edit
i just return the path, then i save some bytes there =)
Last edited by sparta; 25/10/08 02:47 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
|