I do have on YAM a "Help "menu with 2 submenu's
"Contents help"
"ARexx interface "
Contrary to what i first hought these must be standard YAM menu's
The links don't work properly though
Probably because i changed the way yam should react on doubleclicking an URL (as people often did send me URL's poinitng to Youtube video's)
Double clicking on aan URL from within a message being read still works properly & Snoopy tells me:
RunCommand(0x189F30C5 "RUN",,"DH0:Utilities/getVideo/PlayYTube "
http://www.v....
The resullts of using the help/ARExx interfaces menus are:
Snoopy :
RunCommand(0x189F30C5 "RUN",,"DH0:Utilities/getVideo/PlayYTube "
http://yam.ch/wiki/<EMPTY>en& the URL copied from Odyssey's URL textin gadget is:
http://yam.ch/wiki/%3CEMPTY%3Een:Documentation/ARexxAPIMy script looks like this:
Quote:
.KEY url/A
;called from YAM "on clicking URL" dh0:Utilities/getVideo/PlayYTube %p
set metube `cut "<url>" char -28`
cd dh0:Utilities/getVideo
IF $metube EQ "http://www.youtube.com/watch"
OR $metube EQ "http://www.youtube.com/embed"
Requestchoice video "<url>" ok
Getvideo.rexx "<url>" play
ELSE
cd stock:internet/odyssey1.23 ; datas:muiODYSSEY/ODYSSEYlauncher does nothing
waitforport ODYSSEY.1 timeout 0; returns 0 if found ; 5 if not
IF WARN
RUN OdysseyLauncher
waitforport ODYSSEY.1 timeout 10
IF WARN
echo "waited not long enough or OdysseyLauncher problem"
ELSE
wait 3 ; the rexx command below will not work without it
RX "address ODYSSEY.1 'OPEN NAME ""<url>"" '"
ENDIF
ELSE
RX "address ODYSSEY.1 'OPEN NAME ""<url>"" '"
ENDIF
ENDIF
cd dh0:Utilities/getVideo
This looks like a YAM bug ?
Edited by JosDuchIt on 2015/3/24 9:06:23
Edited by JosDuchIt on 2015/3/24 9:07:35
Edited by JosDuchIt on 2015/3/24 9:09:32