-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathv2_auto_click_quests.py
62 lines (48 loc) · 1.49 KB
/
v2_auto_click_quests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 7 23:36:00 2019
Bot Version : 0.2
Version Description: AutoFinich Guild and Admin Scrolls.
@author: karthick
"""
import subprocess
import pyautogui
import time
#Define default aleep time for PyAutoGui
pyautogui.PAUSE = 2
#Define ScreenSize from PyAutoGui
screenWidth, screenHeight = pyautogui.size()
#Call Steam Application
subprocess.call('C:\Program Files (x86)\Steam\Steam.exe')
time.sleep(2)
pyautogui.moveTo(250, 250)
pyautogui.doubleClick()
time.sleep(6)
#move to scroll icon
pyautogui.moveTo(1220,1000, duration=2, tween=pyautogui.easeInOutQuad)
pyautogui.click()
#assure guild scroll tab is open
#Position of GuildScroll Heading x: 1220, y: 220
pyautogui.moveTo(1220,220, duration=2, tween=pyautogui.easeInOutQuad)
pyautogui.click()
#total guild quest available for L60 castle
count_of_guildScroll = 8
#move to first quest position and start clicking
pyautogui.moveTo(1550,430)
for click in range(count_of_guildScroll):
pyautogui.click()
#time.sleep(2.5)
#move position to admin scroll
#Position of AdminScroll
#assure admin scroll tab is open
#Position of AdminScroll Heading x: 900, y: 220
pyautogui.moveTo(900,220, duration=2, tween=pyautogui.easeInOutQuad)
pyautogui.click()
#total guild quest available for L60 castle
count_of_adminScroll = 9
#move to first quest position and start clicking
pyautogui.moveTo(1550,430)
for click in range(count_of_adminScroll):
pyautogui.click()
time.sleep(2.5)
pyautogui.hotkey('alt', 'tab', 'tab')