How to simulate the mouse control?



 DEVELOP > c-Plus-Plus > How to simulate the mouse control?

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: ""
Date: 22 Oct 2006 07:01:37 AM
Object: How to simulate the mouse control?
I want to ask how to use C++ to simulate the mouse control?
ex:Let the mouse double-click the left key functions,thanks!
.

User: "W Marsh"

Title: Re: How to simulate the mouse control? 22 Oct 2006 08:28:50 AM
wrote:

I want to ask how to use C++ to simulate the mouse control?
ex:Let the mouse double-click the left key functions,thanks!

void SimulateMouseClick(int x, int y, MouseButton button);
.

User: "Gernot Frisch"

Title: Re: How to simulate the mouse control? 23 Oct 2006 02:59:22 AM

I want to ask how to use C++ to simulate the mouse control?
ex:Let the mouse double-click the left key functions

What is a mouse?
.
User: "BobR"

Title: Re: How to simulate the mouse control? 23 Oct 2006 08:41:33 PM
Gernot Frisch wrote in message <4q3athFl953gU1@individual.net>...

I want to ask how to use C++ to simulate the mouse control?
ex:Let the mouse double-click the left key functions


What is a mouse?

A small rodent!!
So, a "mouse control" could just be a mousetrap.
Must be one smart mouse if it knows how to double-click the left key
functions [1]!
If it's that smart, it wouldn't be a matter of "Let", but, how would you stop
him!
OP: Have your mouse post some C++ code, I'd like to see what he's working on.
Real answer:
std::istringstream mouse("126 211 0 250 345 2 111 123 1");
int Mx(0), My(0), Button(0); // yeah, bad 'style'. Put on separate lines.
while( mouse >> Mx >> My >> Button ){
if( Button == 2 ){
std::cout << "Mx=" << Mx << " My=" << My <<std::endl;
} // if(2)
} // while(mouse)
[1] - wonder if he means "function keys" (F1-F12)?
--
Bob 'duh' R
POVrookie
.


User: "Phlip"

Title: Re: How to simulate the mouse control? 22 Oct 2006 08:14:05 AM
flplini wrote:

I want to ask how to use C++ to simulate the mouse control?
ex:Let the mouse double-click the left key functions,thanks!

This is a question about your GUI platform (probably Win32). It's not a
question about C++ because your platform supports many languages, and so
there's nothing C++ specific in the answer.
This newsgroup is only qualified to answer questions about the raw C++
language itself. (Always read a newsgroup before posting, and you might have
noticed our reaction to off-topic posts!) You will get the best results on a
newsgroup with win32, programming, and possibly gui in its name.
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER