Echo "You don't have AmigaDOS Release 2 (V37) or higher in ROM."
Echo "AmigaDOS Release 2 is required for this demo to run."
Wait 5
EndCLI >NIL:
EndIf
Echo "*nTest of ReqAsk and GetFile (or two requesters...)*n"
Echo "Now a little test of ReqAsk (or the EasyRequester...)*n"
Wait 1
ReqAsk "This is the EasyRequester.*nIf ReqChange is active, this requester*nshould be centered under the mouse." "It is!|Really?|So what?" "DemoRequest"
If $ReqAskResult EQ 1
Echo "So you have installed ReqChange?"
Echo "How nice!"
EndIf
If $ReqAskResult EQ 2
Echo "Yes, that is one of the nice features of ReqTools."
Echo "Once used to it, you don't wanna miss it!"
EndIf
If $ReqAskResult EQ 0
Echo "Come on! Don't be so negative! :)"
EndIf
Wait 2
Echo "*nAnd now a little test of GetFile (or the AslRequester...)*n"
GetFile SYS: TITLE "Select any file"
If WARN
Echo "You didn't select any file!"
Else
Echo "You selected this file:"
Echo $GetFileResult
EndIf
Echo "*nUse the close gadget to get rid of the window.*n"