![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 5
Rep Power: 0
![]() |
need help on code
i want to make a program that has 2 buttons one winner and 1 looser.
when the winner button is pressed the program just keeps hitting f8 and keeps hittinga certain pixel box location. ( is that even possible to have it click an area of say 100 *100 ? i cud find the exact location if i get help from someone the looser button when pressed would simply keeping moving the left arrow key so that if u press left it wud move the cursor over left and to hit the same location lastly both buttons need to hit the same location as the pixel area i said but im guessing 20 rows up how would i go about coding that? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Mar 2005
Posts: 5
Rep Power: 0
![]() |
anyone please able to help me im a noob to programming and from the searching ive done here it doesnt seem complicated i jsut don't know how to do it so once again please help me on this
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
you would start with a form with the button components on it... show us some code and ask specific questions, doing so will probably land you more detailed answers.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2005
Posts: 5
Rep Power: 0
![]() |
lol sor the thing is i don't know how to code it thats why i asked here if someone could basicaly teach me how do to this
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! Last edited by big_k105; Mar 9th, 2005 at 9:54 AM. |
|
|
|
|
|
#6 |
|
Expert Programmer
|
If this is a humurous "joke" program, I have to have a copy.
Well, there is an API (a special type of function that links into the guts of windows) called SetCursorPos that would work (google for a beginner's guide), which takes the x and y coordinates of the new screen location (relative to the top left). However, a presume you want a cool annoying gradual move to the spot rather than an instantaneous jump - you'll need to call it several times with a time delay, incrementing the x coordinate for example using a timer. Clicking a pixel can be done in the same way, additionally use the mouse_event API (using click mode) however you can't click an entire rectangle at once. Hope this helps |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|