Hi Ian, I've used the PREPARE tags in the authoring of labs to add video (audio could be added in a similar fashion) if this fits the requirements
PREPARE coclass 'jvideo' coinsert 'jbrowser' t=:'YES'-: wd 'mb Test "Would you like to include Video?" mb_yesno' launch ^: t 'http://www.youtube.com/watch?v=0WCXLgaQ9es' PREPARE The above code is added so that all that is between the two PREPARE tags, is invisible to the viewer of the lab (with the exception of the message box and the video that is launched). This can be edited into the .ijt files of labs using the lab authoring tool in the studio menu, or with other text editors. I am also stumbling along trying to incorporate video into the J 701 JHS interface but haven't quite ironed out the boundaries between J and the web...yet :) Hope this helps. Cheers, bob On 2011-01-11, at 8:35 PM, Ian Clark wrote: > Trouble is, this is Win-only, using PlaySound / PlaySoundA. > > Has anyone done something comparable on the Mac or Linux? Or must I > generate and execute a Bash script? > > > On Tue, Jan 11, 2011 at 4:23 PM, David Mitchell <davidmitch...@att.net> wrote: >> For wav's this worked for me: >> >> load'media/wav' >> wavplay'K:\Program Files\Microsoft >> SDKs\Windows\v7.1\Samples\winui\speech\engines\samplettsengine\makevoice\blah.wav' >> >> http://www.jsoftware.com/jwiki/Addons/media/wav?highlight=(wav) >> >> I suggest that you check on the J wiki for many helpful hints. >> -- >> Cheers, >> David >> >> On 1/11/2011 5:45, Gian Medri wrote: >>> *I am very new at J, but I have used APL many years. I develop programs as >>> a help to dyslectic pupils as well as to those who have difficulties in >>> learning mathematics. In this contest pictures and sound are essential. >>> >>> 1) How do I get a picture (bmp or others) as a background in a form or as an >>> image? I tried with (wd ' set isipicture filename'), without success . wd >>> commands documentation is not complete and there is not example in the Labs >>> or Demos. >>> >>> 2)**How do I get a sound from a wav file or others format? >>> >>> 3)Normally I have programs that works with 2 or 3 languages. >>> I can change the language in buttons and other controls but not in the >>> menus. >>> >>> >>> Many thanks in advance. >>> >>> Gian* >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm