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
Roger,
Steve is right. As a user of SQLite, I know that the DB handles are not
thread safe, and you will need to move the opening context into each of
the threads, not globally copying it. Keep in mind that there may be
certain delays in place if the 2 threads access the DB at the same time.
I
appreciated considering I
have NO idea what the hell I'm doing, lol. Or should I try a different
Mailing list?
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
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
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
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
ow do you search the mailing list? That little info could prove VERY
useful.
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
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
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
nge the
"usetabstop" to 0 then I see all my text on the line with a graphic
symbol where the \t is, so it seems to be doing something.
Suggestions on how to fix this or suggestions on an alternate method to
get the same result would be appreciated. Also, this is the first time
I've tried to use the win32 gui.
Thanks,
Roger
12 matches
Mail list logo