amiga-news DEUTSCHE VERSION
.
Links| Forums| Comments| Report news
.
Chat| Polls| Newsticker| Archive
.

amiga-news.de Forum > Programmierung > Wie erstelle ich eine einfache Abfrage unter AmigaOS 3.1 [ - Search - New posts - Register - Login - ]

-1- [ - Post reply - ]

2005-01-22, 02:44 h

aPEX
Posts: 4692
User
hallo leute,

wie erstelle ich unter amigaos 3.1 in der startup-sequence
eine abfrage ob ein programm ausgefuehrt werden soll oder
nicht.

z.b

addmem starten?
j / n

bei nein soll er es dann ueberspringen.

danke schonmal im vorraus :)

--
cu, aPEX :bounce:

:commo: A1200-3.1-OS3.9-Blizzard4/64mb :dance1:
:commo: A500-1.3/3.1-OS3.1-MTec Amigapower 68030-MTec AT500 :dance1:
:commo: A1000 Phoenix Revival Project :commo: http://www.a1k.org




[ - Answer - Quote - Direct link - ]

2005-01-22, 09:16 h

thomas
Posts: 7721
User

Z.B. so:

1. im DOS-Fenster:

code:
ask "Soll ich ? (y/n)"
if warn
echo "Ich tue es !"
endif


2. mit Requester:

code:
set choice 'requestchoice Abfrage "Soll ich ?" Ja Nein'
if $choice eq 1
echo "Ich tue es !"
endif


(die Hochkommas im set-Befehl sind die, die man auf der Amigatastatur mit der Taste ganz oben links erreicht oder auf der PC-Tastatur mit Shift und der Taste neben Backspace)

Gruß Thomas

--
Email: thomas-rapp@web.de
Home: home.t-online.de/home/thomas-rapp/

[ - Answer - Quote - Direct link - ]

2005-01-24, 10:17 h

aPEX
Posts: 4692
User
danke thomas! werde es gleich mal heute testen.

--
cu, aPEX :bounce:

:commo: A1200-3.1-OS3.9-Blizzard4/64mb :dance1:
:commo: A500-1.3/3.1-OS3.1-MTec Amigapower 68030-MTec AT500 :dance1:
:commo: A1000 Phoenix Revival Project :commo: http://www.a1k.org




[ - Answer - Quote - Direct link - ]


-1- [ - Post reply - ]


amiga-news.de Forum > Programmierung > Wie erstelle ich eine einfache Abfrage unter AmigaOS 3.1 [ - Search - New posts - Register - Login - ]


.
Masthead | Privacy policy | Netiquette | Advertising | Contact
Copyright © 1998-2025 by amiga-news.de - all rights reserved.
.