Jump to content
Sign in to follow this  
Hello Me You

GUICtrlCreateObj

Recommended Posts

How can I attach a video (*.wmv) to the object?

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 633, 447, 195, 143)
$Obj1 = ObjCreate("WMPlayer.OCX.7")
$Obj1_ctrl = GUICtrlCreateObj($Obj1, 72, 72, 192, 192)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

bump..

.uiMode="none" or .uiMode="full".

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("AForm1", 633, 447, 195, 143)

$Obj1 = ObjCreate("WMPlayer.OCX.7")

$Obj1_ctrl = GUICtrlCreateObj($Obj1, 72, 72, 400, 400)

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

With $Obj1

.uiMode="full"

;.autoStart(True)

.URL="C:\Documents and Settings\Will\My Documents\My Videos\zt_awaypull_hilite.avi"

EndWith

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

Edited by Will66

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  

×
×
  • Create New...