You could use the following VBScript to do this. The message box is non-modal, although it is also not attached to the Opus window so it'll be hidden (and possibly forgotten about for a long time) if the user clicks on the lister to do stuff.
Call it like this:
MsgBox.vbs "Title of Box" "Body of box. Hello world."
[code]Dim args
set args = WScript.Arguments
if args.Count <> 2 then
MsgBox "MsgBox.vbs: Wrong number of arguments." & vbCRLF & vbCRLF & "Give the title of the message box as the first argument." & vbCRLF & vbCRLF & "Give the body of the message box as the second argument."
WScript.Quit 1
end if
Dim MsgBoxTitle
MsgBoxTitle = args.Item(0)
Dim MsgBoxBody
MsgBoxBody = args.Item(1)
MsgBox MsgBoxBody, vbInformation, MsgBoxTitle[/code]
Seems okay to me. I made this test button, with the MS-DOS Batch Function type:
@set moo = {dlgstring|type something|something}
echo {$moo}
pause
When I run it it echos whatever I type into the dialog box.
[quote="BobA"]I wondered about the tilde (~) in the regular pattern matching
[...]
It seems that select pattern ~n and any variant I could think of, always selects all files?[/quote]
When using pattern matching ~n will match any file that is not called "n".
If you wanted to match all files that don't start with 'n' then you could use ~(n*)
To match all files that don't contain an 'n' you could use ~(n)
You can also exclude ranges of characters using [~a-z] -- see the Pattern Matching Syntax appendix in the manual for all the rules.
Note Opus supports two types of matching: Pattern Matching and Regular Expressions. I don't think ~ has any special meaning in the context of Regular Expressions. The select command uses Pattern Matching so it's not important here; just thought I'd mention it in case it avoids confusion down the road.