mIRC Home    About    Download    Register    News    Help

Print Thread
#69905 31/01/04 09:07 PM
Joined: Sep 2003
Posts: 10
Y
yythe1 Offline OP
Pikka bird
OP Offline
Pikka bird
Y
Joined: Sep 2003
Posts: 10
my problem is with submenus , for showing a list of variables with a link . here's how the menu looks like :

links menu
.$submenu($links($1))

and the alias structure is :

%var. [ $+ [ $1 ] ] : run iexplore.exe %var. [ $+ [ $1 ] ]

but it shows me only http
the rest is cut and it doesn't work! how can i fix it?

#69906 31/01/04 09:16 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$1-


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#69907 31/01/04 09:25 PM
Joined: Sep 2003
Posts: 10
Y
yythe1 Offline OP
Pikka bird
OP Offline
Pikka bird
Y
Joined: Sep 2003
Posts: 10
it didn't help :\
btw i have mirc 6.03

#69908 31/01/04 09:57 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
This is what I have ..
Code:
menu status,menubar {
  Links $+($chr(40),$lines(links.txt),$chr(41))
  .$submenu($links.menu($1))
}
alias links.menu {
  if (($1 == begin) || ($1 == end)) return
  if ($read(links.txt,$1) != $null) return $+($remove($ifmatch,http://,ftp://,irc://),:run iexplore.exe $ifmatch)
}

menu status,menubar {
Links $+($chr(40),$lines(links.txt),$chr(41))
.$submenu($links.menu($1))
}
alias links.menu {
if (($1 == begin) || ($1 == end)) return
if ($read(links.txt,$1) != $null) return $+($remove($ifmatch,http://,ftp://,irc://),:run iexplore.exe $ifmatch)
}

Last edited by EVH; 31/01/04 09:58 PM.
#69909 01/02/04 04:20 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Prob is the colon in http://site, try using only the address without "http:"
Code:
menu * {
  Links	 ( $+ $var(%link.*,0) $+ )
  .$submenu($links($1))
}
alias -l links {
  if $var(%link.*,$1).value { return $gettok($ifmatch,2-,47) :url $ifmatch } 
}


#69910 01/02/04 03:15 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Yeah, I guess I should've explained why it was happening.
Thanks Iori smile


Link Copied to Clipboard