I just had to post on this buggy alone,
You mentioned it but forgot the HALT at the bottom <snicker snicker>
Anyway...
Odd usage of hotlinking there (not wrong just different), normally you use the double click (non ^ option to trip the link)
Also you needed to get rid of the stuff not needed on the $hotline it contains all the text of the line , as in mine is [
timestamp] <nick> text <a href="file://etc" target="_blank">file://etc</a>
$1 well be the ( striped
) text your hotlink was on tho
so you could use that, as in...
on ^1:HOTLINK:*:#: {
if (*file://* iswm $1) {
if (%tmp.link == $1) halt
else {
if ($input(Visiting $1,y,Are you sure?)) run iexplore.exe $1
set -u10 %tmp.link $1
}
}
halt
}
* i made the variable the hotlink so if u pass over another it allows that, dont know if i like that tho, its pretty kaotic
I also cut this out of some code i wrote, and patched it up to work on its own, its not the best becuase well becuase its not LOL, i dont like how i cant figure a way to deal with spaces well.
on ^*:HOTLINK:file?//*:#:{ if (file://* !iswm $1) { halt } }
;
;^ Mirc dont like $($+(file,$chr(58),//*)) as the matchtext, never tried a regex as i suck at them
;
on *:HOTLINK:file?//*:#:{ if (file://* iswm $1) { if ($1 == $left($cb,$len($1))) { tokenize 13 $cb } | run iexplore.exe $1 } }
;
;^ use this if the link is in the middle of other text "this is the file file://server\folder\file.ext open it now"
;^ if the link has spaces in it then highlight it (mirc copy) and then click it "this is the file file://server\new folder\file.ext open it now"
;
; ********
; ** OR **
; ********
;
on *:HOTLINK:file?//*:#:{ if (file://* iswm $1) { tokenize 13 $gettok($strip($hotline),$+($gettok($hotlinepos,1,32),-),32) | run iexplore.exe $1 } }
;
;^ use this if the link is always at the end of the text "this is the file open it now file://server\folder\file.ext"
;^ use this if the link is always at the end of the text "this is the file open it now file://server\new folder\file.ext"
;
* I have spaces in my shared folder assignments "D Drive" etc so all my links always have spaces in
/me wonders if i make things hard for me on purpose