I want this program to pause at a specific line

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AlienRobotGhost
Posts: 50
Joined: 04 Nov 2016, 07:15

I want this program to pause at a specific line

23 Apr 2018, 06:00

Code: Select all

;------------------------------------------TRY NOT TO DIE LAUGHING


firstrand = 1
secondrand = 4

starttime =  %A_DD%-%A_MM%-%A_YYYY% %A_Hour%-%A_Min%

newrecord = 0
steptotal = 0
matchrecord = 0
setrecord = 0
endset = 0
gui, font, s12 cblack, arial
Gui, Add, Button, x100 y50 w250 h40 gTogglePause, Pause/Resume
gui, show, maximize, Impossible















;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

gosub, randtopvar ;---------------- make 25 random numbers

gosub, toprow ;-------------------- put the 25 random numbers in a row in the middle of the screen and make sure they stay fixed

gosub, mchrow ;------------------------- add controls for match marking row
gosub, botrow ;--------------------------- display bottom row

continue: ;------------------- loop start here



gosub, matchcount ;------------------------- determine matches, mark matches, count matches, display matches and record

gosub, record

gosub, stagernd ;---------------------- make new random number, cycle existing numbers over, add new random number to beginning of row

gosub, new_Label

steptotal += 1
gui, submit, nohide

goto, continue ;------------------ loop

guiclose:
endrec = STOP
endset = 1
goto record

;----------------------------------------------------------------------the part that wolf_II (the almighty) provided


new_Label:
Loop, 69
{
    miscvar1 := A_Index + 50
    miscvar2 := "br" substr("00" A_Index, -2)
    GuiControl,, Static%miscvar1%,  % %miscvar2%
}
Return

;----------------------------------------I have no idea what it does, but it made my thing work perfectly! wolf_II exhibits incredible code knowledge that FAR surpasses my own!

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;------------------------------------------------------------------------------------------------------ add fixed top row numbers

toprow:

gui, add, text, x460 y400, %rand01%
gui, add, text, x480 y400, %rand02%
gui, add, text, x500 y400, %rand03%
gui, add, text, x520 y400, %rand04%
gui, add, text, x540 y400, %rand05%
gui, add, text, x560 y400, %rand06%
gui, add, text, x580 y400, %rand07%
gui, add, text, x600 y400, %rand08%
gui, add, text, x620 y400, %rand09%
gui, add, text, x640 y400, %rand10%
gui, add, text, x660 y400, %rand11%
gui, add, text, x680 y400, %rand12%
gui, add, text, x700 y400, %rand13%
gui, add, text, x720 y400, %rand14%
gui, add, text, x740 y400, %rand15%
gui, add, text, x760 y400, %rand16%
gui, add, text, x780 y400, %rand17%
gui, add, text, x800 y400, %rand18%
gui, add, text, x820 y400, %rand19%
gui, add, text, x840 y400, %rand20%
gui, add, text, x860 y400, %rand21%
gui, add, text, x880 y400, %rand22%
gui, add, text, x900 y400, %rand23%
gui, add, text, x920 y400, %rand24%
gui, add, text, x940 y400, %rand25%

gui, submit, nohide

return

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;------------------------------------------------------------------------ add bottom row scrolling numbers

botrow:

gui, add, text, x20 y460, %br001%
gui, add, text, x40 y460, %br002%
gui, add, text, x60 y460, %br003%
gui, add, text, x80 y460, %br004%
gui, add, text, x100 y460, %br005%
gui, add, text, x120 y460, %br006%
gui, add, text, x140 y460, %br007%
gui, add, text, x160 y460, %br008%
gui, add, text, x180 y460, %br009%
gui, add, text, x200 y460, %br010%
gui, add, text, x220 y460, %br011%
gui, add, text, x240 y460, %br012%
gui, add, text, x260 y460, %br013%
gui, add, text, x280 y460, %br014%
gui, add, text, x300 y460, %br015%
gui, add, text, x320 y460, %br016%
gui, add, text, x340 y460, %br017%
gui, add, text, x360 y460, %br018%
gui, add, text, x380 y460, %br019%
gui, add, text, x400 y460, %br020%
gui, add, text, x420 y460, %br021%
gui, add, text, x440 y460, %br022%
gui, add, text, x460 y460, %br023%
gui, add, text, x480 y460, %br024%
gui, add, text, x500 y460, %br025%
gui, add, text, x520 y460, %br026%
gui, add, text, x540 y460, %br027%
gui, add, text, x560 y460, %br028%
gui, add, text, x580 y460, %br029%
gui, add, text, x600 y460, %br030%
gui, add, text, x620 y460, %br031%
gui, add, text, x640 y460, %br032%
gui, add, text, x660 y460, %br033%
gui, add, text, x680 y460, %br034%
gui, add, text, x700 y460, %br035%
gui, add, text, x720 y460, %br036%
gui, add, text, x740 y460, %br037%
gui, add, text, x760 y460, %br038%
gui, add, text, x780 y460, %br039%
gui, add, text, x800 y460, %br040%
gui, add, text, x820 y460, %br041%
gui, add, text, x840 y460, %br042%
gui, add, text, x860 y460, %br043%
gui, add, text, x880 y460, %br044%
gui, add, text, x900 y460, %br045%
gui, add, text, x920 y460, %br046%
gui, add, text, x940 y460, %br047%
gui, add, text, x960 y460, %br048%
gui, add, text, x980 y460, %br049%
gui, add, text, x1000 y460, %br050%
gui, add, text, x1020 y460, %br051%
gui, add, text, x1040 y460, %br052%
gui, add, text, x1060 y460, %br053%
gui, add, text, x1080 y460, %br054%
gui, add, text, x1100 y460, %br055%
gui, add, text, x1120 y460, %br056%
gui, add, text, x1140 y460, %br057%
gui, add, text, x1160 y460, %br058%
gui, add, text, x1180 y460, %br059%
gui, add, text, x1200 y460, %br060%
gui, add, text, x1220 y460, %br061%
gui, add, text, x1240 y460, %br062%
gui, add, text, x1260 y460, %br063%
gui, add, text, x1280 y460, %br064%
gui, add, text, x1300 y460, %br065%
gui, add, text, x1320 y460, %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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;----------------------------------------------------- This section determines, marks, and counts matches

matchcount:

setmatch = 0

if rand01 = %br023%
{
guicontrol, show, mark01
setmatch += 1
goto, skip01
}
guicontrol, hide, mark01
skip01:

if rand02 = %br024%
{
guicontrol, show, mark02
setmatch += 1
goto, skip02
}
guicontrol, hide, mark02
skip02:

if rand03 = %br025%
{
guicontrol, show, mark03
setmatch += 1
goto, skip03
}
guicontrol, hide, mark03
skip03:

if rand04 = %br026%
{
guicontrol, show, mark04
setmatch += 1
goto, skip04
}
guicontrol, hide, mark04
skip04:

if rand05 = %br027%
{
guicontrol, show, mark05
setmatch += 1
goto, skip05
}
guicontrol, hide, mark05
skip05:

if rand06 = %br028%
{
guicontrol, show, mark06
setmatch += 1
goto, skip06
}
guicontrol, hide, mark06
skip06:

if rand07 = %br029%
{
guicontrol, show, mark07
setmatch += 1
goto, skip07
}
guicontrol, hide, mark07
skip07:

if rand08 = %br030%
{
guicontrol, show, mark08
setmatch += 1
goto, skip08
}
guicontrol, hide, mark08
skip08:

if rand09 = %br031%
{
guicontrol, show, mark09
setmatch += 1
goto, skip09
}
guicontrol, hide, mark09
skip09:

if rand10 = %br032%
{
guicontrol, show, mark10
setmatch += 1
goto, skip10
}
guicontrol, hide, mark10
skip10:

