OS4 DepotLogo by Alkaron 
(anonymous IP: 3.12.148.180,2259) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (501)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4400

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 File comments for:  Graphics » Icon » weblinks.lha

Web Links

Description: Easy Web/Bookmarks Links Icons
Download: weblinks.lha
Version: 2.0
Date: 29 Oct 2013
Category: graphics/icon
FileID: 8386
RSS Feed url: https://os4depot.net/modules/comments/rssfeed.php?file=graphics/icon/weblinks.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: amigang (86.165.245.101)At: 27 Oct 2013, 16:00File version: 1.0
Thanks for the comments guys, still at the very beginning of my programming adventure I will look into implentmenting one of these and make an update in the doc about the now many different ways I've learned how to do this. Thanks
 
 
Comment by: Severin (31.185.200.187)At: 26 Oct 2013, 22:10File version: 1.0
urlopen should be used as default though and it's always available, only people with OS4.0 need openurl

If exists "c:urlopen"
urlopen "http://www.amigaworld.net"
else
openurl "http://www.amigaworld.net"
endif

That will never fail on 4.1 and on 4.0 will open a console reporting openurl not found if it's not installed.

If you want a neater solution still using a script just use a script like:

.bra {
.ket }
.key url
If exists "c:urlopen"
urlopen "{url}"
else
if exists "c:openurl"
openurl "{url}"
else
echo "OpenURL Not installed."
endif
endif

Then in the icons have the script as the default tool, run in shell mode without prompting for input, put the url in a tooltype.

Don't forget to set the S bit on the script

I've not tested this but you should be able to use the same script with all the icons.
 
 
Comment by: djrikki (80.5.186.220)At: 26 Oct 2013, 16:41File version: 1.0
Another script solution would be:

if exists sys:c/OpenURL
if exists libs:openurl.library
openurl "http://www.amigaworld.net"
endif
else
urlopen "http://www.amigaworld.net"
endif
 
 
Comment by: djrikki (80.5.186.220)At: 26 Oct 2013, 16:36File version: 1.0
Both of the Twitter and Facebook logos are out of date and the amigaworld logo is clearly squeezed horizontally. Nice idea.
 
 
Comment by: Severin (31.185.200.187)At: 26 Oct 2013, 15:08File version: 1.0
You can easily remove the dependency on iconx by doing the following:-

Open the icon onformation.
Turn the script protection bit on.
Go to the icon tab and delete the default tool.
Change 'start from' to shell, turn off prompt for input

Another way to do it is:-
just have an icon with the url as the name eg. os4depot.net.info
set the default tool to urlopen
and a tooltype of "PROTOCOL=HTTP"

No need to set the script bit and just run it in workbench mode.

 
 

Copyright © 2004-2024 by Björn Hagström All Rights Reserved