|
想在代码里加个提示音,搜了下帮助文件,找到下面这段代码,想先运行下看看是啥形况,运行时弹出窗口让选择文件,但眼睛有点模糊,看不大清楚,就选择了取消,然后发现该代码同目录下的文件就全没了,全没了,全没了,,,大神们,还有办法恢复吗?
; 添加文件
#AutoIt3Wrapper_Res_File_Add=C:\WINDOWS\Media\tada.wav, SOUND, MYWAV
Global Const $SND_RESOURCE = 0x00040004
Global Const $SND_ASYNC = 1
; 播放该文件 - 该脚本将暂停
DllCall("winmm.dll", "int", "PlaySound", "str", "MYWAV", "hwnd", 0, "int", $SND_RESOURCE)
; 再次播放该文件, 但这次脚本将继续执行
DllCall("winmm.dll", "int", "PlaySound", "str", "MYWAV", "hwnd", 0, "int", BitOR($SND_RESOURCE, $SND_ASYNC))
For $n = 1 To 100
Sleep(15)
ToolTip("非同步! " & $n)
Next |
|