import
pyautogui
import
time
import
datetime
pyautogui.FAILSAFE
=
False
pyautogui.PAUSE
=
1
sceen_size
=
pyautogui.size()
print
(sceen_size)
cur_time
=
time.strftime(
"%H%M%S"
)
d
=
datetime.datetime.now()
print
(d,d.weekday())
cur_name
=
""
def
newsend(name,count,parm,flag
=
'180537'
):
global
cur_name
if
cur_name
=
=
name:
print
(
"return===="
,time.strftime(
"%H%M%S"
),cur_name,name)
return
else
:
cur_name
=
name
time.sleep(
1
)
print
(
"newsend="
,time.strftime(
"%m%d-%H:%M:%S"
),name)
pyautogui.moveTo(
120
,
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.typewrite(flag,
1
)
pyautogui.moveTo(
120
,
50
+
100
,duration
=
1
)
pyautogui.click(button
=
'left'
)
time.sleep(
3
)
if
parm
=
=
"a"
:
pyautogui.moveTo(
120
+
500
,
50
+
100
,duration
=
1
)
pyautogui.click(button
=
'right'
)
pyautogui.moveTo(
120
+
500
+
50
,
50
+
100
+
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.moveTo(
120
+
500
+
50
,
50
+
100
+
50
+
200
,duration
=
1
)
pyautogui.click(button
=
'left'
)
if
parm
=
=
"e"
:
pyautogui.moveTo(
120
+
500
,
50
+
100
,duration
=
1
)
pyautogui.click(button
=
'right'
)
pyautogui.moveTo(
120
+
500
+
50
,
50
+
100
+
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
if
parm
=
=
"m"
:
pyautogui.moveTo(
600
,
50
+
100
+
50
+
200
,duration
=
1
)
pyautogui.click(button
=
'right'
)
pyautogui.moveTo(
600
+
50
,
50
+
100
+
50
+
200
+
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.moveTo(
430
,
590
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.moveTo(
418
,
303
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.typewrite(name,
1
)
pyautogui.moveTo(
418
+
155
,
303
+
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
pyautogui.moveTo(
418
+
155
,
303
+
50
+
50
,duration
=
1
)
pyautogui.click(button
=
'left'
)
for
x
in
range
(count
-
1
):
pyautogui.press(
'down'
)
pyautogui.press(
'enter'
)
pyautogui.moveTo(
782
-
50
,
725
-
40
,duration
=
1
)
time.sleep(
1
)
pyautogui.click(button
=
'left'
)
print
(
"newsend===="
,time.strftime(
"%m%d-%H:%M:%S"
),name)
def
start():
while
True
:
time.sleep(
2
)
t
=
time.strftime(
"%H%M"
)
d
=
datetime.datetime.now()
week
=
d.weekday()
if
t
=
=
"0935"
:
newsend(
"ddd00"
,
8
,
"a"
)
newsend(
"fff00"
,
9
,
"a"
)
newsend(
"ggg00"
,
9
,
"a"
)
newsend(
"hhh00"
,
8
,
"a"
)
if
t
=
=
"0945"
:
newsend(
"eee00"
,
9
,
"e"
)
newsend(
"eee01"
,
8
,
"e"
)
newsend(
"eee02"
,
9
,
"e"
)
start()