Jondroid:
I have a "BlueAnt" BlueTooth.
When the Bluetooth detects the phone and connects, it tells me
So I want the phone "My Program" to wait about 4 seconds and also "TTS" speak the conformation out.
Also when a msg comes in, I want the name to be said first, and after 2 seconds
delay the msg read out.
Bottom line I need a ( WAIT ) sub for each or any line to execute.
Do-DoEvents-Loop works good but, it crashes phone from time to time.
example:
Sub Wait(MS As Long)
Dim now As Long
If MS > 5000 Then MS = 5000 'avoid application not responding error
now=DateTime.now
Do Until (DateTime.now > now + MS)
DoEvents
Loop
End Sub
Thank you: