Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Is there a way to get desktop mouse coordinates? (Displaying desktop mouse position)
Is there a way to get desktop mouse coordinates? [message #59868] Sun, 14 May 2023 06:39 Go to next message
sniffgriff is currently offline  sniffgriff
Messages: 10
Registered: May 2023
Location: NY
Promising Member
Hello friends,

Is there a way to display the mouse x,y desktop coordinates in u++? Not the mouse position within the window but the mouse position of where it is on the users desktop? (Im using windows 10)

Thank you for any help!

Re: Is there a way to get desktop mouse coordinates? [message #59869 is a reply to message #59868] Sun, 14 May 2023 10:31 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Yes.

GUI_APP_MAIN
{
	TopWindow win;
	Label lbl;
	win << lbl.SizePos();
	TimeCallback cb;
	cb.Set(-20, [&] { lbl = AsString(GetMousePos()); });
	win.Execute();
}
Re: Is there a way to get desktop mouse coordinates? [message #59876 is a reply to message #59869] Tue, 16 May 2023 03:44 Go to previous message
sniffgriff is currently offline  sniffgriff
Messages: 10
Registered: May 2023
Location: NY
Promising Member
MY FRIEND! thank you for your help! It worked!!!!!
Previous Topic: Linux Mint installation issue
Next Topic: Getting the value/text from a EditField
Goto Forum:
  


Current Time: Sat Jun 15 07:27:14 CEST 2024

Total time taken to generate the page: 0.01491 seconds