Python Forum
How to get mouse coordinates on click and release
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get mouse coordinates on click and release
#1
Hello everybody, I need to find a way to get the corners coordinates of the rectangle it's formed when selecting part of the screen. In other words:
1) I click (get coordinates)
2) I move the mouse
3) I release (get coordinates)

The second thing: how do I tell the program to treat the click&drag as a "select area" instead of "highlight text"?

I don't even know what library I should use Think
Reply


Messages In This Thread
How to get mouse coordinates on click and release - by OhNoSegFaultAgain - May-17-2019, 06:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Non repetitive mouse click Sartre 5 1,419 Apr-22-2023, 06:46 PM
Last Post: deanhystad
  how to mouse click a specific item in pygame? Frankduc 5 1,714 May-03-2022, 06:22 PM
Last Post: Frankduc
  Move mouse and click in particular position biprabu 3 2,490 Sep-01-2020, 08:23 PM
Last Post: deanhystad
  Slide show with mouse click pausing aantono 1 2,203 Jan-28-2020, 04:25 AM
Last Post: Larz60+
  mouse 0.7.0 - mouse polling hate 125-1000hz penahuse 1 2,524 Dec-06-2019, 09:51 PM
Last Post: Larz60+
  Why is left mouse click not working? yeto 3 6,192 Jul-15-2019, 05:23 AM
Last Post: Yoriz
  Python 3.4: the only release to create .EXE standalone without .dll samsonite 7 5,809 Feb-28-2019, 09:20 AM
Last Post: samsonite
  How to release control of file jmair 2 2,784 Oct-03-2018, 08:22 PM
Last Post: jmair
  Python catch mouse click in pure text, no graphics samtal 7 7,249 Sep-10-2018, 03:02 PM
Last Post: samtal
  Release kbhit Epilepsy 2 4,310 May-26-2018, 10:47 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020