#include<Array.au3>
#include<IE.au3>
HotKeySet('{DELETE}', '_Exit') ;
$oIE = _IECreate('https://fortunatime.com/knb/play')
MouseClick("left", 853, 78, 1)
MouseClick("left", 572, 435, 1)
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{0}")
Send("{.}")
Send("{0}")
Send("{1}")
MouseClick("left", 462, 523, 1)
Sleep(10000)
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(30000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(120000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(600000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(6000000)
EndSelect
MouseClickDrag("Left",1345, 268, 1345, 516)
Func _Start()
While 1
$coord = PixelSearch( 1006, 99, 1183, 715, 0x3A00FF)
If Not @error Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Sleep(10)
MouseClick("left", 462, 523, 1)
Else
Sleep(10)
EndIf
If IsArray ($coord) = False Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Endif
ExitLoop
Wend
EndFunc
While 1
Sleep(100)
Wend
_Start()
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Вы проиграли')
; клик по ссылке
MouseClick("left", 572, 435, 1)
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{0}")
Send("{.}")
Send("{0}")
Send("{2}")
MouseClick("left", 462, 523, 1)
Sleep(10000)
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(30000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(120000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(600000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(6000000)
EndSelect
EndSelect
MouseClickDrag("Left",1345, 268, 1345, 516)
Func _Start()
While 1
$coord = PixelSearch( 1006, 99, 1183, 715, 0x3A00FF)
If Not @error Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Sleep(10)
MouseClick("left", 462, 523, 1)
Else
Sleep(10)
EndIf
If IsArray ($coord) = False Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Endif
ExitLoop
Wend
EndFunc
While 1
Sleep(100)
Wend
_Start()
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Вы проиграли')
MouseClick("left", 572, 435, 1)
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{0}")
Send("{.}")
Send("{0}")
Send("{5}")
MouseClick("left", 462, 523, 1)
Sleep(10000)
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(30000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(120000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(600000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(6000000)
EndSelect
EndSelect
MouseClickDrag("Left",1345, 268, 1345, 516)
Func _Start()
While 1
$coord = PixelSearch( 1006, 99, 1183, 715, 0x3A00FF)
If Not @error Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Sleep(10)
MouseClick("left", 462, 523, 1)
Else
Sleep(10)
EndIf
If IsArray ($coord) = False Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Endif
ExitLoop
Wend
EndFunc
While 1
Sleep(100)
Wend
_Start()
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Вы проиграли')
; ставим с начала
MouseClick("left", 572, 435, 1)
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{BS}")
Send("{0}")
Send("{.}")
Send("{1}")
Send("{1}")
MouseClick("left", 462, 523, 1)
Sleep(10000)
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(30000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(120000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(600000)
EndSelect
$sText = _IEBodyReadText($oIE)
Select
Case StringInStr($sText, 'Отмена')
sleep(6000000)
EndSelect
EndSelect
MouseClickDrag("Left",1345, 268, 1345, 516)
Func _Start()
While 1
$coord = PixelSearch( 1006, 99, 1183, 715, 0x3A00FF)
If Not @error Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Sleep(10)
MouseClick("left", 462, 523, 1)
Else
Sleep(10)
EndIf
If IsArray ($coord) = False Then
MouseClickDrag("left", 1345, 516, 1345, 268)
Endif
ExitLoop
Wend
EndFunc
While 1
Sleep(100)
Wend
_Start()