This has been bothering me for quite some time now, I hope someone here can help me.
In Windows Notepad I save a blank file as "hello.vbs"
Then I enter this:
Save and then I double click hello.vbs to run it. I get the following error:
Why? I have the flash plugin installed on my computer.
I've tried this: regsvr32 C:\WINDOWS\system32\Macromed\Flash\Flash32_11_5_502_149.ocx
It says that it succeeded, still I get the same error. I've also tried this in hello.vbs:
None of it works! I'm very annoyed, what am I missing here? All I want to do is load a flash file into VBScript.
My end goal is to try and create a screenshot of the flash file in VBScript once it has loaded. Please help!
In Windows Notepad I save a blank file as "hello.vbs"
Then I enter this:
Code:
Set test = CreateObject("ShockwaveFlashObject")
Set test = NothingCode:
Script: C:\hello.vbs
Line: 1
Char: 1
Error: ActiveX component can't create object: 'ShockwaveFlashObject'
Code: 800A0AD
Source: Microsoft VBScript runtime errorI've tried this: regsvr32 C:\WINDOWS\system32\Macromed\Flash\Flash32_11_5_502_149.ocx
It says that it succeeded, still I get the same error. I've also tried this in hello.vbs:
Code:
Set test = CreateObject("AxInterop.ShockwaveFlashObjects")
Set test = CreateObject("ShockwaveFlashObjects")
Set test = CreateObject("AxShockwaveFlashObjects")
Set test = CreateObject("ShockwaveFlashObject")
Set test = CreateObject("Flash32_11_5_502_149")My end goal is to try and create a screenshot of the flash file in VBScript once it has loaded. Please help!