??chr(7)does not play sound (if same application is running in Windows 10, chr(7) plays sound).
RUN notify.wavplays sound over RDP also but leaves Windows media player open and active.
RUN /N7 notify.wavthrows RUN/! command failed error.
PARAMETER times, out PRIVATE mb, x, nTone IF TYPE('times') = "L" times = 1 nTone = 1 else nTone = iif(times=1,1, iif(times=3,35,75) ) ENDIF IF EMPTY(out) if nTone = 35 times = 1 out = .1 else out = .01 endif ENDIF IF ! "FOXTOOLS" $ SET('library') SET LIBRARY TO foxtools.fll ADDITIVE ENDIF mb = regfn("MessageBeep", "I", "I") &&1=default, 25 = critical,35=question,55=exclamation,75 = asterik FOR x = 1 TO times err = callfn(mb, nTone) WAIT "" TIMEOUT out ENDFOR RETURN ""