ChrisR has asked for the wisdom of the Perl Monks concerning the following question:
I tried the following only printing the first four elements since I wasn't really interested in the time or click coordinates:GetMessage([MIN=0, MAX=0]) Retrieves a message sent to the window, optionally considering only me +ssages identifiers in the range MIN..MAX. If a message is found, the function returns a 7 elements array contain +ing: - the result code of the message - the message identifier - the wParam argument - the lParam argument - the time when message occurred - the x coordinate at which message occurred - the y coordinate at which message occurred If the result code of the message was -1 the function returns undef. N +ote that this function should not be normally used unless you know ve +ry well what you're doing.
Which returned something like this:my @message = Win32::GUI->GetMessage(); print "MESSAGE: " . join(",",@message[0..3]) . "\n\n";
So I get the result code which is always 1.MESSAGE: 1,49315,17,526238
I may be, and probably am, totaly off track on this so I am very open to suggestions of a completely different way to handle this.
Thanks,
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 - Where will the focus go?
by Util (Priest) on Sep 23, 2005 at 19:13 UTC | |
by ChrisR (Hermit) on Sep 23, 2005 at 19:45 UTC | |
by Util (Priest) on Sep 25, 2005 at 22:49 UTC | |
by ChrisR (Hermit) on Sep 26, 2005 at 12:30 UTC | |
|
Re: Win32 - Where will the focus go?
by ariel2 (Beadle) on Sep 23, 2005 at 18:43 UTC | |
by ChrisR (Hermit) on Sep 23, 2005 at 19:11 UTC | |
|
Re: Win32 - Where will the focus go?
by traveler (Parson) on Sep 23, 2005 at 18:43 UTC | |
by ChrisR (Hermit) on Sep 23, 2005 at 19:18 UTC |