Forum > Windows
Extended Mouse Hook Demo by KodeZwerg
winni:
Hi!
This is the simple way that works with all OS:
* Get the screen coordinates: MyPoint := Mouse.CursorPos
* take a screenshot and load it into a TBitmap
* Get the color from MyBitmap.canvas.pixels[x,y]
* free the bitmap
Done
Winni
KodeZwerg:
--- Quote from: winni on December 14, 2022, 04:56:29 pm ---Hi!
This is the simple way that works with all OS:
--- End quote ---
Hello Winni!
I am excited to see a simple "how" 8)
--- Quote from: winni on December 14, 2022, 04:56:29 pm ---* Get the screen coordinates: MyPoint := Mouse.CursorPos
--- End quote ---
Ugh... before I "get" a screen coordinate I need an Event, like "left mouse button was clicked inside/outside of my app"
Where is the "simple way" that works with all OS please?
--- Quote from: winni on December 14, 2022, 04:56:29 pm ---* take a screenshot and load it into a TBitmap
* Get the color from MyBitmap.canvas.pixels[x,y]
* free the bitmap
Done
Winni
--- End quote ---
Thanks for sharing your wisdom but it covers 0% about my threads topic "Extended Mouse Hook" :o
Please update your suggestion with an easy on all OS detecting mouse events code :-*
Navigation
[0] Message Index
[*] Previous page