Good day to all.
There is an application (game) running in full window mode (the cursor is not used explicitly, i.e. hidden). There is an application written in Delphi and programmatically located on top of all windows (also hidden from the taskbar). Required.
To prevent the cursor from appearing in the game when the application goes beyond the form (ideally disable / hide it completely when the application is launched). I tried
Screen.Cursor := crNone;in the
TForm1.FormPainthandler, loading an empty cursor from a file when creating a form, but when you move the mouse, the cursor still appears in the game for a while and then just disappears.
So that when you hit the mouse in the limits of the form and click the game does not collapse. Tried
form1.Enabled:=falsebut did not help.
I tried to learn the traps, but did not understand how to use them.