Jump to content

Validate if ObjCreate is created


bosteso
 Share

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)
GUISetState(@SW_SHOW)

; 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"
EndWith

; MAIN LOOP
While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
    Sleep(10)
WEnd

Thanks in advanced

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...