Solved

I want to make the color distingusher.

Posted on 2011-09-11
4
226 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now