English Amiga Board


Go Back   English Amiga Board > Support > support.AmigaOS

 
 
Thread Tools
Old 06 November 2023, 13:55   #1
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
How is .key /F parameter supposed to work?

I have this script called testp:
Code:
.KEY first/A rest/F

ECHO "<first>"
ECHO "<rest>"
The command "testp aaa" outputs "aaa" and one empty line.

But the command "testp aaa bbb" fails with:
EXECUTE: Parameters unsuitable for key "first/A"
wrong number of arguments

I expected the first ECHO to output the first argument and the second to output all following arguments, if present.
What am I doing wrong?
hceline is offline  
Old 06 November 2023, 14:22   #2
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
https://wiki.amigaos.net/wiki/AmigaO...s#Dot_Commands
https://wiki.amigaos.net/wiki/AmigaO...wing_Arguments

comma required between key's. first/a,rest/a
DisasterIncarna is offline  
Old 06 November 2023, 14:45   #3
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
Thank you. I feel stupid now.
hceline is offline  
Old 06 November 2023, 14:54   #4
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,180
haha, I've been there, done that, and still make mistakes today, luckily we have the forums to fix these hiccups
DisasterIncarna 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
Shapeshifter: how is PrepareEmul supposed to work? Bren McGuire support.Apps 22 01 January 2021 11:57
Will the PC-Key 600 work with an Amiga 500 rjd324 support.Hardware 8 02 July 2020 13:21
PortAudio and Asio4ALL, is "pull mode" supposed to work? Dr.Venom support.WinUAE 3 07 November 2013 14:09
BUG: Mapping the END key does not work Zyphrus support.WinUAE 2 19 November 2010 17:26
is the HDD led supposed to work when using CF card Interceptor support.Hardware 2 25 September 2007 10:14

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 22:43.

Top

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