Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: "launch file" action in the list box ?
PostPosted: August 29th, 2005, 4:52 am 
Offline

Joined: March 16th, 2005, 9:30 pm
Posts: 6
Hi.
In recent post; Robin Garrett explain how to apply a variable to each line of text in the list box so that the user will click on any of the lines and be transferred to another page.

viewtopic.php?t=646&highlight=aidan

My question: is it possible to make the action launch a file instead of "go to page" ?

And if it possible: can the program launch a file with the same name of the text in the list box? For example: when the end user chooses 1 from the list box; the program will launch the sound file "1.mp3".

Thanks.

OPUS XE 5.10
Windows XP Pro


Top
 Profile  
 
 Post subject: Re: "launch file" action in the list box ?
PostPosted: August 29th, 2005, 7:00 am 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Yes, it's possible to make the action launch a file instead of "go to page".

Change the script action on the listbox

GotoPage(selected)

into

var pathname = SYSTEM_PUBLICATION_DIR + "\\" + selected +".mp3"
LaunchFile(pathname)

(selected will be the text on the lines in the listbox).

The mp3-files (1.mp3, 2.mp3, 3.mp3) should be stored in the system publication directory.

You can use other folders by adding them after the\\, but you have to end with \\.

For example:

var pathname = SYSTEM_PUBLICATION_DIR + "\\mymusic\\" + selected +".mp3"

LaunchFile(pathname)

Hope this helps.

Kind regards,

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group