Gernot Frisch wrote in message <4q************@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