Created
January 7, 2020 18:42
-
-
Save ecspresso/ed162ff0082bb299a2966a24f5cfe8e6 to your computer and use it in GitHub Desktop.
Apply currency fast in POE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
# valuta = 154, 636 # jewellersOrb | |
# valuta = 216, 637 # fusing | |
# valuta = 736, 338 # gemcutter | |
valuta = 591, 329 # arm, eq | |
# valuta = 495, 332 # black, vapen | |
item = 453, 671 | |
def mouseEvent(x, y, mb='left', dur=0): | |
pyautogui.moveTo(x, y, duration=dur) | |
pyautogui.click(button=mb) | |
try: | |
for i in range(20): | |
mouseEvent(valuta[0], valuta[1], 'right') | |
mouseEvent(item[0], item[1]) | |
except KeyboardInterrupt: | |
print('\nDone.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
print(pyautogui.position()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment