-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amiga: Add ARexx scripts to play videos via YT
Credit: Chris Handley
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* YT play.nsrx by Chris Handley | ||
This script shows download links for a YouTube video using YT (OS4Depot:video/misc/yt.lha) | ||
*/ | ||
|
||
options results | ||
|
||
if ~open('yt','AppDir:YT','R') then do | ||
GETSCREENNAME | ||
address command 'requestchoice >NIL: "NetSurf" "YT must be installed for this script to function.*n*nIt can be downloaded from OS4Depot:video/misc/yt" "OK" PubScreen='||result | ||
OPEN 'http://os4depot.net/?function=showfile&file=video/misc/yt.lha' NEWTAB ACTIVE /* This doesn't work due to a NetSurf(?) bug */ | ||
exit | ||
end | ||
close('yt') | ||
|
||
GETURL | ||
/*address command 'requestchoice >NIL: "TEST" "'||result||'" "OK"'*/ | ||
address command 'AppDir:YT <>CON:0/30/640/256/YT/AUTO/CLOSE "'||result||'" html silent' | ||
|
||
/* Hack to activate the newest tab */ | ||
OPEN 'file:///RAM:' NEWTAB ACTIVE | ||
CLOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* YT play.nsrx by Chris Handley | ||
This script opens a YouTube video using YT (OS4Depot:video/misc/yt.lha) | ||
*/ | ||
|
||
options results | ||
|
||
if ~open('yt','AppDir:YT','R') then do | ||
GETSCREENNAME | ||
address command 'requestchoice >NIL: "NetSurf" "YT must be installed for this script to function.*n*nIt can be downloaded from OS4Depot:video/misc/yt" "OK" PubScreen='||result | ||
OPEN 'http://os4depot.net/?function=showfile&file=video/misc/yt.lha' NEWTAB ACTIVE /* This doesn't work due to a NetSurf(?) bug */ | ||
exit | ||
end | ||
close('yt') | ||
|
||
address COMMAND 'Run >NIL: RequestChoice Title="NetSurf" BODY="When finished with YT, click OK to return to NetSurf" GADGETS="OK" INACTIVE >NIL:' /* Hack to get Workbench to front */ | ||
|
||
GETURL | ||
/*address command 'requestchoice >NIL: "TEST" "'||result||'" "OK"'*/ | ||
address command 'AppDir:YT <>CON:0/30/640/256/YT/AUTO/CLOSE "'||result||'"' | ||
|
||
/*TOBACK*/ /* ideally we'd bring Workbench to front */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* YT play.nsrx by Chris Handley | ||
This script auto-plays a YouTube video using YT (OS4Depot:video/misc/yt.lha) | ||
*/ | ||
|
||
options results | ||
|
||
if ~open('yt','AppDir:YT','R') then do | ||
GETSCREENNAME | ||
address command 'requestchoice >NIL: "NetSurf" "YT must be installed for this script to function.*n*nIt can be downloaded from OS4Depot:video/misc/yt" "OK" PubScreen='||result | ||
OPEN 'http://os4depot.net/?function=showfile&file=video/misc/yt.lha' NEWTAB ACTIVE /* This doesn't work due to a NetSurf(?) bug */ | ||
exit | ||
end | ||
close('yt') | ||
|
||
GETURL | ||
/*address command 'requestchoice >NIL: "TEST" "'||result||'" "OK"'*/ | ||
address command 'AppDir:YT <>CON:0/30/640/256/YT/AUTO/CLOSE "'||result||'" AutoPlay' | ||
|
||
/*TOBACK*/ /* ideally we'd bring Workbench to front */ |