Think about Loose Coupling | |
PerlMonks |
Win32::Clipboard from within a wxPerlby Chady (Priest) |
on May 11, 2003 at 18:53 UTC ( [id://257258]=perlquestion: print w/replies, xml ) | Need Help?? |
Chady has asked for the wisdom of the Perl Monks concerning the following question: 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:
somewhere, but even that found no place to go... Any pointers are appreciated. He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life. Chady | http://chady.net/
Back to
Seekers of Perl Wisdom
|
|