I'm at a complete loss as to how Spectate manages to comprehend his own code. It's such an unmaintainable mess. Anyway, here's some fun stuff that I found:
I think I found why all of Spectate's video is <2 min long - apparently random video will only choose a random starting point within the first 5 minutes because otherwise it "takes too line":
check_l_s_p: '27 March 2004
If line_start_point > 300000 Then
line_start_point = line_start_point - 300000
GoTo check_l_s_p
End If '27 March 2004
'27 March 2004 jumping to the middle of large files takes too line
'this limits that to the first 5 minutes and that is plenty.
Just a few lines later, there is this completely random comment - it relates in no way to anything around it:
'29 February 2004 leap year extra day
SendKeys: The ultimate in IPC (I believe this is used for opening a file in Notepad to edit it):
MyAppID = Shell(Cmd(10), 3)
' End If '30 november 2002
'29 September 2003 the above commented out
' AppActivate MyAppID
SendKeys "^o", True
' SendKeys TheFile, True 'december 3 2000
If InStr(1, TheFile, ":") <> 0 Then
SendKeys TheFile, True
Else
SendKeys App.Path + "\" + TheFile, True 'december 3 2000
End If
SendKeys "~", True 'FORCE AN "ENTER"
AppActivate MyAppID 'december 27 2000
Spectate has something against his C: drive:
GoTo auto_p3 'make sure that cd search file does not have "C:\"
'it should be "D:\" anything but "C:\" to work
This is quite a gem - it's used to translate a laptop's un-numlocked keypad to the correct numbers when selecting a file from that list of 20 files (apparently Spectate doesn't grasp Fn+NumLock). Somehow I don't think laptop keyboards have standardized their numpad location, so I'm sure this breaks nicely on other hardware:
keypad_27500: '19 December 2004
xtemp = UCase(xtemp)
If xtemp = "M" Then xtemp = "1"
If xtemp = "," Then xtemp = "2"
If xtemp = "." Then xtemp = "3"
If xtemp = "J" Then xtemp = "4"
If xtemp = "K" Then xtemp = "5"
If xtemp = "L" Then xtemp = "6"
If xtemp = "U" Then xtemp = "7"
If xtemp = "I" Then xtemp = "8"
If xtemp = "O" Then xtemp = "9"
If xtemp = "M " Then xtemp = "10"
If xtemp = "MM" Then xtemp = "11"
If xtemp = "M," Then xtemp = "12"
If xtemp = "M." Then xtemp = "13"
If xtemp = "MJ" Then xtemp = "14"
If xtemp = "MK" Then xtemp = "15"
If xtemp = "ML" Then xtemp = "16"
If xtemp = "MU" Then xtemp = "17"
If xtemp = "MI" Then xtemp = "18"
If xtemp = "MO" Then xtemp = "19"
If xtemp = ", " Then xtemp = "20"