English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 18 October 2016, 20:26   #1
newflesh1
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?
newflesh1 is offline  
Old 18 October 2016, 20:35   #2
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,645
How are you inputting data to the choice variable? Which command?
Amiga1992 is offline  
Old 18 October 2016, 20:41   #3
newflesh1
Registered User
 
Join Date: Mar 2008
Location: Scotland
Posts: 79
Using iconx
newflesh1 is offline  
Old 18 October 2016, 20:42   #4
newflesh1
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.
newflesh1 is offline  
Old 18 October 2016, 20:54   #5
Amiga1992
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)
Amiga1992 is offline  
Old 18 October 2016, 22:59   #6
emufan
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
when yoi start chooser tool, a window with title "Choose" will appear,
and two entries "Font Settings" and "Screen Mode".
click on one and fonts or screenmode preferences tool will start.
emufan is offline  
Old 19 October 2016, 10:07   #7
meynaf
son of 68k
 
meynaf's Avatar
 
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.
meynaf is offline  
Old 24 October 2016, 19:51   #8
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by newflesh1 View Post
I would like a startup-sequence that would allow you to choose from say 8 games.A choice of 1 to 8
To start individual games may use the function keys,to do this just to map the controls on select keys.

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.
AMIGASYSTEM is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09499 seconds with 13 queries