Emax 0 Posted January 6, 2012 (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 WEndi 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.481I see here: http://msdn.microsoft.com/en-us/library/aa913364.aspxWhy not work? T.T Edited January 6, 2012 by Emax Share this post Link to post Share on other sites
Melba23 3,455 Posted January 6, 2012 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites
Sticky 0 Posted January 7, 2012 Looks like you're referencing old documentation as I found this:http://msdn.microsoft.com/en-us/library/windows/desktop/dd562467(v=VS.85).aspxLooks like you need to use this instead of AutoSize, and pass False instead of 'false'$obj.stretchToFit = False Share this post Link to post Share on other sites
Emax 0 Posted January 7, 2012 Not Work,Player continue to autoresize when i start video Share this post Link to post Share on other sites
AdmiralAlkex 125 Posted January 7, 2012 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites