Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14568

How can I get my current mouse position in pyautogui?

$
0
0

So I was making an autotyper but I got stuck i want to find the current location of my mouse (on the search box) so that my program can click on the text box, but i cannot figure out how to get my current mouse X and Y. Any help is accepted!

Here is my code

import pyautoguidef autotyper():    pyautogui.click("textbox") # how can i get my current mouse x and y to put here?    pyautogui.write("text to search")    pyautogui.press("enter")autotyper()

Thanks!


Viewing all articles
Browse latest Browse all 14568

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>