Hi
Look at this, no mainloop, no windows, before and after screenshot, and optional prompt for filename
I know that events and "main-line code" run asynchronously.
No they don't.
In addition, is there a way to select a specific window among the many to capture.
Not with stock wxWidgets, since its all about windows your app creates. There is probably an extension you could wrap, or you could use Imager::Screenshot / Win32::GuiTest / X11::WindowHierarchy
However, the results are inconsistent. The entire screen is not captured every time it's run. I had to force the example window to the top the get it captured. Otherwise the lower level windows get captured.
That seems to be the what Re: capture what's on the screen was designed to do. Ooops, I just cited the source :)
It makes a difference where the Update and TakeScreenShot calls are placed(see comments below). Why????
Because an Update is not Refresh, and doesn't necessarily trigger any wxPaintEvent ...
After restructuring and cleaning up several bugs, I have it working.
They probably weren't bugs in 2003 :) ( see wxPerl image handling (short & sweet). )
Also, what you posted does not compile, besides extra newlines in your comments, there is odd use colour qw( :everything );
Also, CUFP is for exibition, SOPW is for questions :) see Where should I post X?
Cheers
In reply to Re: Screen Capture via wxPerl Script
by Anonymous Monk
in thread Screen Capture via wxPerl Script
by jmlynesjr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |