Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > more accurate cursor location


Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2005, 02:35 PM
Number2pencil Number2pencil is offline
Centurion
 
Join Date: Apr 2005
Posts: 130
Default more accurate cursor location


I need to be able to find a cursor's location outside a form so I tried using the GetCursorPos API, but there is some kind of flaw in it or my mouse, and I keep getting incosistent locations.

For example, I run the program paintbrush and have my program running at the same time. I write down the coordinates of where my mouse is then click to draw the point on paint brush. I move my mouse around a bit then when i go back to the same point it has different coordinates with the correct coordinates being a half-inch to an inch off the point.

Is there a better way? I need accurate results
Reply With Quote
  #2  
Old 11-30-2005, 02:41 PM
Volte's Avatar
Volte Volte is offline
Ultimate Contributor

Retired Leader
* Guru *
 
Join Date: Aug 2001
Posts: 5,343
Default

Try posting some code, because the function should not be the one at fault. It is always relative to the top left corner [0, 0].
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->