Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Bombus on November 13, 2007, 03:41:55 PM

Title: VB Script as Action
Post by: Bombus on November 13, 2007, 03:41:55 PM
Hi!

I'm trying to start a script frpm an action in CCPulse+

This is the script I type in the action script dialoge box:
---------------------------------------------------------

main

Sub main()

Dim Shell
Set Shell = WScript.CreateObject("WScript.Shell")
Shell.Run "C:\Temp\SendSMS.vbs", , true

End Sub
----------------------------------------------------------

But an error message comes up:

Error at
Line 6
Position 0
Error Message: Object Required: 'Wscript'


What does that mean?

And does anyone have any tips on how i can call a script like this so that i works.
The Script file i want to start is om my desktop, but I can't seem to get it right.
The script I want o start is working.

Mvh
Marcus
Title: Re: VB Script as Action
Post by: cavagnaro on November 13, 2007, 04:38:58 PM
WScript.CreateObject("WScript.Shell")

?? If WScript is not yet set how can you invoke a method of it?

Is it

Set x = CreateObject("","WScript.Shell")?
Title: Re: VB Script as Action
Post by: Anchract on November 14, 2007, 03:11:20 PM
what do you mean with: if WScript is not set??