the irc
loop to get the window to update reguraly, but it didn't work either,
here is my program's main loop:
while (!$terminate) {
$window->DoEvents();
if ($loop > 9 && $connected) {
$irc->do_one_loop();
$loop = 0;
}
else { $loop++; }
}
Any suggestions?
Roger Mayfield
using
threads or processes. My program will need to share data with the IRC
thread, so I know forking won't work right even with SIG. I was looking
at Win32::Process but I'm so confused. Anybody know of a good
book/website/tutorial/example using Win32::Process?
Roger Mayfield
I know you can test if a Win32::GUI window has been minimized, but can
you run a sub if a DOS window has been minimized?
Roger Mayfield
ow do you search the mailing list? That little info could prove VERY
useful.
Roger Mayfield
no way in the docs to
'name' a DOS window, only to get it's handle:
($DOS) = Win32::GUI::GetPerlWindow();
So, how do I test if the DOS window has been minimized?
Roger Mayfield
I know you can test if a Win32::GUI window has been minimized, but can
you run a sub if a DOS window has been minimized?
Roger Mayfield
ok, I found a method within the Win32::GUI called IsVisible to test
whether the window is visible or not, but this means whether the window
is hidden or
This script uses an icon file, you'll have to provide one to play with
it. Now, this works fine. When you click the tray icon, the console
disappears, when you click it again, it reappears. What I want to do
know is test whether the console window has been minimized so that I can
then hide the window ie: minimize to tray.
if ($DOS = minimized) { Win32::GUI::Hide($DOS); }
Roger Mayfield
if I did, I could have found this solution by googling
Iconic I'm sure.
Well, actually I had to change it because GetPerlWindow() doesn't return
an object, just a handle I had to use this within the #Main Loop:
if (Win32::GUI::IsIconic($DOS)) { Win32::GUI::Hide($DOS); }
Roger Mayfield
appreciated considering I
have NO idea what the hell I'm doing, lol. Or should I try a different
Mailing list?
Roger Mayfield
one knows. Does SQLite2 support threading?
Roger Mayfield
ss as your Net::IRC and
GUI thread don't block on database access) but the downside is the
extra work involved
Cheers,
jez.
well, considering I need to access some information before I ever start
the thread, I'll just go ahead and split my database.
Roger Mayfield
11 matches
Mail list logo