'
' event.bas - generates a user event using the
' system command "setevent".
' The first parameter to setevent is the event text.
' The second parameter is optional, and if specified
' it overrides the priority of the "user event" (event 146)
' in LOGCODES.TXT.

const nl = "\r\n"

print nl, "Generating user event", nl
res = system("setevent \"Generated by BASIC\" 6")
print "Done", nl

