Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 25th, 2006, 5:02 PM   #1
Scatman
Newbie
 
Scatman's Avatar
 
Join Date: Jul 2006
Posts: 11
Rep Power: 0 Scatman is on a distinguished road
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.
Scatman is offline   Reply With Quote
Old Jul 25th, 2006, 5:07 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jul 25th, 2006, 5:19 PM   #3
Scatman
Newbie
 
Scatman's Avatar
 
Join Date: Jul 2006
Posts: 11
Rep Power: 0 Scatman is on a distinguished road
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.
Scatman is offline   Reply With Quote
Old Jul 25th, 2006, 5:27 PM   #4
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 742
Rep Power: 3 Jimbo is on a distinguished road
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.
Jimbo is offline   Reply With Quote
Old Jul 25th, 2006, 9:20 PM   #5
Scatman
Newbie
 
Scatman's Avatar
 
Join Date: Jul 2006
Posts: 11
Rep Power: 0 Scatman is on a distinguished road
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.
Scatman is offline   Reply With Quote
Old Jul 25th, 2006, 9:39 PM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 708
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Old Jul 25th, 2006, 10:05 PM   #7
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 887
Rep Power: 4 lectricpharaoh will become famous soon enough
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
lectricpharaoh is offline   Reply With Quote
Old Jul 25th, 2006, 11:11 PM   #8
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 742
Rep Power: 3 Jimbo is on a distinguished road
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
Jimbo is offline   Reply With Quote
Old Jul 25th, 2006, 11:28 PM   #9
Indigno
Professional Programmer
 
Indigno's Avatar
 
Join Date: Dec 2005
Location: Anywhere non-productive
Posts: 267
Rep Power: 0 Indigno is an unknown quantity at this point
Send a message via AIM to Indigno Send a message via MSN to Indigno Send a message via Yahoo to Indigno
Quote:
Originally Posted by Jimbo
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
I'm guessing a runescape or maybe a neopets macro bot. I only had to glance at the first post to figure it out.
__________________
Perhaps I should have a sticky topic for all of the times I "return" to this forum instead of a new one every time.
Indigno is offline   Reply With Quote
Old Jul 25th, 2006, 11:33 PM   #10
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 708
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by Jimbo
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

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.
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC