Adding URLs?

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

Adding URLs?

Postby caco on Fri Jan 06, 2006 11:04 am

Is it possible to add a web link into a VST or schematic to perhaps allow linking to an online help guide?
caco
essemist
 
Posts: 98
Joined: Thu Nov 17, 2005 9:27 am

Postby stefan on Fri Jan 06, 2006 11:11 am

Hm. Not atm no. Would be _very_ easy to add though, I'll talk to malc about it.

Basicly you just need a component that takes a string input and a trigger input. This component would in turn call "system()" (if I remember the functions name correctly) with the supplied string as a parameter.

This way, you could tell the OS to execute basically anything. It works just like the "run" command on the start menu.
Stefan
User avatar
stefan
smunatic
 
Posts: 2384
Joined: Wed Dec 15, 2004 9:24 pm
Location: Gothenburg, Sweden

Postby caco on Fri Jan 06, 2006 11:21 am

:) Thanks Stefen
caco
essemist
 
Posts: 98
Joined: Thu Nov 17, 2005 9:27 am

Postby Tom7777 on Fri Jan 06, 2006 11:23 am

I would like such a module it would be very useful i think :)
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby infuzion on Fri Jan 06, 2006 12:43 pm

You'll have to change the filepath to Firefox on your system:
Image
I think there's a way to use a DOS program to read the registry, but I'll leave that to you ;)
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Postby Tom7777 on Fri Jan 06, 2006 12:47 pm

Well thats not exactly the best way to do it really, what if they had it installed at a different path or a different browser? I think it would be best if there was a module that checked what browser the user has instead of typing a path. I think SE has a module which loads urls but im not sure how its done though.
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby stefan on Fri Jan 06, 2006 1:46 pm

Tom7777 wrote:Well thats not exactly the best way to do it really, what if they had it installed at a different path or a different browser? I think it would be best if there was a module that checked what browser the user has instead of typing a path. I think SE has a module which loads urls but im not sure how its done though.


The component shouldn't really check for what browser is used. It should just tell the OS to "run" something. Just like the run command, like I explained above. You just have to call the function system() with a string, so it's easily implemented as a component.
Stefan
User avatar
stefan
smunatic
 
Posts: 2384
Joined: Wed Dec 15, 2004 9:24 pm
Location: Gothenburg, Sweden

Postby GaryG on Fri Jan 06, 2006 4:16 pm

stefan wrote:This way, you could tell the OS to execute basically anything.


um, wouldn't that lead to security holes?

a bit like macro viruses in MS documents?

I'd hate to see SM being branded a dangerous, insecure application... :)

.g
User avatar
GaryG
essemilian
 
Posts: 323
Joined: Mon May 30, 2005 10:49 pm
Location: Kent, UK

Postby Shifrin on Fri Jan 06, 2006 7:39 pm

GaryG wrote:
stefan wrote:This way, you could tell the OS to execute basically anything.


um, wouldn't that lead to security holes?

a bit like macro viruses in MS documents?

I'd hate to see SM being branded a dangerous, insecure application... :)

.g


It would be no more secure/insecure than any other VST written in C++ where the author can basically write code to do whatever they wish to the system their VST is run on :wink:

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby stefan on Fri Jan 06, 2006 11:37 pm

GaryG wrote:
stefan wrote:This way, you could tell the OS to execute basically anything.


um, wouldn't that lead to security holes?

a bit like macro viruses in MS documents?

I'd hate to see SM being branded a dangerous, insecure application... :)

.g


You'd have to look upon schematics as if they where executables. Like exes and dll's :) Which I guess you do use... Otoh, one could add an option for DISABLING this component, so that you'd be at no risk when opening someone elses schematic.

Macro viruses are a bit more disturbing though, they have the ability to spread between documents. I don't see how this component would make it possible to spread malicious code to other schematics.
Stefan
User avatar
stefan
smunatic
 
Posts: 2384
Joined: Wed Dec 15, 2004 9:24 pm
Location: Gothenburg, Sweden


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 0 guests