How to make "Gosub" stop after I press F7? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 13 Sep 2017, 21:45

Hello everyone,

I have 2 questions need your help.
1. If D3=0, D4=1 then I press "F5". How to make "Gosub" stop afrer I press F7 ? I used the "Exit" to control, but test is failed.
2. Sometimes while running script will be wrong, please see the attach file, I don't understand what is this.
Thank you for see my question.

Code: Select all

#NoTrayIcon
CoordMode, Untitled - Paint
Gui, Color, C000000
Gui +AlwaysOnTop +LastFound +HWNDa_ID
WinSet, Transparent, 250
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x131 y91 h180 w200,Click
Gui, Add, Text, x10 y24 cFFCC00, E:
Gui, Add, DropDownList, x33 y20 w30 h200 vD3, 0||1|2|3|4|5|6|7|8
Gui, Add, Text, x71 y24 cFFCC00, S:
Gui, Add, DropDownList, x93 y20 w30 h200 vD4, 0||1|2|3|4|5|6|7|8
Gui, Add, DropDownList, x132 y20 w70 h200 vD5, 16D||
Gui, Add, Edit, x33 y80 w30 h24 vcard1,0
Gui, Add, Edit, x93 y80 w30 h24 vcard2,0
Gui, Add, Edit, x153 y80 w30 h24 vcard3,0
Gui, Add, Text, x8 y82 cFFCC00, L1
Gui, Add, Text, x69 y82 cFFCC00, L2
Gui, Add, Text, x130 y82 cFFCC00, L3
Gui, Add, Text, x8 y122 cFFCC00, F
Gui, Add, Text, x168 y122 cFFCC00, S
Gui, Add, Slider, ToolTip AltSubmit x28 y120 w120 h25 Range400-3000 vSlider, 1000

SetTimer, aa, 500 
return

aa:
WinGet, a1_ID, ID, A
If ( a_ID != a1_ID )
k_ID = %a1_ID%
return

Pause::Pause
F6::Reload

16D_S1:
{
   SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
;GuiControl,1:,card1,1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 11, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 11, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 11, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 11, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 11, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 11, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 11, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 11, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 11, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 11, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 11, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 11, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 11, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 11, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 11, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 11, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 11, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 11, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 11, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 17, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 17, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 17, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 17, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 17, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 17, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 17, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 17, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 17, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 17, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 17, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 17, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 17, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 17, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 17, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 17, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 17, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 17, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 17, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 17, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 23, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 23, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 23, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 23, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 23, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 23, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 23, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 23, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 23, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 23, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 23, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 23, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 23, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 23, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 23, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 23, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 23, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 23, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 23, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 23, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 29, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 29, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 29, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 29, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 29, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 29, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 29, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 29, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 29, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 29, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 29, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 29, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 29, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 29, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 29, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 29, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 29, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 29, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 29, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 29, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 34, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 34, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 34, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 34, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 34, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 34, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 34, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 34, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 34, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 34, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 34, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 34, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 34, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 34, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 34, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 34, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 34, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 34, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 34, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 34, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 40, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 40, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 40, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 40, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 40, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 40, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 40, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 40, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 40, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 40, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 40, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 40, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 40, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 40, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 40, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 40, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 40, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 40, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 40, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 40, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 46, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 46, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 46, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 46, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 46, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 46, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 46, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 46, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 46, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 46, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 46, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 46, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 46, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 46, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 46, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 46, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 46, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 46, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 46, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 46, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 51, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 51, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 51, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 51, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 51, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 51, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 51, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 51, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 51, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 51, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 51, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 51, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 51, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 51, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 51, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 51, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 51, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 51, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 51, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 51, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 57, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 57, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 57, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 57, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 57, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 57, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 57, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 57, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 57, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 57, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 57, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 57, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 57, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 57, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 57, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 57, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 57, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 57, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 57, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 57, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 63, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 63, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 63, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 63, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 63, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 63, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 63, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 63, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 63, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 63, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 63, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 63, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 63, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 63, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 63, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 63, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 63, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 63, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 63, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 63, 509, 2}
Sleep 300
GuiControl,1:,card3,1
}
return

