?
Solved

I want to make the color distingusher.

Posted on 2011-09-11
4
Medium Priority
?
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 25

Accepted Solution

by:
epasquier earned 2000 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

800 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