Jump to content

AVI paused during WIM export


Recommended Posts

Hello everyone, I am currently working on implementing _WIM_ExportImage function by Homes32. However, when the following func is called, the AVI file stops playing. Please help me as I can't get where I am at fault.

Func ExportImg($sWimFile, $iImageIndex, $Final)
$aResult = _WIM_Startup()
$Form1da = GUICreate("Exporting...", 289, 93, 223, 238, BitOR($WS_MINIMIZEBOX,$WS_GROUP,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
$Avi1 = GUICtrlCreateAvi("IrRes.dll", 165, 0, 0, 272, 60, BitOR($ACS_CENTER,$ACS_TRANSPARENT,$ACS_AUTOPLAY))
           GuiSetState(@SW_SHOW, $Form1da)
    $hWim = _WIM_CreateFile($sWimFile, $WIM_GENERIC_READ, $WIM_OPEN_EXISTING, 0, 0, 0)
    $aResult1 = _WIM_SetTemporaryPath($hWim, @TempDir)
    $hImage = _WIM_LoadImage($hWim, $iImageIndex)
    $hWim1 = _WIM_CreateFile($Final, $WIM_GENERIC_WRITE, $WIM_OPEN_ALWAYS, 0, $WIM_COMPRESS_LZX, 0)
    $aResult2 = _WIM_SetTemporaryPath($hWim1, @TempDir)
    _WIM_ExportImage($hImage, $hWIM1, $WIM_EXPORT_ALLOW_DUPLICATES)
    If $hImage Then _WIM_CloseHandle($hImage)
    If $hWim Then _WIM_CloseHandle($hWim)
    GuiDelete($Form1da)
_WIM_Shutdown()
EndFunc

Thank you.

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...