GetMessage([MIN=0, MAX=0])
Retrieves a message sent to the window, optionally considering only messages identifiers in the range MIN..MAX.
If a message is found, the function returns a 7 elements array containing:
- 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. Note that this function should not be normally used unless you know very well what you're doing.
####
my @message = Win32::GUI->GetMessage();
print "MESSAGE: " . join(",",@message[0..3]) . "\n\n";
####
MESSAGE: 1,49315,17,526238