Bottom Page

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
Quote
#2
for listening for mouse events - check pynput package
here is the relevant part of the docs - https://pynput.readthedocs.io/en/latest/...-the-mouse

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

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to switch table area coordinates in Python Camelot and Tabula-Py john5 0 74 May-08-2019, 04:31 PM
Last Post: john5
  can i get any xpath on click event? Prince_Bhatia 3 122 Apr-09-2019, 01:32 PM
Last Post: Larz60+
  Check fast similarity between gps coordinates dervast 0 95 Apr-08-2019, 07:27 PM
Last Post: dervast
  Python 3.4: the only release to create .EXE standalone without .dll samsonite 7 322 Feb-28-2019, 09:20 AM
Last Post: samsonite
  take over control of mouse/keyboard ian 1 203 Dec-29-2018, 10:43 AM
Last Post: Larz60+
  Moving Mouse ian 1 228 Dec-25-2018, 10:41 AM
Last Post: Larz60+
  How to release control of file jmair 2 357 Oct-03-2018, 08:22 PM
Last Post: jmair
  Download multiple images with one click andie31 0 402 Sep-13-2018, 10:37 AM
Last Post: andie31
  Python catch mouse click in pure text, no graphics samtal 7 680 Sep-10-2018, 03:02 PM
Last Post: samtal
  detecting mouse not working TheNumericDolfin 6 442 Aug-23-2018, 01:34 AM
Last Post: Windspar

Forum Jump:


Users browsing this thread: 1 Guest(s)