if rand11 = %br033%
{
guicontrol, show, mark11
setmatch += 1
goto, skip11
}
guicontrol, hide, mark11
skip11:

if rand12 = %br034%
{
guicontrol, show, mark12
setmatch += 1
goto, skip12
}
guicontrol, hide, mark12
skip12:

if rand13 = %br035%
{
guicontrol, show, mark13
setmatch += 1
goto, skip13
}
guicontrol, hide, mark13
skip13:

if rand14 = %br036%
{
guicontrol, show, mark14
setmatch += 1
goto, skip14
}
guicontrol, hide, mark14
skip14:

if rand15 = %br037%
{
guicontrol, show, mark15
setmatch += 1
goto, skip15
}
guicontrol, hide, mark15
skip15:

if rand16 = %br038%
{
guicontrol, show, mark16
setmatch += 1
goto, skip16
}
guicontrol, hide, mark16
skip16:

if rand17 = %br039%
{
guicontrol, show, mark17
setmatch += 1
goto, skip17
}
guicontrol, hide, mark17
skip17:

if rand18 = %br040%
{
guicontrol, show, mark18
setmatch += 1
goto, skip18
}
guicontrol, hide, mark18
skip18:

if rand19 = %br041%
{
guicontrol, show, mark19
setmatch += 1
goto, skip19
}
guicontrol, hide, mark19
skip19:

if rand20 = %br042%
{
guicontrol, show, mark20
setmatch += 1
goto, skip20
}
guicontrol, hide, mark20
skip20:

if rand21 = %br043%
{
guicontrol, show, mark21
setmatch += 1
goto, skip21
}
guicontrol, hide, mark21
skip21:

if rand22 = %br044%
{
guicontrol, show, mark22
setmatch += 1
goto, skip22
}
guicontrol, hide, mark22
skip22:

if rand23 = %br045%
{
guicontrol, show, mark23
setmatch += 1
goto, skip23
}
guicontrol, hide, mark23
skip23:

if rand24 = %br046%
{
guicontrol, show, mark24
setmatch += 1
goto, skip24
}
guicontrol, hide, mark24
skip24:

if rand25 = %br047%
{
guicontrol, show, mark25
setmatch += 1
goto, skip25
}
guicontrol, hide, mark25
skip25:

gosub, allnumrec

if setmatch > %setrecord%
{
setrecord = %setmatch%
newrecord = 1
}

gui, submit, nohide

return

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;---------------------------------------------- create 25 random numbers to be the fixed top row

randtopvar:

rand01 := 4
rand02 := 3
rand03 := 1
rand04 := 3
rand05 := 2
rand06 := 4
rand07 := 1
rand08 := 3
rand09 := 1
rand10 := 2
rand11 := 4
rand12 := 1
rand13 := 2
rand14 := 3
rand15 := 2
rand16 := 4
rand17 := 1
rand18 := 4
rand19 := 3
rand20 := 2
rand21 := 4
rand22 := 1
rand23 := 3
rand24 := 2
rand25 := 4

gui, submit, nohide

return

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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
;------------------------------------------------------------create random number, shift bottom row numbers, add random number on the end

stagernd:

random, newrand, %firstrand%, %secondrand%

