本帖最后由 lynfr8 于 2009-7-6 19:37 编辑
当然可以_MsgBoxSound(32,"test","welcome to a c n I m lynfr8 ")
Func _MsgBoxSound($iFlag,$sTitle,$sText,$nTime=0,$hwnd="")
Local $Sapi=ObjCreate("SAPI.SpVoice")
If Not IsObj($Sapi) Then
Return MsgBox($iFlag,$sTitle,$sText,$nTime,$hwnd)
Else
$Sapi.Speak($sText)
$Sapi=0
Return MsgBox($iFlag,$sTitle,$sText,$nTime,$hwnd)
EndIf
EndFunc
英文发音详细见:
http://www.autoitx.com/forum.php?mod=viewthread&tid=3654&extra=page%3D6
_MsgBoxSound
中文发音看:
http://www.autoitx.com/forum.php?mod=viewthread&tid=8182&extra=page%3D1 |