08-10-2009 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.
08-10-2009 2:29 PM
Looks like your VB code reads out the entered text. i dont think there is anything like that in SAP
08-10-2009 2:20 PM
08-10-2009 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
08-10-2009 2:28 PM
- The fist part with one of the multiple POPUP function modules (eg TRM_POPUP_TEXT_INPUT)
- The second part with OLE ? ([ABAP as OLE2 Automation Controller|http://help.sap.com/saphelp_nw04/helpdata/EN/db/9987b3c3cf11d194ad00a0c94260a5/frameset.htm])
Regards,
Raymond
08-10-2009 2:29 PM
Looks like your VB code reads out the entered text. i dont think there is anything like that in SAP
08-10-2009 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 ?
08-10-2009 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
08-11-2009 7:58 AM
Thanks for all your replies. I solved another way to this problem.
09-12-2014 2:27 PM