![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2006
Posts: 11
Rep Power: 0
![]() |
VB Program that would help me out a lot.
hey guys, im a noob at proggramming, i do however have some basic knowledge about basic code from reading most of my VB for Dummies. anyway, i tried using the windows api to do this but im not getting anywhere soooo... i need help. this is basically what the program needs to do:
1. Scan for a certain pixel colour value that i would have identified earlier in a txt box. 2. if found, declare pixel coordinates (i know you should probably use the GetPixel command i found in the api.) 3. Snap the cursor to the coordinates. (SetCursorPos is another command i found.) 4. Synthesize a left buttong click. 5. have a delay, which i would have set prior to running the program. 6. start all over again. (loop) i know its not very nice to ask ppl to build a program from scratch... but u dont really have to, (unless ur up to the challenge) maybe just some command lines to help me out. Thx.. Gil Last edited by Scatman; Jul 25th, 2006 at 5:16 PM. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You'll have better luck if you present code, along with the error messages and a clear description of how your program fails to meet your expectations. This "up to the challenge" line is a tried and true method for NOT getting help from any but the newest members of programming forums, which is probably NOT what you are looking for. Everyone else has rolled their eyes at it numerous times. At any rate, welcome to the forum and be sure and read the rules/FAQ.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2006
Posts: 11
Rep Power: 0
![]() |
wat do u mean by presenting code? i want it in basic code using vb... does that help
thx for tip, i removed the up to challenge thing. |
|
|
|
|
|
#4 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 742
Rep Power: 3
![]() |
DaWei is referring to how this forum works. If you have code which isn't behaving as you expect, or if you don't know how to implement something specific, post in one of the language specific forums. For us to view the code helps a lot in helping with such problems. On the other hand, if you want us to write a program for you, posting in the Job Offers forum would probably be appropriate. If you're starting/working on/finishing a project and want feedback on your ideas or implementation, the project forums are appropriate.
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jul 2006
Posts: 11
Rep Power: 0
![]() |
wow.. edit doesnt work for some reason becuz i deleted the challenge line and its still there, btw... how am i going to post this in job offers if cross posting isn't allowed.
Last edited by Scatman; Jul 25th, 2006 at 9:35 PM. |
|
|
|
|
|
#6 |
|
Expert Programmer
|
You could always ask a mod to move it for you. Or, you could go post in the VB section. Present some code, and show that you are trying. I could be wrong, but maybe try researching the bitblt fucntion. What Dawei meant was try coding this program yourself. If it isn't working out for you, post in the appropriate forum, and we would be more than happy to help you out. Post the code you have tried, and we can go from there. If you want this to work out for you, take Dawei's post seriously.
|
|
|
|
|
|
#7 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 887
Rep Power: 4
![]() |
What is the big picture? By that I mean: what is your purpose in doing this? Do you just want to create a bunch of senseless mouse clicks, or are you trying to do something such as modify an image? In the latter case, I can think of much easier ways to accomplish it.
As others have said, you ought to post in the proper place. This would be Job Offers if you want someone else to write it for you, or the appropriate language forum if you are making an attempt, and just want help with it. Reading the forum rules would have informed you of this, and might even have let you know that introductions are common practice and good etiquette, even if they're not a formal requirement. When a person's first post is asking for help on a problem for which they don't seem to have tried to solve on their own, it usually receives negative responses, or none at all.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
#8 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 742
Rep Power: 3
![]() |
This project does seem pretty ideal for one of those web based games where you can do stuff based on a timed system... that's my initial guess as to the purpose
![]() @Booooze: bitblt is for copying rectangles of pixels IIRC |
|
|
|
|
|
#9 | |
|
Professional Programmer
|
Quote:
__________________
Perhaps I should have a sticky topic for all of the times I "return" to this forum instead of a new one every time. |
|
|
|
|
|
|
#10 | |
|
Expert Programmer
|
Quote:
Yeah, Like I said, I wasn't sure about it. Never actually used the function, but soon as I hear somethign to do with pixels, bitblt always comes to mind. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 1:15 PM |
| move program console window back | badbasser98 | C++ | 21 | Oct 18th, 2005 2:02 PM |
| Nonsense Name generator program | chillster13 | C | 14 | Jun 17th, 2005 2:05 AM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |