hallo.
I have a program like this:
Gui...
.
.
.
OnMessage(0x00FF, "InputMsg")
.
.
.
InputMsg(wParam, lParam)
{
.
.
.
}
I would know what are the wParam and lParam arguments; when the function InputMsg(...) is automatically called, how that arguments are charged, who charge that, and how are passed?
Thank you very much
OnMessage(...): how work it?
Re: OnMessage(...): how work it?
if the message code is meant to be that of WM_INPUT, then read the WM_INPUT docs: https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-input
if not, then read whatever application's docs ure expecting to receive such a message from
if not, then read whatever application's docs ure expecting to receive such a message from
Re: OnMessage(...): how work it?
As you were told yesterday, it depends. Do you have a specific purpose for using it? It can be used to receive Windows messages or communication from another process like another one of your scripts. The values of the parameters depend on the message.
Edit: What swagfag said.
Please use [code][/code] tags when posting code. Thank you.
Edit: What swagfag said.
Please use [code][/code] tags when posting code. Thank you.
Re: OnMessage(...): how work it?
Thank you very much for your patience.
I studied very much on your link (and much more) and I think I am to begin to understand the HID API working.
I red how to register a HID device to generate the WM_INPUT message and lParam and wParam parameters.
I hope to understand it well.
Now I have a small problem: after an HID registration I would to receive immediately a WM_INPUT message, without waiting for a key press: is it possible? how?
Thank you very much.
I am using AHKHID funcrtions downloaded from this site (it is a very good work); I am updating instructions tha are not enough (for my opinion): if you are interested, at the end of the work I can send you the updated instructions.