16D_S2:
{
SetBatchLines -1
Send {Click, 75, 509, 2}
Sleep 2000
;GuiControl,1:,card1,1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 75, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 75, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 75, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 75, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 75, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 75, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 75, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 75, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 75, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 75, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 75, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 75, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 75, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 75, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 75, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 75, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 75, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 75, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 75, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 81, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 81, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 81, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 81, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 81, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 81, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 81, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 81, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 81, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 81, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 81, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 81, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 81, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 81, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 81, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 81, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 81, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 81, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 81, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 81, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 87, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 87, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 87, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 87, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 87, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 87, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 87, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 87, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 87, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 87, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 87, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 87, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 87, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 87, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 87, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 87, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 87, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 87, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 87, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 87, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 93, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 93, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 93, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 93, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 93, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 93, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 93, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 93, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 93, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 93, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 93, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 93, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 93, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 93, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 93, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 93, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 93, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 93, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 93, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 93, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 98, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 98, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 98, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 98, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 98, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 98, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 98, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 98, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 98, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 98, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 98, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 98, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 98, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 98, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 98, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 98, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 98, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 98, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 98, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 98, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 104, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 104, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 104, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 104, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 104, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 104, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 104, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 104, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 104, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 104, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 104, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 104, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 104, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 104, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 104, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 104, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 104, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 104, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 104, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 104, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 110, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 110, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 110, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 110, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 110, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 110, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 110, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 110, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 110, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 110, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 110, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 110, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 110, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 110, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 110, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 110, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 110, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 110, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 110, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 110, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 116, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 116, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 116, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 116, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 116, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 116, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 116, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 116, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 116, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 116, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 116, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 116, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 116, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 116, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 116, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 116, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 116, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 116, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 116, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 116, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 121, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 121, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 121, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 121, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 121, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 121, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 121, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 121, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 121, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 121, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 121, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 121, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 121, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 121, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 121, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 121, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 121, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 121, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 121, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 121, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 127, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 127, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 127, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 127, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 127, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 127, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 127, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 127, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 127, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 127, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 127, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 127, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 127, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 127, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 127, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 127, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 127, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 127, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 127, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 127, 509, 2}
Sleep 300
GuiControl,1:,card3,1
}
return

16D_S3:
{
   SetBatchLines -1
Send {Click, 140, 509, 2}
Sleep 2000
;GuiControl,1:,card1,1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 140, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 140, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 140, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 140, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 140, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 140, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 140, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 140, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 140, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 140, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 140, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 140, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 140, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 140, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 140, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 140, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 140, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 140, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 140, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 146, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 146, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 146, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 146, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 146, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 146, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 146, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 146, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 146, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 146, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 146, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 146, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 146, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 146, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 146, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 146, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 146, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 146, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 146, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 146, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 152, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 152, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 152, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 152, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 152, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 152, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 152, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 152, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 152, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 152, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 152, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 152, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 152, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 152, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 152, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 152, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 152, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 152, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 152, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 152, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 157, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 157, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 157, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 157, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 157, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 157, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 157, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 157, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 157, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 157, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 157, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 157, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 157, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 157, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 157, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 157, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 157, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 157, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 157, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 157, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 163, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 163, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 163, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 163, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 163, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 163, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 163, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 163, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 163, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 163, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 163, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 163, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 163, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 163, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 163, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 163, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 163, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 163, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 163, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 163, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 169, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 169, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 169, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 169, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 169, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 169, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 169, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 169, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 169, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 169, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 169, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 169, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 169, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 169, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 169, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 169, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 169, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 169, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 169, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 169, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 175, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 175, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 175, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 175, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 175, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 175, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 175, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 175, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 175, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 175, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 175, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 175, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 175, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 175, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 175, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 175, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 175, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 175, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 175, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 175, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 180, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 180, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 180, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 180, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 180, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 180, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 180, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 180, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 180, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 180, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 180, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 180, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 180, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 180, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 180, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 180, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 180, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 180, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 180, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 180, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 186, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 186, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 186, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 186, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 186, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 186, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 186, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 186, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 186, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 186, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 186, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 186, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 186, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 186, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 186, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 186, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 186, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 186, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 186, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 186, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 192, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 192, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 192, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 192, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 192, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 192, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 192, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 192, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 192, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 192, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 192, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 192, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 192, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 192, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 192, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 192, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 192, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 192, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 192, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 192, 509, 2}
Sleep 300
GuiControl,1:,card3,1
}
return

