Skip to content

Instantly share code, notes, and snippets.

@ecspresso
Created January 7, 2020 18:42
Show Gist options
  • Save ecspresso/ed162ff0082bb299a2966a24f5cfe8e6 to your computer and use it in GitHub Desktop.
Save ecspresso/ed162ff0082bb299a2966a24f5cfe8e6 to your computer and use it in GitHub Desktop.
Apply currency fast in POE
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.')
import pyautogui
print(pyautogui.position())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment