DesktopMouseY()
Syntax
Result = DesktopMouseY()Description
Returns the absolute y position of the mouse in the desktop.If OpenWindow(0, 0, 0, 300, 30, #PB_Window_SystemMenu | #PB_Window_ScreenCentered, "Desktop mouse monitor") CreateGadgetList(WindowID()) TextGadget(0, 10, 6, 200, 20, "") Repeat Event = WindowEvent() If Event = 0 ; No event are in queue anymore, so halt the process for a few milliseconds for multitask SetGadgetText(0, "Desktop mouse position: "+Str(DesktopMouseX())+","+Str(DesktopMouseY())) Delay(20) EndIf Until Event = #PB_Event_CloseWindow EndIf
Supported OS
Windows, Linux, MacOS X