16D_S4:
{
   SetBatchLines -1
Send {Click, 205, 509, 2}
Sleep 2000
;GuiControl,1:,card1,1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 205, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 205, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 205, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 205, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 205, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 205, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 205, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 205, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 205, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 205, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 205, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 205, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 205, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 205, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 205, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 205, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 205, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 205, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 205, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 211, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 211, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 211, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 211, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 211, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 211, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 211, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 211, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 211, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 211, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 211, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 211, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 211, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 211, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 211, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 211, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 211, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 211, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 211, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 211, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 216, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 216, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 216, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 216, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 216, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 216, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 216, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 216, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 216, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 216, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 216, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 216, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 216, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 216, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 216, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 216, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 216, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 216, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 216, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 216, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 222, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 222, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 222, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 222, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 222, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 222, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 222, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 222, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 222, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 222, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 222, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 222, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 222, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 222, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 222, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 222, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 222, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 222, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 222, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 222, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 228, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 228, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 228, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 228, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 228, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 228, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 228, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 228, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 228, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 228, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 228, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 228, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 228, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 228, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 228, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 228, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 228, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 228, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 228, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 228, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 233, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 233, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 233, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 233, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 233, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 233, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 233, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 233, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 233, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 233, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 233, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 233, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 233, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 233, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 233, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 233, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 233, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 233, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 233, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 233, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 239, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 239, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 239, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 239, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 239, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 239, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 239, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 239, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 239, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 239, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 239, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 239, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 239, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 239, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 239, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 239, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 239, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 239, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 239, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 239, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 245, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 245, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 245, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 245, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 245, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 245, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 245, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 245, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 245, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 245, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 245, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 245, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 245, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 245, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 245, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 245, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 245, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 245, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 245, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 245, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 250, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 250, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 250, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 250, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 250, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 250, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 250, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 250, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 250, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 250, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 250, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 250, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 250, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 250, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 250, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 250, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 250, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 250, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 250, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 250, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 257, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 257, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 257, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 257, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 257, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 257, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 257, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 257, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 257, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 257, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 257, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 257, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 257, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 257, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 257, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 257, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 257, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 257, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 257, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 257, 509, 2}
Sleep 300
GuiControl,1:,card3,1
}
return

16D_E1:
{
    SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
;GuiControl,1:,card1, % D4+1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 11, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 11, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 11, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 11, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 11, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 11, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 11, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 11, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 11, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 11, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 11, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 11, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 11, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 11, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 11, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 11, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 11, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 11, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 11, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 17, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 23, 326, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 29, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 34, 326, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 40, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 46, 326, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 51, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 57, 326, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 63, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 63, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 63, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 63, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 63, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 63, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 63, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 63, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 63, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 63, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 63, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 63, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 63, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 63, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 63, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 63, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 63, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 63, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 63, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 63, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 57, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 51, 509, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 46, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 40, 509, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 34, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 29, 509, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 23, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 17, 509, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,1
}
return

16D_E2:
{
   SetBatchLines -1
   Send {Click, 75, 509, 2}
Sleep 2000
;GuiControl,1:,card1, % D4+2
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 75, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 75, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 75, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 75, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 75, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 75, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 75, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 75, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 75, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 75, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 75, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 75, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 75, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 75, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 75, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 75, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 75, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 75, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 75, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 81, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 87, 326, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 93, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 98, 326, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 104, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 110, 326, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 116, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 121, 326, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 127, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 127, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 127, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 127, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 127, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 127, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 127, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 127, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 127, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 127, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 127, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 127, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 127, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 127, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 127, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 127, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 127, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 127, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 127, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 127, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 121, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 116, 509, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 110, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 104, 509, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 98, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 93, 509, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 87, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 81, 509, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,1
}
return

16D_E3:
{
   SetBatchLines -1
   Send {Click, 140, 509, 2}
Sleep 2000
;GuiControl,1:,card1, % D4+3
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 140, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 140, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 140, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 140, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 140, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 140, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 140, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 140, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 140, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 140, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 140, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 140, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 140, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 140, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 140, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 140, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 140, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 140, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 140, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 146, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 152, 326, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 157, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 163, 326, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 169, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 175, 326, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 180, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 186, 326, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 192, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 192, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 192, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 192, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 192, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 192, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 192, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 192, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 192, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 192, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 192, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 192, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 192, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 192, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 192, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 192, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 192, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 192, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 192, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 192, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 186, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 180, 509, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 175, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 169, 509, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 163, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 157, 509, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 152, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 146, 509, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,1
}
return

16D_E4:
{
   SetBatchLines -1
   Send {Click, 205, 509, 2}
Sleep 2000
;GuiControl,1:,card1, % D4+4
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 205, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 205, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 205, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 205, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 205, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 205, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 205, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 205, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 205, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 205, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 205, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 205, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 205, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 205, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 205, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 205, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 205, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 205, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 205, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 211, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 216, 326, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 222, 326, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 228, 326, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 233, 326, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 239, 326, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 245, 326, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 250, 326, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 257, 326, 2}
Sleep 300
GuiControl,1:,card2,10
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 257, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 257, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 257, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 257, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 257, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 257, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 257, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 257, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 257, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 257, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 257, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 257, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 257, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 257, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 257, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 257, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 257, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 257, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 257, 509, 2}
Sleep 300
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 250, 509, 2}
Sleep 300
GuiControl,1:,card2,9
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 245, 509, 2}
Sleep 300
GuiControl,1:,card2,8
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 239, 509, 2}
Sleep 300
GuiControl,1:,card2,7
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 233, 509, 2}
Sleep 300
GuiControl,1:,card2,6
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 228, 509, 2}
Sleep 300
GuiControl,1:,card2,5
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 222, 509, 2}
Sleep 300
GuiControl,1:,card2,4
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 216, 509, 2}
Sleep 300
GuiControl,1:,card2,3
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 211, 509, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,1
}
return


F5::

IfWinExist, Untitled - Paint
{
   WinWait, Untitled - Paint
   WinMove, Untitled - Paint, , 0, 0
}
else
{
   Exit
}

Gui, Submit, NoHide
Gui, Font, cRed
GuiControl, Font, MyEdit
Send {Click, %vLineX%, %hLineY%, 1}
Send {Click, 15, 506, 2}
Sleep 4000
If (D4 = 1) and (D3=0) and (D5="16D")
{
    GuiControl,1:,card1,1
    Gosub, 16D_S1
}
If (D4 = 1) and (D3=1) and (D5="16D")
 {
    GuiControl,1:,card1,1
    Gosub, 16D_S1
    GuiControl,1:,card1,2
    Gosub, 16D_E2
 }
If (D4 = 1) and (D3=2) and (D5="16D")
 {
    GuiControl,1:,card1,1
    Gosub, 16D_S1
    GuiControl,1:,card1,2
    Gosub, 16D_E2
    GuiControl,1:,card1,3
    Gosub, 16D_E3
 }
If (D4 = 1) and (D3=3) and (D5="16D")
 {
    GuiControl,1:,card1,1
    Gosub, 16D_S1
    GuiControl,1:,card1,2
    Gosub, 16D_E2
    GuiControl,1:,card1,3
    Gosub, 16D_E3
    GuiControl,1:,card1,4
    Gosub, 16D_E4
 }
If (D4 = 2) and (D3=0) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
   }
If (D4 = 2) and (D3=1) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
    GuiControl,1:,card1,3
    Gosub,16D_E3
   }
If (D4 = 2) and (D3=2) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
    GuiControl,1:,card1,3
    Gosub,16D_E3
    GuiControl,1:,card1,4
    Gosub,16D_E4
   }
If (D4 = 3) and (D3=0) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
    GuiControl,1:,card1,3
    Gosub,16D_S3
   }
If (D4 = 3) and (D3=1) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
    GuiControl,1:,card1,3
    Gosub,16D_S3
    GuiControl,1:,card1,4
    Gosub,16D_E4
   }
If (D4 = 4) and (D3=0) and (D5="16D")
   {
	GuiControl,1:,card1,1
    Gosub,16D_S1
	GuiControl,1:,card1,2
    Gosub,16D_S2
    GuiControl,1:,card1,3
    Gosub,16D_S3
    GuiControl,1:,card1,4
    Gosub,16D_S4
   }
If (D3 = 1) and (D4 = 0) and (D5="16D")
   {
   GuiControl,1:,card1,1
   Gosub,16D_E1
   }
If (D3 = 2) and (D4 = 0) and (D5="16D")
   {
   GuiControl,1:,card1,1
   Gosub,16D_E1
   GuiControl,1:,card1,2
   Gosub,16D_E2
   }
If (D3 = 3) and (D4 = 0) and (D5="16D")
   {
   GuiControl,1:,card1,1
   Gosub,16D_E1
   GuiControl,1:,card1,2
   Gosub,16D_E2
   GuiControl,1:,card1,3
   Gosub,16D_E3
   }
If (D3 = 4) and (D4 = 0) and (D5="16D")
   {
   GuiControl,1:,card1,1
   Gosub,16D_E1
   GuiControl,1:,card1,2
   Gosub,16D_E2
   GuiControl,1:,card1,3
   Gosub,16D_E3
   GuiControl,1:,card1,4
   Gosub,16D_E4
   }

return
GuiClose:
ExitApp

BoBo
Posts: 4111
Joined: 13 May 2014, 17:15

Re: How to make "Gosub" stop after I press F7?

Post by BoBo » 13 Sep 2017, 23:39

Never ever saw that much redundant code. You should probably think about to invest some time in learning how to use functions (and arrays)! :)

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 00:06

BoBo wrote:Never ever saw that much redundant code. You should probably think about to invest some time in learning how to use functions (and arrays)! :)
Hi BoBo,
Yes, This is not a good script. Could you please modify some of my script ? Let me know how to use functions and arrays.
Do you think the script is too long and confuse the problem ?
Thank you.

User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: How to make "Gosub" stop after I press F7?  Topic is solved

Post by Exaskryz » 14 Sep 2017, 00:59

Question 1, you can do something like F7::stop:=True, then use inside your 16D_S1 and 16D_S2, at every single Sleep 300 (or however many you want; using the Replace function in your text editor would be a good idea), use

Code: Select all

If stop
   Exit
And be sure to reset the value of Stop to false or 0 when you first start the script with F5:

Code: Select all

F5::
stop:=False
; rest of your code
OK, but as BoBo says, you can do better. Inside the 16D_S1 for example, here's how you simplify the first 5 clicks:

Code: Select all

16D_S1:
SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
GuiControl,1:,card2,1
myArray:=[500,490,480,471,461]
Loop, 5
{
GuiControl,1:,card3,%A_Index%
Sleep %Slider%
Send {Click, 11, % myArray[A_Index], 2}
Sleep 300
If stop
   Exit
}
By using a loop like this, you don't need to have hundreds of the same lines and lines with only a slight difference.

When you use an array, you have a collection of variables that are inside ab (Object, then you specify the collection and which item in the collection. In this case, myArray has items 1-5 -- myArray[1], myArray[2], myArray[3], myArray[4], myArray[5]. You can check how many items are in an array with MsgBox % myArray.length(). You'll notice I'm using a potentially weird syntax (I didn't notice it in your original code) -- the % at the start of a parameter forces expression mode. This treats everything inside it as a variable instead of literal text.

Please let us know if you have any further questions.

---

As for your second question, I haven't run your code - it would take a long time for it to execute - and I don't know exactly what is expected. So it may be tricky to see what is wrong. But I imagine it's an issue of the Paint program not responding to the click correctly.

BoBo
Posts: 4111
Joined: 13 May 2014, 17:15

Re: How to make "Gosub" stop after I press F7?

Post by BoBo » 14 Sep 2017, 01:17

Well, would be interesting what exactly should happen at Paint?? What should be the outcome/result? Is it holding a screenshot of a poker table and is used as a test environment?

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 02:28

Hi, BoBo, Exaskryz,

Thank you.
1. One error number 47: This parameter contains a variable name missing its ending percent sign.

Code: Select all

Send {Click, 11, % myArray[A_Index], 2}
2. Can not stop script after I press F7. Could you please check to me ? thanks.

Code: Select all

Pause::Pause
F6::Reload
F7::
stop:=True

16D_S1:
   SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
GuiControl,1:,card2,1
myArray:=[500,490,480,471,461]
Loop, 5
{
GuiControl,1:,card3,%A_Index%
Sleep %Slider%
Send {Click, 11, % myArray[A_Index], 2}
Sleep 300
If stop
   Exit
}

F5::
stop:=False
Gui, Submit, NoHide
Gui, Font, cRed
GuiControl, Font, MyEdit
Send {Click, %vLineX%, %hLineY%, 1}
Send {Click, 15, 506, 2}
Sleep 4000
If (D4 = 1) and (D3=0) and (D5="16D")
{
    GuiControl,1:,card1,1
    Gosub, 16D_S1
}

return
GuiClose:
ExitApp


Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 08:47

Hi,

I have modified the script as below (Code A), when I press F7 can stop script. :bravo:
But code A cursor position and code B cursor position is not the same. Why ??? :headwall:

Code A:

Code: Select all

F7::stop:=True
16D_S1:
   SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
GuiControl,1:,card2,1
myArray:=[500,490,480,471,461,451,442,432,422,413,403,393,384,374,364,355,345,335,326]
Loop, 19
{
GuiControl,1:,card3,%A_Index%
Sleep %Slider%
Send {Click, 11, myArray[A_Index], 2}   ; Delete "%" or else can not start. 
Sleep 300
If stop
   Exit
}
return
F5::
stop:=False
Gui, Submit, NoHide
Gui, Font, cRed
GuiControl, Font, MyEdit
Send {Click, %vLineX%, %hLineY%, 1}
Send {Click, 15, 506, 2}
Sleep 4000
If (D4 = 1) and (D3=0) and (D5="16D")
{
    GuiControl,1:,card1,1
    Gosub, 16D_S1
}
return
GuiClose:
ExitApp
Code B

Code: Select all

16D_S1:
{
   SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
;GuiControl,1:,card1,1
GuiControl,1:,card2,1
GuiControl,1:,card3,1
Sleep %Slider%
Send {Click, 11, 500, 2}
Sleep 300
GuiControl,1:,card3,2
Sleep %Slider%
Send {Click, 11, 490, 2}
Sleep 300
GuiControl,1:,card3,3
Sleep %Slider%
Send {Click, 11, 480, 2}
Sleep 300
GuiControl,1:,card3,4
Sleep %Slider%
Send {Click, 11, 471, 2}
Sleep 300
GuiControl,1:,card3,5
Sleep %Slider%
Send {Click, 11, 461, 2}
Sleep 300
GuiControl,1:,card3,6
Sleep %Slider%
Send {Click, 11, 451, 2}
Sleep 300
GuiControl,1:,card3,7
Sleep %Slider%
Send {Click, 11, 442, 2}
Sleep 300
GuiControl,1:,card3,8
Sleep %Slider%
Send {Click, 11, 432, 2}
Sleep 300
GuiControl,1:,card3,9
Sleep %Slider%
Send {Click, 11, 422, 2}
Sleep 300
GuiControl,1:,card3,10
Sleep %Slider%
Send {Click, 11, 413, 2}
Sleep 300
GuiControl,1:,card3,11
Sleep %Slider%
Send {Click, 11, 403, 2}
Sleep 300
GuiControl,1:,card3,12
Sleep %Slider%
Send {Click, 11, 393, 2}
Sleep 300
GuiControl,1:,card3,13
Sleep %Slider%
Send {Click, 11, 384, 2}
Sleep 300
GuiControl,1:,card3,14
Sleep %Slider%
Send {Click, 11, 374, 2}
Sleep 300
GuiControl,1:,card3,15
Sleep %Slider%
Send {Click, 11, 364, 2}
Sleep 300
GuiControl,1:,card3,16
Sleep %Slider%
Send {Click, 11, 355, 2}
Sleep 300
GuiControl,1:,card3,17
Sleep %Slider%
Send {Click, 11, 345, 2}
Sleep 300
GuiControl,1:,card3,18
Sleep %Slider%
Send {Click, 11, 335, 2}
Sleep 300
GuiControl,1:,card3,19
Sleep %Slider%
Send {Click, 11, 326, 2}
Sleep 300
GuiControl,1:,card3,20
Sleep %Slider%
Send {Click, 17, 326, 2}
Sleep 300
GuiControl,1:,card2,2
GuiControl,1:,card3,20
Sleep %Slider%

User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: How to make "Gosub" stop after I press F7?

Post by Exaskryz » 14 Sep 2017, 14:03

Oops, yeah, that makes sense why you can't get the Send {Click, 11, % myArray[A_Index], 2} to work. Send only has one parameter -- we need the entire thing to be an expression or a normal parameter. That was my mistake. There are a number of options we can use to work around. Choose any of these 6 as you please (and there may be other ways)

Code: Select all

var:=myArray[A_Index]
Send {Click, 11, %var%, 2}

Code: Select all

var:=myArray[A_Index]
Click, 11, %var%, 2

Code: Select all

var:=myArray[A_Index]
Click % "11, " var ", 2"

Code: Select all

Click % "11, " myArray[A_Index] ", 2"

Code: Select all

MouseClick, Left, 11, % myArray[A_Index], 2

Code: Select all

Send % "{Click, 11, " myArray[A_Index] ", 2}"
---

Why your code in A is not working right is because the "myArray[A_Index]" is being treated as a literal string, which then treated as a number, would be 0. It is very similar to saying Send {Click, 11, skfjalkfjaklsjf, 2}.

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 20:15

Hi,

Yes, I understand. Loop A GuiControl,1:,card3,%A_Index% is 1 to 10, how can I to set 10 to 1 at Loop B?
Thank you.

Code: Select all

16D_S1:
SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
GuiControl,1:,card2,1
myArray1:=[500,490,480,471,461,451,442,432,422,413]
Loop, 10  ;Loop  A
{
GuiControl,1:,card3,%A_Index% ; 1 to 10
Sleep %Slider%
Click % "11, " myArray1[A_Index] ", 2"
Sleep 300
If stop
   Exit
}
GuiControl,1:,card2,2
Loop, 10 ;Loop B
{
GuiControl,1:,card3,%A_Index% ;  How can I to set 10 to 1 ???
Sleep %Slider%
Click % "17, " myArray1[A_Index] ", 2"
Sleep 300
If stop
   Exit
}	
return

User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: How to make "Gosub" stop after I press F7?

Post by Exaskryz » 14 Sep 2017, 20:30

GuiControl,1:,card3,% 11-A_Index ; 10 to 1

A_Index will be 1 the first time, so doing 11-1 = 10. Then next time, 11-2 = 9.

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 20:41

Exaskryz wrote:GuiControl,1:,card3,% 11-A_Index ; 10 to 1

A_Index will be 1 the first time, so doing 11-1 = 10. Then next time, 11-2 = 9.
Hi Exaskryz,

Thank you. :clap:

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 14 Sep 2017, 22:06

Hi,

When Loop A is done. The mouse will move to the top left of the screen and click 2, then active Loop B.
Why the mouse move to the top left of the screen and click 2 ?
Thanks.

Code: Select all

16D_S1:
SetBatchLines -1
Send {Click, 11, 509, 2}
Sleep 2000
GuiControl,1:,card2,1
myArray1:=[500,490,480,471,461,451,442,432,422,413,403,393,384,374,364,355,345,335,326]
myArray2:=[326,335,345,355,364,374,384,393,403,413,422,432,442,451,461,471,480,490,500]
Loop, 20  ;Loop A
{
GuiControl,1:,card3,%A_Index% ; 1 to 10
Sleep %Slider%
Click % "11, " myArray1[A_Index] ", 2"
Sleep 300
If stop
   Exit
}
GuiControl,1:,card2,2
Loop, 20 ; Loop B
{
GuiControl,1:,card3,% 21-A_Index ; 10 to 1
Sleep %Slider%
Click % "17, " myArray2[A_Index] ", 2"
Sleep 300
If stop
   Exit
}

User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: How to make "Gosub" stop after I press F7?

Post by Exaskryz » 14 Sep 2017, 22:54

I'm noticing that you are doing 20 loops, but only have 19 items in your myArray1 and myArray2. MsgBox % myArray1.length(). So when it asks for myArray1[20] and you don't have a value there, it treats it as a 0. And since that's the Y-coordinate, it'll be at the top of the screen.

If you prefer, you can use Loop, % myArray1.length() rather than using a hard 20.

Same for the second loop: Loop, % myArray2.length(). And then to incorporate the countdown, use GuiControl,1:,card3,% myArray2.length()+1-A_Index. (Without the +1, it'd start a count of 20 items at 19-->0, but the +1 makes it count 20-->1.)

Marcosa1020
Posts: 160
Joined: 23 Sep 2015, 19:15

Re: How to make "Gosub" stop after I press F7?

Post by Marcosa1020 » 15 Sep 2017, 08:04

Exaskryz wrote:I'm noticing that you are doing 20 loops, but only have 19 items in your myArray1 and myArray2. MsgBox % myArray1.length(). So when it asks for myArray1[20] and you don't have a value there, it treats it as a 0. And since that's the Y-coordinate, it'll be at the top of the screen.

If you prefer, you can use Loop, % myArray1.length() rather than using a hard 20.

Same for the second loop: Loop, % myArray2.length(). And then to incorporate the countdown, use GuiControl,1:,card3,% myArray2.length()+1-A_Index. (Without the +1, it'd start a count of 20 items at 19-->0, but the +1 makes it count 20-->1.)
Made thanks.

Post Reply

Return to “Ask For Help”