RequireAdmin include ButtonConstants au3 include EditConstants au3 inc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$start = 1
$hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.1a0e24_r15_ad1]", "", 5)
While 1
WinActivate($hWnd)
If $start Then
ControlClick($hWnd, "", "[CLASS:WindowsForms10.BUTTON.app.0.1a0e24_r15_ad1; INSTANCE:13]", "left", 1)
Sleep(1819800)
$start = 0
Else
ControlClick($hWnd, "", "[CLASS:WindowsForms10.BUTTON.app.0.1a0e24_r15_ad1; INSTANCE:13]", "left", 1)
Sleep(1800)
ControlClick($hWnd, "", "[CLASS:WindowsForms10.BUTTON.app.0.1a0e24_r15_ad1; INSTANCE:13]", "left", 1)
Sleep(1819800)
Endif
WEnd