Solved

I want to make the color distingusher.

Posted on 2011-09-11
4
229 Views
Last Modified: 2012-05-12
first , I want to know the color under the mouse cursor.
second , want to magnify the range of 100 by 100 pixels under the mouse cursor.


please recommend me the functions.
Thanks in advance.
0
Comment
Question by:gamjaradio
  • 3
4 Comments
 
LVL 25

Accepted Solution

by:
epasquier earned 500 total points
ID: 36521227
first, here is how to write a dll that will 'hook' to all mouse events, even outside your application, and send that to your application
http://forum.codecall.net/pascal-delphi-tutorials/33993-mouse-hook-tutorial-delphi-codes.html

I'm writting the application that will use that dll, capture the screen portion under the mouse and display it along with the pixel color underneath
0
 
LVL 25

Assisted Solution

by:epasquier
epasquier earned 500 total points
ID: 36521553
Full projects :
- MouseHook.dpr => MouseHook.dll
- MouseZoom.dpr => MouseZoom.exe
both binaries must be in the same directory when running

 MouseZoom.zip

 Mouse Zoom
0
 

Author Comment

by:gamjaradio
ID: 36527023
Thanks a lot ,

Please , just One advice more .

I changed mouse cursor , 'fountainpen filler' shape , but it is just when it in my form .
If the cursor off the form , is changed to as windows want.

How can I keep mouse cursor ,even off my application form.
0
 
LVL 25

Expert Comment

by:epasquier
ID: 36529351
I would have been inclined to say it's not possible, as every applications can set it's own cursor and the OS is changing the cursor accordingly each time the mouse move over an application.

but I checked if someone has an idea about it, and yes, apparently you could implement a workaround by setting ALL system cursors image to the one you want.
check this
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20665275.html

I haven't tested any of it, and if you need help about that, post a new question
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question