Page 1 of 1

getting mouse pos and sending the user to a website in C++

Posted: Sat Jul 19, 2003 6:33 pm
by Scarberry
how can i get the mouse (x,y) in c++?

how can i send the user to a website in C++?


thanks

Re:getting mouse pos and sending the user to a website in C+

Posted: Fri Jul 25, 2003 4:45 am
by Tim
In C++, you can't. In C++ code on a particular operating system, you can.

On Windows: GetCursorPos and ShellExecute(your_url).

Re:getting mouse pos and sending the user to a website in C+

Posted: Fri Jul 25, 2003 3:16 pm
by Scarberry
thanks for all 3 qs

Re:getting mouse pos and sending the user to a website in C+

Posted: Fri Jul 25, 2003 4:35 pm
by scarberry
hey im having a problem getting GetMousePos to work. could u post a simple example of putting the mouse x and y on the console screen.

thanks

Re:getting mouse pos and sending the user to a website in C+

Posted: Sun Jul 27, 2003 10:16 am
by Tim
1. Use GetCursorPos, not GetMousePos
2. Go to http://msdn.microsoft.com/library/ for all the information you could ever need.

Re:getting mouse pos and sending the user to a website in C+

Posted: Mon Jul 28, 2003 7:04 pm
by scarberry
lol oops. thank you i got it working now.