![]() |
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 |
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.
|
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. |
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.
|
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.
|
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.
|
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. |
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 |
Quote:
|
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. |
| All times are GMT -5. The time now is 8:12 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC