It is currently May 4th, 2024, 12:54 am

[webparser] changing parsed text into link?

Get help with creating, editing & fixing problems with skins
presha
Posts: 5
Joined: May 15th, 2011, 11:24 am

[webparser] changing parsed text into link?

Post by presha »

is it possible (using some variables maybe?) to change the returned text into link?
lets say the webparser returns "http://google.com" and displays it as text... how would I make it clickable like a normal link?

My idea is to parse the .pls or .m3u files which contain the paths to mp3 files and make a playlist straight on the desktop :)
User avatar
GHOST®
Posts: 55
Joined: March 11th, 2011, 6:33 pm
Location: Garden City, MI

Re: [webparser] changing parsed text into link?

Post by GHOST® »

presha wrote:is it possible (using some variables maybe?) to change the returned text into link?
lets say the webparser returns "http://google.com" and displays it as text... how would I make it clickable like a normal link?

My idea is to parse the .pls or .m3u files which contain the paths to mp3 files and make a playlist straight on the desktop :)
Just woke up & still foggy brained, but I think the LeftMouseUpAction below is what ur looking 4??

[MSUR_Google_Link]
Measure=PLUGIN
Plugin=Plugins\WebParser.dll
Url=[MSUR_Google_Feed]
StringIndex=2

[Show_Google_Link]
MeasureName=MSUR_Google_Link
Meter=STRING
X=r
Y=r
LeftMouseUpAction=!Execute [[MSUR_Google_Link]]
"Do you want to be healed, now? Or would you prefer to bleed to death so I can try my hand at resurrection?"
presha
Posts: 5
Joined: May 15th, 2011, 11:24 am

Re: [webparser] changing parsed text into link?

Post by presha »

thanks, used your method and it works but.. only with http links.
what if the regexp returns something like C:\music\file1.mp3 which is actual file stored on hdd?
i tried to launch it with all of these:

Code: Select all

LeftMouseUpAction=!Execute [[MS_UR_File1]]
LeftMouseUpAction=!Execute [file:\\[MS_UR_File1]]
LeftMouseUpAction=!Execute ["[MS_UR_File1]"]
but none of them works. however typing the link manually:

Code: Select all

LeftMouseUpAction=!Execute ["C:\music\file1.mp3"]
works and opens the file. So there's gotta be an error with the expression im trying.
any ideas ? :)