Jump to content
Sign in to follow this  

Validate if ObjCreate is created

Recommended Posts


Good morning for all,

in simple words:

i need validate if $swfObj = ObjCreate("ShockwaveFlash.ShockwaveFlash") is created, or if the plugin exist on machine, and if is NOT of FALSE the answer, alert with message box and launch install plugin.

currently i´m work with one script that i find in this forum, and i´ll post here

#include <guiconstants.au3>

$mGUI = GUICreate("Tutorials", 790, 120, 0, 0, -1 )
GUISetBkColor (0x000000)

; Create Flash Object
$swfObj = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$swfActiveX = GUICtrlCreateObj( $swfObj, 0, 0 , 790, 120)

; Configure Flash Object (Make as Function)
With $swfObj
    .Movie = @ScriptDir & '\testfile.swf'
    .ScaleMode = 2;0 showall, 1 noborder, 2 exactFit, 3 noscale
    .bgcolor = "#FFFFFF"
    .Loop = False
    .WMode = "transparent"
    .allowScriptAccess = "Always"

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE

Thanks in advanced

Share this post

Link to post
Share on other sites


many thanks, <_< this really a good news for me, and again thanks for ur help.

have a nice day!.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.