Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 17th, 2006, 9:51 PM   #1
hervens48
Programmer
 
Join Date: Apr 2006
Location: Montreal, Canada
Posts: 95
Rep Power: 3 hervens48 is on a distinguished road
Send a message via AIM to hervens48 Send a message via MSN to hervens48
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.
hervens48 is offline   Reply With Quote
Old May 17th, 2006, 10:20 PM   #2
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 646
Rep Power: 4 Jessehk is on a distinguished road
Quote:
mousse (mūs) pronunciation
n.

1. Any of various chilled desserts made with flavored whipped cream, gelatin, and eggs: chocolate mousse.
2. A molded dish containing meat, fish, or shellfish combined with whipped cream and gelatin.
3. An aerosol foam used to control and style the hair.

tr.v., moussed, mouss·ing, mouss·es.

To apply a styling foam to (the hair).
Q: How do u make the mousse move?
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!
Jessehk is offline   Reply With Quote
Old May 17th, 2006, 10:46 PM   #3
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old May 17th, 2006, 10:46 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
SetCursorPos
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old May 17th, 2006, 10:48 PM   #5
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 340
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
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
mrynit is offline   Reply With Quote
Old May 18th, 2006, 3:09 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
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.
bl00dninja 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




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

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