SET BELL ON SET BELL TO 'blip.wav' ? CHR(7)But that seemed clumsy. Same old blip sound. Maybe you don't notice it. Maybe it didn't get your attention.
* return the DOS short path name for a file in _cliptext DECLARE INTEGER GetShortPathName IN kernel32.DLL ; STRING lpszLongPath, STRING @lpszShortPath, INTEGER BufferLen DECLARE INTEGER Beep IN kernel32 INTEGER dwFreq, INTEGER dwDuration DECLARE Sleep IN kernel32 LONG dwMilliseconds LOCAL lpszLongPath, lpszShortPath, BufferLen, retval STORE REPLICATE(CHR(0),256) TO lpszShortPath STORE LEN(lpszShortPath) TO BufferLen STORE GETFILE() + CHR(0) TO lpszLongPath retval = GetShortPathName(lpszLongPath, @lpszShortPath, BufferLen) IF retval # 0 _CLIPTEXT = SUBSTR( lpszShortPath, 1, retval ) Beep(800,40) && play a morse "v" Sleep(40) Beep(800,40) Sleep(40) Beep(800,40) Sleep(40) Beep(800,100) ENDIFThe only problem is that the Beep API in Win9x doesn't work. I found some info about using assembler in Delphi to directly access the programmable timer at port 43H which connects to the pc speaker. It will not work in XP but I don't need it in XP, I only need it in Win 9x anyway! Maybe assembler is too much, maybe I can do it in C and make a DLL.