Fellow Monks,
I'm facing a bit of a mindblock, and not sure about which decision to go for.
I'm writing some app for Windows and there's a lot of Events that need blocking event monitors;
The first event is via Win32::Clipboard which waits for the clipboard to change and needs to capture the data and do something with it.
I'm coding a GUI for the app with wxPerl and not sure how to handle the clipboard thing since I get stuck within MainLoop.
So I decided to split it into two piece, one script handles capturing the clipboard data, and another for the GUI, so came the passing of data; fork+pipes are blocking. I tried to store the data in a temp file, but there was a need to notify the GUI that the temp file has changed, Win32::ChangeNotify can do that, but it's blocking.
I'm just starting with Wx, and probably missing much, is there a way to implement Win32::Clipboard from with a Wx app?
My idea was to try something like:
while (1) { # 100 as to try and make room for other things to happen # as if it is non-blocking if ($CLIP->WaitForChange(100) == 1) { $clipboard = $CLIP->Get(); } }
somewhere, but even that found no place to go...
Any pointers are appreciated.
In reply to Win32::Clipboard from within a wxPerl by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |