-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdice_pine.ahk
41 lines (39 loc) · 945 Bytes
/
dice_pine.ahk
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
;; Made by Lessy / Saber
;; Example of how to maintain 4x on a field using only dice
Menu, Tray, Tip, Dice Pine
Menu, Tray, Icon, %A_ScriptDir%\icons\field_dice.ico
#MaxThreads, 8
#MaxMem, 256
#Include functions.ahk
; "Pause" Hotkeys
$^8:: ; CTRL+8
{
Reload
Return
}
; "Play" Hotkeys
$^7:: ; CTRL+7
Loop
{
Menu, Tray, Icon, %A_ScriptDir%\icons\status\in-progress.ico
Loop
{
desired_field_was_boosted := False
KeyPress("2")
Sleep, 1500
Loop, 50
{
ImageSearch,,, A_ScreenWidth-500, 0, A_ScreenWidth, A_ScreenHeight, *90 %A_ScriptDir%\images\dice_pine.png
If (ErrorLevel == 0)
{
desired_field_was_boosted := True
Break
}
Sleep, 20
}
If (desired_field_was_boosted)
Break
}
Menu, Tray, Icon, %A_ScriptDir%\icons\field_dice.ico
Sleep, 13 * 60 * 1000
}