br069 = %br068%
br068 = %br067%
br067 = %br066%
br066 = %br065%
br065 = %br064%
br064 = %br063%
br063 = %br062%
br062 = %br061%
br061 = %br060%
br060 = %br059%
br059 = %br058%
br058 = %br057%
br057 = %br056%
br056 = %br055%
br055 = %br054%
br054 = %br053%
br053 = %br052%
br052 = %br051%
br051 = %br050%
br050 = %br049%
br049 = %br048%
br048 = %br047%
br047 = %br046%
br046 = %br045%
br045 = %br044%
br044 = %br043%
br043 = %br042%
br042 = %br041%
br041 = %br040%
br040 = %br039%
br039 = %br038%
br038 = %br037%
br037 = %br036%
br036 = %br035%
br035 = %br034%
br034 = %br033%
br033 = %br032%
br032 = %br031%
br031 = %br030%
br030 = %br029%
br029 = %br028%
br028 = %br027%
br027 = %br026%
br026 = %br025%
br025 = %br024%
br024 = %br023%
br023 = %br022%
br022 = %br021%
br021 = %br020%
br020 = %br019%
br019 = %br018%
br018 = %br017%
br017 = %br016%
br016 = %br015%
br015 = %br014%
br014 = %br013%
br013 = %br012%
br012 = %br011%
br011 = %br010%
br010 = %br009%
br009 = %br008%
br008 = %br007%
br007 = %br006%
br006 = %br005%
br005 = %br004%
br004 = %br003%
br003 = %br002%
br002 = %br001%
br001 = %newrand%

gui, submit, nohide

return

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
;----------------------------------------------------------------- add match marking controls

mchrow:

gui, add, text, x460 y440 vmark01, V
gui, add, text, x480 y440 vmark02, V
gui, add, text, x500 y440 vmark03, V
gui, add, text, x520 y440 vmark04, V
gui, add, text, x540 y440 vmark05, V
gui, add, text, x560 y440 vmark06, V
gui, add, text, x580 y440 vmark07, V
gui, add, text, x600 y440 vmark08, V
gui, add, text, x620 y440 vmark09, V
gui, add, text, x640 y440 vmark10, V
gui, add, text, x660 y440 vmark11, V
gui, add, text, x680 y440 vmark12, V
gui, add, text, x700 y440 vmark13, V
gui, add, text, x720 y440 vmark14, V
gui, add, text, x740 y440 vmark15, V
gui, add, text, x760 y440 vmark16, V
gui, add, text, x780 y440 vmark17, V
gui, add, text, x800 y440 vmark18, V
gui, add, text, x820 y440 vmark19, V
gui, add, text, x840 y440 vmark20, V
gui, add, text, x860 y440 vmark21, V
gui, add, text, x880 y440 vmark22, V
gui, add, text, x900 y440 vmark23, V
gui, add, text, x920 y440 vmark24, V
gui, add, text, x940 y440 vmark25, V

gui, submit, nohide

return

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



record:







if endset = 1
{
gosub, allnumdisplay
;goto, stopend
}
goto skip630

if newrecord = 0
{
   return
}

if setrecord <= 15
{
return
}

newrecord = 0

stopend:

sleep 500

mousemove, 1, 1

sleep 1000

send {printscreen}

sleep 500

run, mspaint.exe, %windir%\system32

sleep 5000

send {ctrl down}
sleep 200
send {v}
sleep 200
send {ctrl up}

sleep 2000

send {alt down}
sleep 200
send {f4}
sleep 200
send {alt up}

sleep 2000

send {enter}

sleep 2000

send, C:\Users\Billy\Desktop\hold\hotkey\

sleep 1000

if endset = 1
{
send, %endrec%
sleep 200
send, {space}
sleep 200
send, {-}
sleep 200
send, {space}
sleep 200
}

send, %setrecord%
sleep 200
send {(}
sleep 200
send, %steptotal%
sleep 200
send {)}
sleep 200
send, %A_DD%-%A_MM%-%A_YYYY% %A_Hour%-%A_Min%

sleep 1000

send {enter}

sleep 1000



sleep 1000



skip630:



if endset = 1
{
msgbox, DONE
exitapp
}







return

;---------------------------------------------------------------------------------------------------------------

allnumrec:

if setmatch = 0
{
tot00 += 1
}

if setmatch = 1
{
tot01 += 1
}

if setmatch = 2
{
tot02 += 1
}

if setmatch = 3
{
tot03 += 1
}

if setmatch = 4
{
tot04 += 1
}

if setmatch = 5
{
tot05 += 1
}

