Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2007, 10:39 PM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can someone make this?

Hey guys,

I really don't know much about programming, so I thought this would be a good place to ask for help.

Could anyone here write a small program that continuously scans your screen and continuously right clicks whatever is yellow (specifically this yellow #FFD15A) on screen? Maybe with a "Start" and "Stop" button? Thanks, I'd really appreciate it.

 
Old February 9th, 2007, 01:07 PM
Authorized User
 
Join Date: Jan 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well that might be not as easy as it seems...
Scanning the screen might be easy by moving the position of the cursor or the mouse dynamically. But i really don't know how to retrieve the color that is below the mouse pointer...

I was also interested in this some times ago because i wanted to show tooltips under the condition of certain colors.


Visit my page: http://www.webrickco.com
 
Old February 9th, 2007, 01:26 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

First, I don't think you will get many bites on people that will do anything for you, myself included. I am here to help people with their problems and work through it with them...not to do peoples work for them.

Secondly, you should be able to do this by making calls to the Windows API's: GetDCEx and GetCursorPos (I saw a C++ article that used these awhile ago, but that app worked like a color picker (think Eye dropper in Photoshop) thus it required the user to click for the pixel color to be obtained.)

You may want to check out this link though: http://www.tutorials-se.com/drawing/COLOR-under/ hth.

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
 
Old February 13th, 2007, 04:38 PM
Authorized User
 
Join Date: May 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to notrosh
Default

I agree with dparsons. This sounds like an assignment for a class or a bonus assignment of some sort. However, i would start by looking at control ids for windows.
 
Old February 16th, 2007, 08:57 AM
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Ruffnekk
Default

Or you could go to http://www.donationcoder.com and post a request there. A bunch of skillful programmers will look at requests and point you to either existing software or may even pick up the request and do it for you. (My username is the same there if you have more questions).

--
Regards,
Ruffnekk
--
Programming is an art that fights back.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Make 2 or 1 Muhammad Zeeshan SQL Server 2000 2 August 16th, 2007 01:10 PM
Can someone make this? JonathanRay C++ Programming 0 February 5th, 2007 10:40 PM
How can I make that? kalchev ASP.NET 2.0 Professional 0 April 3rd, 2006 07:01 AM
How to make a explorer in c#? gefferye C# 0 December 6th, 2005 08:27 AM
how to make a combobox? ashu_gupta75 Excel VBA 1 August 16th, 2004 02:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.