![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
How do u make the mousse move?
Hello, im trying to make some type of autoing software, and i was wandering if its possible to make the mousse move automaticaly using the c++ language.
What i want this program to do is that, first of all i start using the mousse , and then i want the program to make the mousse move exactly the same way i moved it, and click to. Im not sure if u guys see what im saying here. But i would be very grateful if u guys could show me if this can be done, and how it can be done. A sample code is always useful ![]() Im asking this cause ive searched msdn for like half an hour and ive found nothing. |
|
|
|
|
|
#2 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 646
Rep Power: 4
![]() |
Quote:
A: I have no idea. ![]() NOTE: I'm not tring to persecute you if your first language is not English, it's just that I wanted to have a little fun. ![]()
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#3 | |
|
Professional Programmer
|
I'm guessing you got this crazy idea from your last thread. This isn't exactly your level of experience. Infact, it's pretty high above your level of experience. Perhaps start with smaller things like getting x and y axis of the pointer. I was actually thinking of doing this before I got side-tracked(sp!). Slowly work on harder and harder tasks but don't take huge steps like this, you'll just end up getting really frustrated.
Here's the link again: Linky Now go do some small tasks(but big enough to post in the finished projects forum) then post them in the finished project forum, or upload the code and show me. I am interested to see how far you get. EDIT: If you still want to continue with this, the idea is to use a vector to store the mouse data every .1 second or something small like that so you don't miss any "beats". The vector would probably look something like struct mousey
{
int x, y; // location of mouse pointer
BOOL click; // Has mouse been clicked?(left click)
}This is very bare, but it's a start.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
using ASM
mov ax,1 int 33 thas was in a qbasic tutorial to use a mouse. im sure there is some lib to make it work.
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
oh, not the graphical representation of the pointer on the screen, but the mouse itself? try grabbing it and moving your hand.
jesus...
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|