Click event on touch screen

Hello,
i need to catch a touch event outside my app on a windows machine with an touch screen attached.

I’ve learned, that touch is not the same as mouseclick, so “System.mouseDown” is not working in that case.
Is there any chance to catch a touch event on system level outside my app to execute code in my app?

It is an Windows System Tray app.

Thanks Marco

I haven’t tried it, but there is an App.Activate and App.Deactivate Event, which might help you when a user “clicks outside” your app.

I think you will need to install a Windows global hook function.

https://learn.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-setwindowshookexa?redirectedfrom=MSDN

I think the old RB Windows Functionality Suite project has support for hooks.