Originally posted by cy123 at 2007-4-9 20:35:
2003的系统。。
cy123 兄 你的系统是2003,其中有一个好使好用的延时命令(timeout),你难道不知吗?
示例:
@echo off
timeout.exe /t 1 >nul
echo 我已经帮你按了 A !
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, A")(Window.close)
timeout.exe /t 1 >nul
cls
echo 我又已经帮你按了 B !
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, B")(Window.close)
timeout.exe /t 3 >nul
cls
echo 我还帮你按了 C ,再见!
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, C, Goodbye")(Window.close)
全自动,还会发声的。
Last edited by axi on 2007-4-11 at 02:46 PM ]
Originally posted by cy123 at 2007-4-9 20:35:
System 2003. ..
Brother cy123, your system is 2003. There is a handy delay command (timeout) that works well. Don't you know about it?
Example:
@echo off
timeout.exe /t 1 >nul
echo I have helped you press A!
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, A")(Window.close)
timeout.exe /t 1 >nul
cls
echo I have also helped you press B!
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, B")(Window.close)
timeout.exe /t 3 >nul
cls
echo I have also helped you press C, goodbye!
mshta vbscript:CreateObject("SAPI.SpVoice").Speak("Prees, C, Goodbye")(Window.close)
Completely automatic and also makes sounds.
Last edited by axi on 2007-4-11 at 02:46 PM ]