home *** CD-ROM | disk | FTP | other *** search
- /* $VER: sendbrowser.amirx 2.2 (13 Jan 1998) */
- /**************************************************************************/
- /* Script to give the URL of the URL-Grabber of AmIRC to your WWW-Browser.*/
- /* Currently supported are IBrowse, AWeb and AMosaic */
- /* (Voyager-NG only for compleetnes, in case this script is used from */
- /* another program, AmIRC does not need it) */
- /**************************************************************************/
- /* Author : Markus 'lammy' Lamers; E-Mail: markus.lamers@tu-clausthal.de */
- /* thanx to Peter "Stoebi" Schulz and Dominic "D0M" WΣsch for */
- /* their help */
- /**************************************************************************/
- /* In case your Browser isn't already running, this script will start it. */
- /* For this its necessary to specify the path to your default Browser ... */
- /* Example: BROWSER = "AmiTCP:Voyager/V" */
- BROWSER = ""
- /**************************************************************************/
-
- parse arg args
- options results
-
- ShowURL:
- /* IBrowse */
- if show('P','IBROWSE') then do
- address 'IBROWSE'
- SHOW
- GOTOURL args
- Exit
- end
-
- /* AWeb */
- if show('P','AWEB.1') then do
- address 'AWEB.1'
- OPEN args
- Exit
- end
-
- /* AMosaic (is it still needed ?!) */
- if show('P','AMOSAIC.1') then do
- address 'AMOSAIC.1'
- SHOW
- JUMP URL args
- Exit
- end
-
- /* Voyager */
- if show('P','VOYAGER') then do
- address 'VOYAGER'
- SHOW
- OPENURL args
- Exit
- end
-
- /* Voyager (DEBUG) */
- if show('P','VOYAGER.1') then do
- address 'VOYAGER.1'
- SHOW
- OPENURL args
- Exit
- end
-
- DefaultBrowser:
- address AmIRC.1
- if (BROWSER ~= "") & (exists(BROWSER)) then do
- 'echo found no running browser, will start default browser now ...'
- address command 'Run ' BROWSER args
- end
- else do
- if exists('env:vapor/Voyager_LASTUSEDDIR') then do
- 'echo starting Voyager ...'
- call open(aw,'env:vapor/Voyager_LASTUSEDDIR','r')
- browser=readln(aw)
- call close(aw)
- Voyager=browser'/V'
- address command 'run ' '"'Voyager'"' args
- end
- else do
- address AmIRC.1
- 'echo You must start your WWW-Browser first, or better specify your default browser in sendbrowser.amirx'
- exit
- end
- end
- EXIT
-
-
- EXIT 10
-
-