Author Topic: VB Script as Action  (Read 4336 times)

Offline Bombus

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
  • Do you think it's dead?
VB Script as Action
« 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

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: VB Script as Action
« Reply #1 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")?

Anchract

  • Guest
Re: VB Script as Action
« Reply #2 on: November 14, 2007, 03:11:20 PM »
what do you mean with: if WScript is not set??