
24.01.2023, 21:18
|
|
Постоянный
Регистрация: 09.04.2017
Сообщений: 464
С нами:
4786797
Репутация:
98
|
|
Python:
Код:
import
pyautogui
as
pg
import
pydirectinput
as
pd
import
time
ax
,
ay
=
pg
.
locateCenterOnScreen
(
'firefox.PNG'
,
confidence
=
.6
)
def
function_when_restart
(
)
:
print
(
ax
,
ay
)
pd
.
rightClick
(
ax
,
ay
)
pd
.
leftClick
(
ax
,
ay
)
print
(
'Waiting to return back to the server...'
)
time
.
sleep
(
8
)
pd
.
moveTo
(
892
,
531
)
print
(
'finding server...'
)
pd
.
click
(
)
print
(
'connecting to the server...'
)
function_when_restart
(
)
|
|
|