Jump to content

Recommended Posts

Posted

@all

this will get you started.

#include <GUIConstants.au3>
#include <wmp.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("AForm1", 518, 439, 192, 125)
$wmp = _wmpcreate(1, 8, 8, 425, 425);creates object
_wmpsetvalue( $wmp, "nocontrols" );hides controls
GUISetState(@SW_SHOW)
_wmploadmedia( $wmp, @HomeDrive & "\WINDOWS\clock.avi" );loads media
Sleep(1000)
_wmpsetvalue( $wmp, "controls" );shows controls
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;;;;;
    EndSelect
WEnd
Exit

Regards,

ptrex

Posted

No one knows how to fix this or why it is happening?

Could we please have a sample of your code?? And do you have the correct AVI codecs installed?? from memory WMP didn't really like them :whistle:
Posted

Here's the code used to create it.

$display = _wmpcreate(1, 181, 10, 280, 210)
_wmploadmedia($display, $readfrom, 0)
_wmpsetvalue($display, "control")oÝ÷ Ø   ݶ©¬¿¥«¬y»­¶Ü¡×ºÚ"µÍY ÌÍÝYÝ]ÈH   ][ÝÜ^I][ÝÈ[WÝÛÙ][YJ  ÌÍÙÜ^K  ][ÝÜ]ÙI][ÝÊBIÌÍÝYÝ]ÈH ][ÝÜ]ÙI][ÝÂ[ÙRY   ÌÍÝYÝ]ÈH   ][ÝÜ]ÙI][ÝÈ[WÝÛÙ][YJ    ÌÍÙÜ^K  ][ÝÜ^I][ÝÊBIÌÍÝYÝ]ÈH   ][ÝÜ^I][ÝÂ[Y

I hope this helps. I am not sure about the AVI codecs, but WMP plays avis just fine when it's not in a GUI.

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
×
×
  • Create New...