Jump to content

Recommended Posts

Posted (edited)

AVI is not depended on external events other than it's own. It's either playing it's own animation GUICtrlSetState($AVI, $GUI_AVISTART) or not playing it GUICtrlSetState($AVI, $GUI_AVISTOP). You can test it, make a gui with a button control and start the avi, pushing the button may popup a message box, if the avi animation keep looping then nothing will stop it but GUICtrlSetState($AVI, $GUI_AVISTOP) or program termination.

Edit: Here, take a look:

#include <GuiConstantsEx.au3>

Dim $hGUI = GUICreate('Test', 200, 100)
Dim $AVI = GUICtrlCreateAvi('shell32.dll', 150, 0, 0)
Dim $Button = GUICtrlCreateButton('Button', 70, 70, 60, 25)

GUISetState()
GUICtrlSetState($AVI, $GUI_AVISTART)

While 1
    Switch GUIGetMsg()
        Case $Button
            MsgBox(0x30, 'Title', 'Text')
        
        Case -3
            ExitLoop
    EndSwitch
    Sleep(20)
WEnd

GUIDelete()
Edited by Authenticity
Posted

AVI is not depended on external events other than it's own. It's either playing it's own animation GUICtrlSetState($AVI, $GUI_AVISTART) or not playing it GUICtrlSetState($AVI, $GUI_AVISTOP). You can test it, make a gui with a button control and start the avi, pushing the button may popup a message box, if the avi animation keep looping then nothing will stop it but GUICtrlSetState($AVI, $GUI_AVISTOP) or program termination.

Edit: Here, take a look:

#include <GuiConstantsEx.au3>

Dim $hGUI = GUICreate('Test', 200, 100)
Dim $AVI = GUICtrlCreateAvi('shell32.dll', 150, 0, 0)
Dim $Button = GUICtrlCreateButton('Button', 70, 70, 60, 25)

GUISetState()
GUICtrlSetState($AVI, $GUI_AVISTART)

While 1
    Switch GUIGetMsg()
        Case $Button
            MsgBox(0x30, 'Title', 'Text')
        
        Case -3
            ExitLoop
    EndSwitch
    Sleep(20)
WEnd

GUIDelete()

Okay now i really confused! lol

Posted

The answer for your question, in short, is that yes, it's possible to play AVI animation while your script is downloading a file.

You can cook meal too.

But that is not related to Rorka's question.

♡♡♡

.

eMyvnE

Posted

lol trancexx.

Fine, now I understand the question so it'll require a few tests.

I have some AVI's i can upload if you make some code to play while downloading it?

Posted (edited)

I have some AVI's i can upload if you make some code to play while downloading it?

This means you won't upload otherwise? Edited by trancexx

♡♡♡

.

eMyvnE

Posted

I think the correct term of what you want is "streaming".

Yes like youtube... its on there server and gets played to you via temp download :D

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
  • Recently Browsing   0 members

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