PDA

View Full Version : New to set up a link


Kenster18
08-18-2004, 10:09 AM
Folks, I wish to create a link to the web. Please bear with me in your response. I am not that fluent in speaking code. The simpler the better. Thanks for your patience.

Kenster :huh

rhosk
08-18-2004, 10:41 AM
You need to be a little more specific.

Worm
08-18-2004, 10:41 AM
Depending on what you want.

Within AMS you can use the following code on any event you want to open up the default browser to a web site.


--open the default browser to IR's website
File.OpenURL("http://www.indigorose.com", SW_SHOWNORMAL)


Or if you are wanting to make a Shortcut to put on someone's dekstop, use this:

--Set the contents of the URL file
sWebLink = "[DEFAULT]\r\n";
sWebLink = sWebLink .. "BASEURL=http://www.warmuskerken.com/\r\n";
sWebLink = sWebLink .. "[InternetShortcut]\r\n";
sWebLink = sWebLink .. "URL=http://www.warmuskerken.com/";

--Write out the file
TextFile.WriteFromString(_DesktopFolder .. "\\Warmuskerken.url", sWebLink, false);


Hope that helps.

Brett
08-18-2004, 10:54 AM
or:

Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP),"Indigo Rose Web Site","http://www.indigorose.com");

Worm
08-18-2004, 10:59 AM
Smarty Pants!

;)

or:

Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP),"Indigo Rose Web Site","http://www.indigorose.com");

Brett
08-18-2004, 11:01 AM
Actually, I am wearning my new pair of Old Navy cargo pants which I love (it's cold (http://weatheroffice.ec.gc.ca/forecast/city_e.html?YWG) here today.) Loose, comfortable, cheap, and oh, so stylish. I guess they are smart pants, come to think of it...

Kenster18
08-18-2004, 11:15 AM
Worm, thanks for the code, it worked. I appreciate yours and everyone else's help.

Kenster

Corey
08-18-2004, 01:02 PM
Harem pants are fully inline with the criteria you've listed and will turbocharge your nightlife. :yes "Smarter" pants, if you will.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)