openUrl() nonfunctional?

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: openUrl() nonfunctional?

Post by Denarii »

That.. makes no sense.

Yetzederixx
Posts: 186
Joined: Sun Nov 14, 2010 5:57 am

Re: openUrl() nonfunctional?

Post by Yetzederixx »

Your code wouldn't work without them, sorry.

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: openUrl() nonfunctional?

Post by Denarii »

Ah, I see it now.

Yetzederixx
Posts: 186
Joined: Sun Nov 14, 2010 5:57 am

Re: openUrl() nonfunctional?

Post by Yetzederixx »

Now that it works, is there anyway to make it replace the existing URL instead of appending the echo at the end of the line?

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: openUrl() nonfunctional?

Post by Denarii »

Code: [show] | [select all] lua
moveCursor(selectString(matches[2], 1), getLineNumber())
replace""
insertLink(matches[2], [[openURL("]]..matches[2]..[[")]], matches[2])
Should do it.

Post Reply