Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ASYNCCURSORPOS property (System) ====== ==== Description ==== Retrieves the current cursor position in screen coordinates. If the name of a window or control is passed in the index argument the returned screen coordinates will be scaled to DIPs based on the DPI and scale factor of the passed object. ==== Property Value ==== This property is an @fm-delimited array containing the cursor coordinates. <1> X-Position <2> Y-Position Index Value If set this should contain the name of a window or control to scale the coordinates too. The coordinates are then returned in DIPs. ==== Property Traits ==== ^Development^Runtime^Indexed^Scaled^Synthetic^ |N/A|Get|Yes|See Description|No| ==== Remarks ==== This property is essentially a wrapper around the GetCursorPos Windows API function, so please refer to the documentation on the Microsoft website for further information. ==== Example ==== <code> // Get the current screen position of the cursor in pixels CursorPos = Get_Property( "SYSTEM", "ASYNCCURSORPOS" ) // Get the current screen position of the cursor in DIPs with // respect to the current window CursorPos = Get_Property( "SYSTEM", "ASYNCCURSORPOS", @Window ) </code> ==== See Also ==== CURSORPOS property guides/oi10/presentation_server/asynccursorpos_property_system.txt Last modified: 2023/10/25 10:49by 127.0.0.1