Tukata Posted September 22, 2006 Share Posted September 22, 2006 $a = "Hello world" _TalkOBJ($a) Func _TalkOBJ($s_text) Local $o_speech $o_speech = ObjCreate("SAPI.SpVoice") $o_speech.Speak ($s_text) $o_speech = "" EndFunc Being not so expert I need some info and help: 1. On which OS this code will work without any problem ? 2. In what cases this code will not work ? 3. Is there a way to check user's OS to be sure this code will work ? 4. What should I tell user to do or install in case he needs to ? 5. Can somebody write me the full script for checking user's OS and giving the needed message ? Many thanks in advance. Tuk Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2006 Moderators Share Posted September 22, 2006 (edited) $a = "Hello world" _TalkOBJ($a) Func _TalkOBJ($s_text) Local $o_speech $o_speech = ObjCreate("SAPI.SpVoice") $o_speech.Speak ($s_text) $o_speech = "" EndFunc Being not so expert I need some info and help: 1. On which OS this code will work without any problem ? 2. In what cases this code will not work ? 3. Is there a way to check user's OS to be sure this code will work ? 4. What should I tell user to do or install in case he needs to ? 5. Can somebody write me the full script for checking user's OS and giving the needed message ? Many thanks in advance. Tuk5. Sure!! Not!! 3. @OSversion Edited September 22, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted September 22, 2006 Share Posted September 22, 2006 1. Windows 2000 and above support Sapi. 2. No sound card etc 3. Check error on ObjCreate or check the registry for Sapi. 4. Refer to 1. 5. Too lazy ATM to write a script when you can have a go at it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now