Code: Select all
ComObject("SAPI.SpVoice").Speak("Long Text Speaking")
mostly i do them at the end of an action to start the timer and then give me a audio feedback.
for lots of AHKv1 Threaths i read about Parameters to allow the Voice Speak while script goes on with its actions
whatever i try i do not get different actions in the syncronazion of the voice
Code: Select all
#Requires AutoHotkey v2.0
#SingleInstance Force
InstallKeybdHook
InstallMouseHook
SendMode "Event"
SetKeyDelay(800, 100)
OnExit ExitFunc
; *********************************************************************************************************************************************
~*#::#
; *********************************************************************************************************************************************
F4:: {
ComObject("SAPI.SpVoice").Speak("Long Text Speaking")
MsgBox "i will show up after voice speak.", "Test"
}
F5:: {
MsgBox "i will show up bevore voice speak.", "Test"
ComObject("SAPI.SpVoice").Speak("Long Text Speaking")
}
F6:: {
MsgBox "i will show up bevore voice speak.", "Test"
ComObject("SAPI.SpVoice").Speak("Long Text Speaking",0x1|0x2)
MsgBox "i will show up while voice speak.", "Test"
}
F7:: {
ComObject("SAPI.SpVoice").Speak("Long Text Speaking") , 1
MsgBox "i will show up while voice speak.", "Test"
}
; *********************************************************************************************************************************************
ExitFunc(ExitReason, ExitCode) {
if ExitReason != "Close" and ExitReason != "ExitApp" {
; ----- Edit Here --------
SoundBeep 1000
}}
*F10:: ExitApp