Touch down event with hook(WH_MOUSE_LL) and WM_LBUTTON
-
Dear all: I want to implement a application, when I touch the pannel, the application will play sound globally. I use hook(WH_MOUSE_LL) and WM_LBUTTONDOWN to process the touch and PlaySound to play wav. The Question is : when I touch the pannel, it does not play. if I touch and leave fast, it will play. How do I solve this problem? Thank for your help .Victor
-
Dear all: I want to implement a application, when I touch the pannel, the application will play sound globally. I use hook(WH_MOUSE_LL) and WM_LBUTTONDOWN to process the touch and PlaySound to play wav. The Question is : when I touch the pannel, it does not play. if I touch and leave fast, it will play. How do I solve this problem? Thank for your help .Victor
Hi, Any particular reason why you are not handling the WM_TOUCH message[^]? Getting Started with Windows Touch Messages[^] Best Wishes, -David Delaune
-
Hi, Any particular reason why you are not handling the WM_TOUCH message[^]? Getting Started with Windows Touch Messages[^] Best Wishes, -David Delaune
Dear Randor: My application function must be have: 1.When I touch anywhere, even not on my app(ex:desktop, other application, extc...), it will play sound. so I must be use hook, I did not find anything about hook with touch. Does anything else to implement this application Thank for your help, Victor
-
Dear Randor: My application function must be have: 1.When I touch anywhere, even not on my app(ex:desktop, other application, extc...), it will play sound. so I must be use hook, I did not find anything about hook with touch. Does anything else to implement this application Thank for your help, Victor
Hi,
cedricvictor wrote:
Does anything else to implement this applicati
Microsoft recommends that you use a HID filter driver for something like this. You might be able to hack something together with a WH_GETMESSAGE hook. I will now go and answer your original question. Best Wishes, -David Delaune
-
Dear all: I want to implement a application, when I touch the pannel, the application will play sound globally. I use hook(WH_MOUSE_LL) and WM_LBUTTONDOWN to process the touch and PlaySound to play wav. The Question is : when I touch the pannel, it does not play. if I touch and leave fast, it will play. How do I solve this problem? Thank for your help .Victor
Hi,
cedricvictor wrote:
when I touch the pannel, it does not play. if I touch and leave fast, it will play.
When you use the touch screen and 'HOLD down' the touch driver may interpret this as a right click. If the application did not register itself as being 'compatible with touch' a WM_RBUTTONDOWN followed by a WM_RBUTTONUP would be injected into the input stream. Best Wishes, -David Delaune
-
Hi,
cedricvictor wrote:
when I touch the pannel, it does not play. if I touch and leave fast, it will play.
When you use the touch screen and 'HOLD down' the touch driver may interpret this as a right click. If the application did not register itself as being 'compatible with touch' a WM_RBUTTONDOWN followed by a WM_RBUTTONUP would be injected into the input stream. Best Wishes, -David Delaune
Dear Randor: I think you are right. It is different between touch and mouse. when left mouse button down, it will play sound. when I touch the panel, and leave fast, it will play or touch the panel, and then move my finger on panel, it will play sound, too. Thank for your help, Victor.