Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get Currext X, and Current Y positions of CURSOR
Message
From
09/08/1999 08:11:33
 
 
To
09/08/1999 01:15:44
Amit Abhangrao
Charmi Software Exports
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00251346
Message ID:
00251388
Views:
8
>Hi All,
>
> I want to know the current positions of my cursor in screen. (not in form or text box). How can i get it. On that basis i wanted to show my next form i.e. it should not come over my current cursor.
>

In addition to the MROW and MCOL functions, I think a better answer might be to examine the AMOUSEOBJ() function, which returns an array of information about the mouse relative to the object it is positioned over. It provides the X and Y coordinate positions within the container for the object where the mouse is positioned. using the optional second parameter, you can force the coordiates to be returned relative to the current form, which might be more useful, rather than the container of the object over which the mouse is positioned.

AMOUSEOBJ() gives you pointers to the current object and that object's container as well.

>Regards
>Amit
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform