Jump to content
Sign in to follow this  
Hello Me You

GUICtrlCreateObj

Recommended Posts

Hello Me You

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

Random

Share this post


Link to post
Share on other sites
Hello Me You

Will anyone help me?


Random

Share this post


Link to post
Share on other sites
Hello Me You

bump..


Random

Share this post


Link to post
Share on other sites
Will66

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
Hello Me You

I will check it when I go home and see if it is working. Thank you anyway.


Random

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  

×