-
Notifications
You must be signed in to change notification settings - Fork 0
/
YouTubeZ.py
224 lines (176 loc) · 5.85 KB
/
YouTubeZ.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
import pydirectinput
import time
# ask user for roblox app/screen resolution
def AskResolution():
print("Please select your screen resolution")
print("Type 1 for 1920x1080")
print("Type 2 for 2560x1440")
screenSize = input()
return screenSize
resInput = int(AskResolution())
if resInput > 2:
print("Sorry, that is not a valid option\n")
resInput = int(AskResolution())
if resInput < 1:
print("Sorry, that is not a valid option\n")
resInput = int(AskResolution())
repeatCount = input("Please enter the amount of times you would like the script to repeat\n")
print("You have 5 seconds to switch to the Roblox game window")
time.sleep(1)
print("You have 4 seconds to switch to the Roblox game window")
time.sleep(1)
print("You have 3 seconds to switch to the Roblox game window")
time.sleep(1)
print("You have 2 seconds to switch to the Roblox game window")
time.sleep(1)
print("You have 1 seconds to switch to the Roblox game window")
time.sleep(1)
print("Script running...")
# #############################################################################################################
# 1920x1080
if resInput == 1:
for x in range(repeatCount):
time.sleep(2)
pydirectinput.press('1')
pydirectinput.moveTo(951, 496)
pydirectinput.move(1, 1)
for i in range(30):
pydirectinput.click()
pydirectinput.keyDown('s')
time.sleep(1)
pydirectinput.keyUp('s')
time.sleep(1)
# sit in chair
pydirectinput.moveTo(955, 513)
pydirectinput.move(1, 1)
pydirectinput.click()
time.sleep(1)
# open video editor
pydirectinput.moveTo(791, 76)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.click()
# edit
pydirectinput.move(0, 250)
for i in range(30):
pydirectinput.keyDown('e')
pydirectinput.keyUp('e')
# export
pydirectinput.moveTo(1346, 330)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.moveTo(1220, 644)
pydirectinput.move(1, 1)
pydirectinput.click()
# click ok
time.sleep(1)
pydirectinput.moveTo(960, 627)
pydirectinput.move(1, 1)
pydirectinput.click()
# exit edit window
# pydirectinput.moveTo(2187, 278)
# pydirectinput.move(1, 1)
# pydirectinput.click()
# open Photoshop
pydirectinput.moveTo(486, 75)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.click()
# make thumbnail
pydirectinput.move(0, 450)
for i in range(55):
pydirectinput.keyDown('e')
pydirectinput.keyUp('e')
# save thumbnail
pydirectinput.moveTo(1463, 712)
pydirectinput.move(1, 1)
pydirectinput.click()
# open YouTube
# pydirectinput.moveTo(218, 126)
# pydirectinput.move(1, 1)
# pydirectinput.click()
# pydirectinput.click()
# close pc
pydirectinput.moveTo(900, 968)
pydirectinput.move(1, 1)
pydirectinput.click()
# get out of chair
pydirectinput.press('space')
# go outside the house
pydirectinput.keyDown('w')
time.sleep(2)
pydirectinput.keyUp('w')
# #############################################################################################################
# 2560x1440
if resInput == 2:
time.sleep(2)
for x in range(repeatCount):
pydirectinput.press('1')
pydirectinput.moveTo(951, 496)
pydirectinput.move(1, 1)
for i in range(30):
pydirectinput.click()
pydirectinput.keyDown('s')
time.sleep(1)
pydirectinput.keyUp('s')
time.sleep(1)
# sit in chair
pydirectinput.moveTo(1286, 695)
pydirectinput.move(1, 1)
pydirectinput.click()
time.sleep(1)
# open video editor
pydirectinput.moveTo(1061, 128)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.click()
# edit
pydirectinput.move(0, 500)
for i in range(30):
pydirectinput.keyDown('e')
pydirectinput.keyUp('e')
# export
pydirectinput.moveTo(1651, 425)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.moveTo(1684, 824)
pydirectinput.move(1, 1)
pydirectinput.click()
# click ok
time.sleep(1)
pydirectinput.moveTo(1331, 840)
pydirectinput.move(1, 1)
pydirectinput.click()
# exit edit window
# pydirectinput.moveTo(2187, 278)
# pydirectinput.move(1, 1)
# pydirectinput.click()
# open Photoshop
pydirectinput.moveTo(624, 108)
pydirectinput.move(1, 1)
pydirectinput.click()
pydirectinput.click()
# make thumbnail
pydirectinput.move(0, 450)
for i in range(55):
pydirectinput.keyDown('e')
pydirectinput.keyUp('e')
# save thumbnail
pydirectinput.moveTo(1987, 986)
pydirectinput.move(1, 1)
pydirectinput.click()
# open YouTube
# pydirectinput.moveTo(218, 126)
# pydirectinput.move(1, 1)
# pydirectinput.click()
# pydirectinput.click()
# close pc
pydirectinput.moveTo(1271, 1308)
pydirectinput.move(1, 1)
pydirectinput.click()
# get out of chair
pydirectinput.press('space')
# go outside the house
pydirectinput.keyDown('w')
time.sleep(2)
pydirectinput.keyUp('w')