2 HOTLINK bugs - 14/06/12 03:05 AM
1. 'halt' in hotlink in one script block hotlinks in other scripts:
Script1.mrc
Script2.mrc
Moving the cursor over the word
does not show the hand cursor!
This used to work in mirc 7.22
It seems like in 7.25 any halt command stops showing cursor for ALL scripts, not just for the current one.
This is very annoying, because i need a HOTLINK matching * (deciding later on the context wether to actually link)
2. leaving out -d switch for /hotlink does not work properly
add this code
this shows a menu ONLY containing "Test", but the action performed by it is "open link", because that would be the action of the first menu entry if -d was specified.
Script1.mrc
Code:
on *:HOTLINK:*:*:{ if (*abc* iswm $hotlink(word)) return else halt }
Script2.mrc
Code:
on *:HOTLINK:*test*:*:{ return }
Moving the cursor over the word
Code:
test
does not show the hand cursor!
This used to work in mirc 7.22
It seems like in 7.25 any halt command stops showing cursor for ALL scripts, not just for the current one.
This is very annoying, because i need a HOTLINK matching * (deciding later on the context wether to actually link)
2. leaving out -d switch for /hotlink does not work properly
add this code
Code:
menu @test { test:echo -a test } on *:HOTLINK:*www*:*:{ if ($hotlink(event) == rclick) /hotlink -m @test }
this shows a menu ONLY containing "Test", but the action performed by it is "open link", because that would be the action of the first menu entry if -d was specified.