2009 Aug 10 2:01 PM
Hi,
how can I do this small visual basic code in abap ? Is it possible ?
Dim msg, sapi
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
Best Regards.
2009 Aug 10 2:29 PM
Looks like your VB code reads out the entered text. i dont think there is anything like that in SAP
2009 Aug 10 2:20 PM
2009 Aug 10 2:28 PM
ok,
get text from user
speak text which user write using sapi.spvoice object
Actually , I need a little code ;
user enter text , and the program is spoken to this text.
Edited by: onur saruhan on Aug 10, 2009 3:30 PM
2009 Aug 10 2:28 PM
2009 Aug 10 2:29 PM
Looks like your VB code reads out the entered text. i dont think there is anything like that in SAP
2009 Aug 10 3:33 PM
You are right . That's why I can not use execute function for *.vbs file like ws_execute . Is there any way ?
2009 Aug 10 7:14 PM
onur saruhan ,
You could call a VB executable using CL_GUI_FRONTEND_SERVICES=>EXECUTE, passing text you want read aloud in the parameter "PARAMETER". The VB executable would be executed on the frontend, speaking the text you passed. SAP would not speak the text, Windows would.
Bruce
2009 Aug 11 7:58 AM
Thanks for all your replies. I solved another way to this problem.
2014 Sep 12 2:27 PM