How to wait some time to get a screenshot / allow flash do things ?

.NET Edition of the F-IN-BOX
ArtMM
Posts: 1
Joined: Wed Jun 01, 2016 11:12 am

How to wait some time to get a screenshot / allow flash do things ?

Postby ArtMM » Mon Jul 15, 2013 5:00 pm

We've bought the license for the .net version. We need to generate thumbnails for some of the swf files. I've created a console application (STA Thread) with a form, which loads the swf file and plays the swf file at a specific frame and gets the bitmap screenshot. For some of the swf's the frame is blank, but there are some actions which fills the screen. I am unable to get the screenshot after the actions are complete. Is there a way to get the screenshot after the actions are complete or wait for few seconds before grabbing the screenshot?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: How to wait some time to get a screenshot / allow flash do things ?

Postby Softanics » Mon Jul 15, 2013 9:32 pm

Hi,

There is a thread with flash control (along with message cycle so far) and there is another thread. In another thread you just call Sleep(some seconds) and then take a snapshot.

It looks quite well.

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests