Sign in to follow this  
Followers 0
Emax

Windows Media Player Object!

7 posts in this topic

#1 ·  Posted (edited)

This is the script:

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$obj = ObjCreate("WMPlayer.OCX")
If Not IsObj($obj) Then
beep()
Exit
EndIf


$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$ActiveX = GUICtrlCreateObj($obj, 0, 0, 425, 289)
GUISetState(@SW_SHOW)
 

$obj.enableContextMenu = False
$obj.uiMode = "full"
$obj.settings.AutoStart = True
$obj.url = ""
$obj.AutoSize = 'false'

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

i get an error:

Test.au3 (113) : ==> The requested action with this object has failed.:
$obj.AutoSize = 'false'
$obj.AutoSize = 'false'^ ERROR
->20:22:53 AutoIT3.exe ended.rc:1
>Exit code: 1   Time: 2.481

I see here: http://msdn.microsoft.com/en-us/library/aa913364.aspx

Why not work? T.T

Edited by Emax

Share this post


Link to post
Share on other sites



Emax,

Please do not bump your posts within 24 hours. :)

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Not Work,Player continue to autoresize when i start video :)

Share this post


Link to post
Share on other sites

This sounds like it could be related to ticket #2076 (can't set boolean to object), if that's the case, you have to wait for the next AutoIt version to be released for an easy fix.

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  
Followers 0