[MBS] QTMovieExporterMBS.Progress = 3 (MBS REALbasic Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] MonkeyBread Software Releases Extract Movie Soundtrack 2.0
Next thread: Re: [MBS] RE: Application crash using the QuickTimeMBS Plugin and AES decryption


Re: [MBS] Extra PrefItems?   -   Garth Hjelte
  [MBS] QTMovieExporterMBS.Progress = 3   -   Philip Hsiao
   Re: [MBS] QTMovieExporterMBS.Progress = 3   -   Christian Schmitz

[MBS] QTMovieExporterMBS.Progress = 3
Date: 05.02.10 06:03 (Thu, 4 Feb 2010 23:03:23 -0600)
From: Philip Hsiao
I can't get QTMovieExporterMBS.Progress k to work.

During the ProgressUpdatePercent event I need to send messages with the RB
TCPEasySocket, etc. They are buffered until the export is finished. Also,
updating a text field during this event doesn't work. If I write the message
to a variable, and have a timer or thread read it periodically and send it
thru TCPEasySocket, that doesn't work either.
Only thing that works is System.Log or System.DebugLog.

Re: [MBS] QTMovieExporterMBS.Progress = 3
Date: 05.02.10 09:28 (Fri, 5 Feb 2010 09:28:04 +0100)
From: Christian Schmitz

Am 05.02.2010 um 06:03 schrieb Philip Hsiao:

> I can't get QTMovieExporterMBS.Progress k to work.
>
> During the ProgressUpdatePercent event I need to send messages with the RB
> TCPEasySocket, etc. They are buffered until the export is finished. Also,
> updating a text field during this event doesn't work. If I write the message
> to a variable, and have a timer or thread read it periodically and send it
> thru TCPEasySocket, that doesn't work either.
> Only thing that works is System.Log or System.DebugLog.

Well, Mode 3 calls events and yields. The REALYieldToRB gives time to run other threads. I'm not sure whether it runs timer.
But in the ProgressUpdatePercent event you can update a progressbar or do what you need.

For the socket, you may need to call socket.poll to have it running.

Greetings
Christian





Links
MBS Filemaker Plugins - Nachhilfe in Kruft