18 October 2016, 20:26 | #1 |
Registered User
Join Date: Mar 2008
Location: Scotland
Posts: 79
|
Menu startup-sequence.
I would like a startup-sequence that would allow you to choose from say 8 games.A choice of 1 to 8
Like else if $choice eq "7" test:games/Apidya/Apidya.Slave else if $choice eq "8" test:games/RType/RType.Slave else skip main_loop back But this is not resulting in a game being executed by pressing a number,does anyone know where i am going wrong? |
18 October 2016, 20:35 | #2 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
How are you inputting data to the choice variable? Which command?
|
18 October 2016, 20:41 | #3 |
Registered User
Join Date: Mar 2008
Location: Scotland
Posts: 79
|
Using iconx
|
18 October 2016, 20:42 | #4 |
Registered User
Join Date: Mar 2008
Location: Scotland
Posts: 79
|
I can get the modified script to execute but not to give me the choics.
|
18 October 2016, 20:54 | #5 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
iconx is to execute scripts through icons, it has nothing to do with what you want to do.
You need a command that will read a key input and spit out a value that you then store in $choice and then you compare. What is the line before the else? Perhaps it'd help if you posted the full script (use the [ code ] [/ code] tag) |
18 October 2016, 22:59 | #6 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
maybe you can use something like Chooser from Aminet.
for a quick test you have to create simple textfile --> s:chooser.programs with these lines: Code:
Choose Font Settings sys:prefs/font Screen Mode sys:prefs/screenmode and two entries "Font Settings" and "Screen Mode". click on one and fonts or screenmode preferences tool will start. |
19 October 2016, 10:07 | #7 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
You could do something like this :
alias 7 test:games/Apidya/Apidya alias 8 test:games/RType/RType Then when the user types these numbers in the cli, it runs the program. |
24 October 2016, 19:51 | #8 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Quote:
In the first step of the attached video you can see the menu and the function keys to launch applications [ Show youtube player ] Last edited by AMIGASYSTEM; 23 November 2016 at 17:52. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3.9 Startup Sequence | dannyp1 | Amiga scene | 2 | 04 January 2016 20:56 |
ed s:startup-sequence | Astrofra | Member Introductions | 2 | 24 February 2013 22:09 |
startup-sequence | mai | support.Other | 10 | 01 June 2010 21:39 |
Startup-Sequence | blade002 | support.Apps | 8 | 04 April 2008 19:06 |
Need help with startup-sequence | lopos2000 | support.Apps | 5 | 01 August 2005 11:54 |
|
|