if setmatch = 6
{
tot06 += 1
}

if setmatch = 7
{
tot07 += 1
}

if setmatch = 8
{
tot08 += 1
}

if setmatch = 9
{
tot09 += 1
}

if setmatch = 10
{
tot10 += 1
}

if setmatch = 11
{
tot11 += 1
}

if setmatch = 12
{
tot12 += 1
}

if setmatch = 13
{
tot13 += 1
}

if setmatch = 14
{
tot14 += 1
}

if setmatch = 15
{
tot15 += 1
}

if setmatch = 16
{
tot16 += 1
}

if setmatch = 17
{
tot17 += 1
}

if setmatch = 18
{
tot18 += 1
}

if setmatch = 19
{
tot19 += 1
}

if setmatch = 20
{
tot20 += 1
}

if setmatch = 21
{
tot21 += 1
}

if setmatch = 22
{
tot22 += 1
}

if setmatch = 23
{
tot23 += 1
}

if setmatch = 24
{
tot24 += 1
}

if setmatch = 25
{
tot25 += 1
}

return

;------------------------------------------------------------------------------------------------------------------

allnumdisplay:

gui, destroy

sleep 1000

gui, font, s12 cblack, arial

gui, show, maximize, Impossible

gui, add, text, x360 y180, Start: %starttime%

gui, add, text, x400 y240, Total 00: %tot00%
gui, add, text, x400 y260, Total 01: %tot01%
gui, add, text, x400 y280, Total 02: %tot02%
gui, add, text, x400 y300, Total 03: %tot03%
gui, add, text, x400 y320, Total 04: %tot04%
gui, add, text, x400 y340, Total 05: %tot05%
gui, add, text, x400 y360, Total 06: %tot06%
gui, add, text, x400 y380, Total 07: %tot07%
gui, add, text, x400 y400, Total 08: %tot08%
gui, add, text, x400 y420, Total 09: %tot09%
gui, add, text, x400 y440, Total 10: %tot10%
gui, add, text, x400 y460, Total 11: %tot11%
gui, add, text, x400 y480, Total 12: %tot12%
gui, add, text, x400 y500, Total 13: %tot13%
gui, add, text, x400 y520, Total 14: %tot14%
gui, add, text, x400 y540, Total 15: %tot15%
gui, add, text, x400 y560, Total 16: %tot16%
gui, add, text, x400 y580, Total 17: %tot17%
gui, add, text, x400 y600, Total 18: %tot18%
gui, add, text, x400 y620, Total 19: %tot19%
gui, add, text, x400 y640, Total 20: %tot20%
gui, add, text, x400 y660, Total 21: %tot21%
gui, add, text, x400 y680, Total 22: %tot22%
gui, add, text, x400 y700, Total 23: %tot23%
gui, add, text, x400 y720, Total 24: %tot24%
gui, add, text, x400 y740, Total 25: %tot25%

return


;---------------------------------------------------------------------------------------------------------------------------------pause


Pause::
TogglePause:
	Pause, Toggle, 1
Return
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: I want this program to pause at a specific line

11 May 2018, 18:39

Sorry i cant help you it's just to big :shock:

That's what she said :lol:
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: I want this program to pause at a specific line

12 May 2018, 08:10

Your code could be significantly reduced in size, especially in the GUI parts which could be generated in loop.

To answer the question - MsgBox stops code execution until the window is closed.
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
AlienRobotGhost
Posts: 50
Joined: 04 Nov 2016, 07:15

Re: I want this program to pause at a specific line

18 May 2018, 20:41

As you are probably fully aware, I am NOT talented at writing code. This is the best I can do with my feeble capabilities. Without the help of !!!!!---> wolf_II <---!!!!! (The Conqueror), it would STILL not be working.

The issue is that, when the program is running, and I hit the pause button, I need it to stop at a specific point, and then resume from there when I hit the pause button again.......I am still working on it

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Theda and 274 guests