FUNCTION StatusMode (ALIAS AS STRING) AS STRING
DIM Mode AS STRING
Mode = SPACE$(30)
mciSendString("Status " + ALIAS + " Mode", _
VARPTR(Mode), LEN(Mode) - 1, 0)
Mode = RTRIM$(Mode)
Mode = Mode - CHR$(0)
Result = Mode
END FUNCTION
Mode$ = StatusMode ("MyMP3")
IF Mode$ <> "playing" AND Mode$ <> "paused" THEN
END IF
|