04 May 2020, 13:25 | #1 |
Registered User
Join Date: Jan 2014
Location: Cambs / UK
Posts: 356
|
File request within script
Is there any way I can get a file requester to pop half way through a script and ask the user to choose a file (an iso file in this instance). Then have my script act on the chosen file?
|
04 May 2020, 13:42 | #2 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
https://wiki.amigaos.net/wiki/AmigaO...ce#REQUESTFILE is what you need.
|
04 May 2020, 15:51 | #3 |
Registered User
Join Date: Jan 2014
Location: Cambs / UK
Posts: 356
|
Thanks daxb.
It defintely looks like it is what I need. I just cant seem to get it to work. I can't seem to get it to work with simcd32 command. I have posted my script below. (it is an adaptation of someone else script) Code:
; This is a sample floppy startup-sequence which will boot your system into ; an envirnoment similiar to the one found on the AmigaCD32. There are six ; steps involved: ; ; 1> Run the SimCD32Env program. ; 2> Run the SimCD32 program. ; 3> Mount cd0:. ; 4> Turn off fast memory. ; 5> Assign everything over to cd0:. ; 6> execute the cd0:s/startup-sequence .bra { .key } assign env: ram: REQUESTFILE >env:isofile DRAWER DH1:iso TITLE "Pick an iso to boot" NOICONS c:SimCD32env ; Fire up the Simulated CD32 envirnoment for SimCD32. ; Preloads libraries, sets ChipRev, and opens up a ; simulated startup animation. You could add the ; CDTV.TM keyword to boot up without AA enabled ; (to simulate booting a CDTV trademarked disk). ; This requires the presence of the simulated ; freeanim.library in the library search path. ; Point SimCD32 to your ISOimage run >nil: <nil: c:SimCD32 $isofile Mount cd0: FROM Devs:SimCD32_Mountlist run >Nil: <Nil: c:NoFastMem ; The CD32 has NO fast memory. c:Wait 1 ; Wait to let NoFastMem take effect. assign libs: dh0:libs ; Gives us NVRAM capabilities (see df0:libs) assign ENVARC: dh0:prefs/Env-Archive ; Gives NVRAM location df0:saves makedir RAM:T assign T: RAM:T assign sys: cd0: ; Assign everything over to CD0: assign s: sys:s assign c: sys:c sys: execute cd0:s/startup-sequence endcli >nil: |
04 May 2020, 18:35 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
If you want to get a file then you should leave the DRAWER argument.
|
04 May 2020, 20:08 | #5 | ||
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Quote:
Quote:
.key is wrong. The directives are .bra (opening bracket) and .ket (closing bracket). .key is required also, but as first and with a proper DOS template. .bra and .ket do not make sense without .key. And .key does not make sense if you don't take any arguments, so you should leave them all away. Last edited by thomas; 04 May 2020 at 20:13. |
||
04 May 2020, 23:49 | #6 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
Ups, I did a test here and chose an empty drawer what lead me to the wrong assumption.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use file requestor from script | Sim085 | support.Apps | 8 | 30 January 2019 18:35 |
Will my script's .info file remember where the icon is? | Foebane | support.Apps | 4 | 10 May 2018 00:52 |
Math Script 3.2 Key file | emufan | support.Apps | 2 | 31 March 2016 14:32 |
Executable script file/arguments | shrub3056 | support.Apps | 1 | 26 July 2011 18:08 |
AmigaDos script file help. | T_hairy_bootson | support.Apps | 0 | 07 March 2006 10:15 |
|
|