Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to get mouse coordinates on click and release
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
for listening for mouse events - check pynput package
here is the relevant part of the docs -

I am not sure what you mean in the second part of the question

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python 3+ kybd and mouse control keycodes ineuw 5 140 Yesterday, 07:51 AM
Last Post: ineuw
  Raycasting GPS coordinates drybulkfreight 10 323 Aug-18-2019, 02:54 PM
Last Post: drybulkfreight
  Why is left mouse click not working? yeto 3 156 Jul-15-2019, 05:23 AM
Last Post: Yoriz
  Matplotlib contour no data coordinates b4rtt 1 212 Jun-18-2019, 09:36 AM
Last Post: b4rtt
  How to switch table area coordinates in Python Camelot and Tabula-Py john5 0 351 May-08-2019, 04:31 PM
Last Post: john5
  can i get any xpath on click event? Prince_Bhatia 3 290 Apr-09-2019, 01:32 PM
Last Post: Larz60+
  Check fast similarity between gps coordinates dervast 0 190 Apr-08-2019, 07:27 PM
Last Post: dervast
  Python 3.4: the only release to create .EXE standalone without .dll samsonite 7 563 Feb-28-2019, 09:20 AM
Last Post: samsonite
  take over control of mouse/keyboard ian 1 311 Dec-29-2018, 10:43 AM
Last Post: Larz60+
  Moving Mouse ian 1 307 Dec-25-2018, 10:41 AM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)