NeverPool

SSDS

Apr 15th, 2011
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '30 november 2002 the stuff below
  2. Private Declare Function GetVersionEx Lib "kernel32" Alias _
  3.        "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long
  4.  
  5. '19 january 2003    this and the play code results in the audio being played
  6. 'and a message "video not available cannot find vids.mjpg decompressor"
  7. 'but no video as the message suggests???
  8.  
  9. Private Declare Function mciSendString Lib "winmm.dll" Alias _
  10.      "mciSendStringA" (ByVal lpstrCommand As String, ByVal _
  11.      lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal _
  12.      hwndCallback As Long) As Long
  13. '19 january 2003
  14. '12 December 2004a
  15. Private Declare Function mciGetErrorString Lib "winmm.dll" _
  16.     Alias "mciGetErrorStringA" _
  17.      (ByVal dwError As Long, _
  18.      ByVal lpstrBuffer As String, _
  19.      ByVal uLength As Long) As Long
  20. '12 December 2004a
  21.  
  22. Private Declare Function getshortpathname Lib "kernel32" _
  23.      Alias "GetShortPathNameA" _
  24.      (ByVal lpszlongpath As String, _
  25.      ByVal lpszshortpath As String, _
  26.      ByVal cchBuffer As Long) As Long
  27. '18 June 2003
  28.  
  29.  
  30. Private Type OSVERSIONINFO
  31.     dwOSVersionInfoSize As Long
  32.     dwMajorVersion As Long
  33.     dwMinorVersion As Long
  34.     dwBuildNumber As Long
  35.     dwPlatformId As Long
  36.     szCSDVersion As String * 128 '  Maintenance string for PSS usage
  37. End Type
  38.  
  39. Private Type id3tag
  40.     header As String * 3
  41.     songtitle As String * 30
  42.     artist As String * 30
  43.     album As String * 30
  44.     year As String * 4
  45.     comments As String * 30
  46.     genre As Byte
  47. End Type
  48. Private temptag As id3tag
  49. '24 June 2003 above
  50.  
  51. ' dwPlatforID Constants
  52. Private Const VER_PLATFORM_WIN32s = 0
  53. Private Const VER_PLATFORM_WIN32_WINDOWS = 1
  54. Private Const VER_PLATFORM_WIN32_NT = 2
  55. '-- End --'     30 november 2002
  56.  
  57. Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
  58. Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
  59. Private Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, lpSectorsPerCluster As Long, lpBytesPerSector As Long, lpNumberOfFreeClusters As Long, lpTotalNumberOfClusters As Long) As Long
  60.  
  61. Private mssg As String * 255        '26 February 2004
  62. Private multi_prompt2 As String     '04 September 2004
  63. Private video_length As Long        '26 February 2004
  64. 'Private vs As String * 30            '06 February 2004
  65. Private vs As String * 255            '19 March 2004  Having this the wrong size was a bug of major proportions...
  66. Private last_vs As Double               '24 March 2004
  67. Private replay_pos As Double            '10 April 2004
  68. Private replay_yn As Integer            '10 April 2004
  69. Private hold_speed As Double            '10 April 2004
  70. Private command_line As String          '19 September 2004
  71. Private back_job As String              '12 September 2004
  72. Private line_fit As String                       '03 August 2003
  73. Private start_point As Double           '16 July 2003 Ver=1.07T
  74. Private line_start_point As Double      '19 July 2003 Ver=1.07T
  75. Private temp_double As Double           '19 July 2003 Ver=1.07T
  76. Private thumb_nail As String            '16 July 2003 Ver=1.07T
  77. Private elapse_start As Double          '13 July 2003
  78. Private elapse_end As Double            '13 July 2003
  79. Private elapse_yn As String             '13 July 2003
  80. Private Pict_file As String  'february 09 2001 moved up to here for the "interrupt prompt"
  81. Private long_pict_file As String    '22 November 2006
  82. Private Save_file As String '15 January 2004
  83. Private ooo As String       'february 09 2001 moved up here
  84. Private xx1 As Integer      'february 09 2001 moved up to here for the "interrupt prompt"
  85. Private yy1 As Integer
  86. Private old_line As String  '25 March 2003 part of version ver=1.02b
  87. Private motion_yn           '29 March 2003 part of version ver=1.04
  88. Private special_date As String        '01 April 2003 reduce the delay if "Tuesday April 1" date display done as it has delays built in ver=1.05
  89. Private time_displayed As String    '03 April 2003 indicate that time was displayed....
  90. 'Private replace_data As String      '03 April 2003 save SSS1 and replace it after date displayed
  91. Private replace_sss1 As String
  92. Private replace_sss2 As String
  93. Private replace_sss3 As String
  94. Private replace_sss4 As String
  95. Private replace_sss5 As String
  96. Private replace_sss6 As String      '03 April 2003 add the replace_sss? code above
  97. Private sshortfile As String * 67   '18 june 2003
  98. Private lresult As Long             '18 june 2003
  99. Private videoyn As String   '10 february 2003
  100. Private detailyn As String  '18 November 2004
  101. Private avi_file As String  '01 february 2003
  102. Private mpg_file As String  '11 May 2003    ver=1.05
  103. Private wav_file As String  '10 June 2003   ver=1.07
  104. Private mid_file As String  '10 June 2003   ver=1.07
  105. Private auto_exe As String  '07 december 2002
  106. Private ss_only As String   '07 december 2002
  107. Private program_info        '21 december 2002
  108. Private random_info         '21 december 2002
  109. Private stretch_info        '21 december 2002
  110. Private text_pause As Integer   '05 october 2002
  111. Private debug_photo As Integer  '12 october 2002
  112. Private show_files As String    '24 december 2002
  113. Private show_files_yn As Integer '24 december 2002
  114. Private do_tab As Integer  '05 october 2002
  115. Private search_str As String    '26 august 2002
  116. Private rand As Integer     '18 august 2002
  117. Private rand1 As Integer    '23 March 2004
  118. Private rand_cnt1 As Double  '23 March 2004
  119. Private rand_no1 As Double  '23 March 2004
  120. Private rand_cnt As Double  '18 august 2002
  121. Private rand_no As Double  '18 august 2002
  122. Private diryes As String    'february 18 2002
  123. Private Mergem As String    'february 24 2002
  124. Private temptemp As String  'february 18 2002
  125. Private tempdata As String  '31 March 2003
  126. Private eofsw As String     '26 November 2004
  127. Private fract_time As Double    'january 23 2002
  128. Private check_time As Double    'january 23 2002
  129. Private slomo As Integer        '08 January 2004
  130. Private slomo_start As Double   '08 january 2004
  131. Private motion_in As Double     '01 March 2004
  132. Private motion_out As Double    '01 March 2004
  133. Private slomo_in As Double      '08 January 2004
  134. Private slomo_out As Double     '08 January 2004
  135. Private pad_time As Double      '21 March 2004
  136. Private slomo_seg As Double     '08 January 2004
  137. Private inter_in As Double      '22 February 2004
  138. Private inter_out As Double     '22 February 2004
  139. Private sscreen_saver As String 'may 06 2001
  140. Private sscreen_saver_ww As String '28 april 2002
  141. Private os_ver As String        '30 november 2002
  142. Private os_num As String        '01 december 2002
  143. Private offset1 As Integer      'april 06 2001
  144. Private offset2 As Integer      'april 06 2001
  145. Private ppoffset1 As Integer    '27 july 2002
  146. Private ppoffset2 As Integer    '27 july 2002
  147. Private dblStart As Double      'used for elapsed time
  148. Private dblEnd As Double        '  "   "      "     "
  149. Private dbltime1 As Double
  150. Private dbltime2 As Double
  151. Private prompt2 As String   'march 01 2001
  152. Private interrupt_prompt2   '20 November 2004
  153. 'see the 15 December 2004 minor changes so that "Y" for last of file can be defaulted in and out..
  154. Private SAVE_ttt As String  'march 01 2001 controls defaults on start and default out after first entry
  155. Private inin As String      'march 01 2001
  156. Private SSS1 As String      'march 01 2001
  157. Private prev_option As String   'february 25 2001
  158. Private hh_cnt As Long         'april 22 2001
  159. Private xtemp As String     'november 12 2000
  160. Private ooopen As String    'september 02 2001
  161. Private dsp_cnt As Long         'may 09 2001 count of total pictures displayed
  162. Private delete_file As String 'june 30 2001
  163. 'insert the new globals right here october 28 2001
  164.  Private strBuffer As String
  165.   Private lngBufSize As Long
  166.   Private lngStatus As Long
  167.                 Private lpBuff As String * 25
  168.                 Private ret As Long, UserName As String
  169.  
  170. Private strRootPathName As String
  171. Private lngSectorsPerCluster As Long
  172. Private lngBytesPerSector As Long
  173. Private lngNumberOfFreeClusters As Long
  174. Private lngTotalNumberOfClusters As Long
  175.  
  176. Private strDrive As String
  177. Private strMessage As String
  178. Private lngTotalBytes As Long
  179. Private lngFreeBytes As Long
  180.     Private hilite_hh As String     'april 22 2001
  181.    Private hilite_cnt As Integer   'april 22 2001
  182.    Private fs, f1, s 'april 11 2001
  183.    Private dirdates As String  'april 11 2001
  184.    Private indates  As String   'april 11 2001
  185.  
  186.     Private append_start1 As String  'april 10 2001
  187.    Private append_end1 As String    'april 10 2001
  188.    Private prev_ttt As String      'april 10 2001
  189.    Private skipyesno As String     'june 09 2001
  190.    Private old_pict As String      'april 08 2001
  191.    Private newname As String       'april 01 2001
  192.    Private filereason As String    'april 01 2001
  193.    Private savepath As String      'april 01 2001
  194.    Private leaddidg As String      'april 01 2001
  195.    Private thedir As String        'april 01 2001
  196.    Private indir As String         'april 01 2001
  197.    Private outdir As String        'april 01 2001
  198.    Private filetype As String      'april 01 2001
  199.    Private dirtype As String       'february 23 2002
  200.    Private minsize As Double      'april 01 2001 08 junt 2003
  201.    Private maxsize As Double    'april 01 2001 08 june 2003 change from long to double
  202.    Private autobuild As String      'april 01 2001
  203.    Private inplace As String       'april 01 2001
  204.    Private endstuff As String      'january 21 2001
  205.    Private s1_imbed As String      'january 19 2001
  206.    Private s2_imbed As String      'january 19 2001
  207.    Private s3_imbed As String      'january 19 2001
  208.    Private s4_imbed As String      '23 june 2002
  209.    Private s5_imbed As String      '23 june 2002
  210.    Private s6_imbed As String      '23 june 2002
  211.    Private imbedded As String      'january 19 2001
  212.    Private new_len As Integer      'january 18 2001
  213.    Private array_ooo(55) As String 'january 18 2001
  214.    Private array_aaa(55) As String 'january 18 2001
  215.    Private match_flag As String    'january 18 2001
  216.    Private array_pos As Integer    'january 18 2001
  217.    Private array_prt As Integer    'january 18 2001
  218.    Private data_ooo As String      'january 15 2001
  219.    Private data_aaa As String      'january 15 2001
  220.    Private over_lap As Integer     'january 10 2001
  221.    Private crop_len As Integer     'january 09 2001
  222.    Private wrap_cnt As Long        'january 07 2001
  223.    Private mess_cnt As Long        'january 02 2001
  224.    Private tot_s1 As Long          'january 01 2001
  225.    Private tot_s2 As Long          'january 01 2001
  226.    Private tot_s3 As Long          'january 01 2001
  227.    Private tot_s4 As Long          '23 june 2002
  228.    Private tot_s5 As Long          '23 june 2002
  229.    Private tot_s6 As Long          '23 june 2002
  230.    Private context_win As Integer  'january 01 2001
  231.    Private page_prompt As String   'december 31 2000
  232.    Private dateskip As String      'december 12 2000
  233.    Private boundarycnt As Integer  'december 11 2000
  234.    Private boundarystr As String   'december 11 2000
  235.    Private mbxyes As String        'december 17 2000
  236.    Private mbxi As Integer         'december 17 2000
  237.    Private emailsea As String      'december 11 2000
  238.    Private iimport As String       'december 24 2000
  239.    Private showpos As String       'december 6 2000
  240.    Private showasc As String       'december 11 2000
  241. '    showpos = "Y"               'december 6 2000 **keep** very handy for testing line wraps only
  242.    Private uppercase As String     'december 8 2000
  243.    Private posstring As String     'december 6 2000
  244.    Private crlf As String          'december 2 2000
  245.    Private changes As String       'december 2 2000
  246.    Private save_line As String    'to display error line numbers
  247.                                'usefull for debug
  248.    Private extract_yes As String   'november 12 2000
  249.    Private skip_info As String     'november 14 2000
  250.    Private encript As String       'november 20 2000
  251.    Private hilite_this As String   'november 8 2000
  252.    Private OutFile As Integer
  253.     Private BatchFile As Integer    '27 October 2004
  254.    Private FileFile As Integer     'march 20/00 edit files list
  255.    Private CtrlFile As Integer     '19 November 2004
  256.    Private NewFile As Integer      'january 29 2002
  257.    Private ResultFile As Integer      '08 November 2004
  258.    Private ExtFile      'november 12 2000
  259.    Private FileExt As String   'november 17 2000
  260.    Private case_yes    'november 13 2000
  261.    Private search_prompt As String
  262.     Private ampm As String
  263.     Private hhour As String
  264.     Private mminute As String
  265.     Private ssecond As String
  266.     Private ggg As String
  267.     Private hhhour As Long
  268.     Private mmminute As Long
  269.     Private sssecond As Long
  270.     Private chhour As Long
  271.     Private cmminute As Long
  272.     Private control_file As String 'november 03 2000
  273.    Private control_files(10) As String '23 November 2004
  274.    Private xxx_found As String    'november 03 2000
  275.    Private pp_entered As String 'november 6 2000
  276.    Private cssecond As Long
  277.     Private freeze_sec As Double            '01 October 2003
  278.    Private adjust_sec As Double            '29 September 2003
  279.    Private delay_sec As Double
  280.     Private new_delay_sec As Double         '05 March 2004
  281.    Private line_delay_sec As Double        '19 July 2003 Ver=1.07T
  282.    Private Line_freeze_sec As Double       '24 September 2003
  283.    Private line_speed As Double            '16 November 2003
  284.    Private hold_sec As Double  'february 08 2002
  285.    Private photo_copy As String    'march 17 2001
  286.    Private copy_photo As String    'march 17 2001
  287.    Private photo_dir As String     'march 17 2001 ie c:\search\tempfold\
  288.    Private photo_file As String    'march 17 2001 ie pict
  289.    Private photo_cnt As Integer    'march 17 2001 sequential count of photo's
  290.    Private temp_sec As Integer 'march 14 2001
  291.    Private temp_cnt As Double  '08 July 2003
  292.    Private temp_cnt1 As Double  '12 April 2004
  293.    Private screen_capture As String    'march 15 2001
  294.    Private tot_print As Integer
  295.     Private ss_search As String
  296. 'may 06 2001    Dim sscreen_saver As String
  297. '12 December 2004a
  298.    Private result1 As Long          '12 December 2004a
  299.    Private errormsg1 As Integer     '12 December 2004a
  300.    Private returnstring1 As String * 1024   '12 December 2004a
  301.    Private errorstring1 As String * 1024    '12 December 2004a
  302. '12 December 2004a
  303.    Private line_len As Integer
  304.     Private entered_notes As String
  305.     Private in_str As String
  306.     Private out_str As String
  307.     Private f As Integer
  308.     Private FFF As String
  309.     Private TheFile As String
  310.     Private LastFile As String
  311.     Private AllFiles(20) As String
  312.     Private vvversion As String
  313.     Private AllSearch(20) As String
  314.     Private Cmd(100) As String
  315.     'april 01 2001 made cript1 400 for the folders used in gf option
  316.    Private cript1(20000) As String   'november 18 2000
  317. '    Private cript2(100) As String   'november 18 2000
  318. '    Private cript3(100) As Integer  'november 20 2000
  319.    Private cript2(20000) As String  '28 October 2004 big enough for my program...
  320.    Private cript3(20000) As Integer  '28 October 2004
  321. '    Private criptcnt As Integer   'november 18 2000
  322.    Private criptcnt As Long   '28 October 2004 above was 10000 too
  323.    Private TheSearch As String
  324.     Private FileFound As Integer
  325.     Private Clip_data As String
  326.     Private Last_match As String    'input line where match found
  327.    Private last_pict           '28 february 2003
  328.    Private noshow(10) As String
  329.     Private screensave(10) As String
  330.     Private screencount As Integer
  331.     Private nocount As Integer
  332.     Private Line_Search
  333.     Private Picture_Search As String
  334.     Private Previous_line_save As String
  335.     Private Previous_line As String
  336.     Private Next_line_save As String
  337.     Private Next_line As String
  338.     Private This_line As String
  339.     Private String_Position As Integer
  340. '    Dim Pict_file As String        'moved up for "interrupt prompt" february 09 2001
  341.    Private disp_file As String
  342.     Private long_line As String     'identify long line
  343.    Private II As Integer
  344.     Private EE As Double            '11 december 2002
  345.    Private III As Integer
  346.     Private JJ As Integer
  347.     Private tt As Integer
  348.     Private ttt1 As Integer
  349.     Private ddd As Integer
  350.     Private Enter_Count As Integer
  351.     Private img_ctrl As String  'february 21 2001
  352.    Private stretch_img As String   'march 31 2001
  353.    Private auto_redraw As String   'november 10 2001
  354.    Private ttt As String
  355.     Private p2p2 As String      '10 august 2002
  356.    Private tt1 As String   'testing only
  357.    Private Test1_str As String 'Testing only
  358.    Private Test2_str As String 'november 23 2001
  359.    Private prompt1 As String
  360. '    Dim prompt2 As String
  361.    Private prompt3 As String
  362. '    Dim SAVE_ttt As String
  363.    Private qqq As String
  364.  '   Dim SSS1 As String     what the hey why commented out????? ***vip*** it is strange too
  365.    Private SSS2 As String
  366.     Private SSS3 As String
  367.     Private SSS4 As String  '09 june 2002
  368.    Private SSS5 As String
  369.     Private SSS6 As String
  370.     Private sep As String
  371.  '   Dim inin As String
  372.    Private KEEPS1 As String
  373.     Private KEEPS2 As String
  374.     Private KEEPS3 As String
  375.     Private KEEPS4 As String    '09 june 2002
  376.    Private KEEPS5 As String
  377.     Private KEEPS6 As String
  378.     Private hi_lites As String          'flash display
  379.    Private SAVE_KEEPS1 As String       'june 26/99
  380.    Private SAVE_KEEPS2 As String
  381.     Private SAVE_KEEPS3 As String
  382.     Private SAVE_KEEPS4 As String   '09 june 2002
  383.    Private SAVE_KEEPS5 As String
  384.     Private SAVE_KEEPS6 As String
  385.     Private Context As String           'june 26/99
  386.    Private aaa As String
  387. '    Dim ooo As String   'hold the original upper/lower case
  388.    Private ccc As String   'aug 08/99
  389.    Private xxx As String   'january 19 2001 checking for imbedded spaces in search string only
  390.    Private Context_text(40) As String   'aug 08/99
  391.    Private previous_picture(100) As Long
  392.     Private pp As Long
  393.     Private last_pp As Long 'may 10 2001
  394.    Private skip_pp As Long 'may 10 2001
  395.    Private previous_count As Long
  396.     Private ddemo As String
  397.     Private date_check As String
  398.     Private today_date As String
  399.     Private visual_impared As String
  400.     Private Context_cnt As Integer  'aug 08/99
  401.    Private Context_lines As Integer
  402.     Private Clear_Context_lines As Integer  '18 March 2003 ver=1.01
  403.    Private zzz_chrs As Long
  404.     Private zzz_len As Integer
  405.     Private cnt As Long
  406.     Private SSS As String
  407.     Private SAVE_SSS As String
  408.     Private SAVE_SRCH As String
  409.     Private MAX_CNT As Long
  410. '    Dim back_cnt As Long
  411.    Private bbb As Long
  412.     Private tot_cnt As Long
  413.     Private end_cnt As Integer
  414.     Private tot_disp As Long
  415.     Private time_cnt As Long
  416.     Private time_num As Long
  417.     Private lll As String
  418.     Private tttpos As Integer
  419.     Private i As Long
  420.    
  421.     Private loop_cnt As Long
  422.     Private loop_inc As Long
  423.     Private j As Long
  424.     Private AltColor As Integer
  425.     Private Hold_Fore As Integer        '27 July 2003
  426.    Private Def_Fore As Integer
  427.     Private Set_Fore As Integer
  428.     Private temp_fore As Integer 'november 9 2000
  429.    Private new1 As String 'november 9 2000
  430.    Private new2 As String 'november 9 2000
  431.    Private new3 As String 'november 9 2000
  432.    Private new4 As String '09 june 2002
  433.    Private new5 As String '09 june 2002
  434.    Private new6 As String '09 june 2002
  435.    Private mult1 As String 'november 21 2000
  436.    Private mult2 As String 'november 21 2000
  437.    Private mult3 As String 'november 21 2000
  438.    Private mult4 As String '09 june 2002
  439.    Private mult5 As String '09 june 2002
  440.    Private mult6 As String '09 june 2002
  441.    Private line_pos As String  'november 22 2000
  442.    Private line_match As String 'november 21 2000
  443.    Private keep_aaa As String 'november 9 2000
  444.    Private keep_ooo As String 'november 9 2000
  445.    Private temp1 As Long
  446.     Private temp11 As Long      'march 14 2001
  447.    Private temp2 As Long
  448.     Private temp3 As Integer
  449.     Private temp4 As Long       'november 9 2000
  450.    Private temps As String
  451.     Private testprompt As String    'january 24 2001
  452.    Private ytemp As String     'december 11 2000
  453.    Private tempss As String
  454.     Private ppaste As String
  455.     Private gpaste As String
  456.    
  457.     Private play_speed As Long   '29 October 2003
  458.    Private save_play_speed As Long '16 November 2003
  459.    Private date_displayed As String        'save for later search
  460.    Private printed_cnt As Long             'may 10/00
  461.    Private displayed_cnt As Long
  462.     Private printed As String
  463.  
  464. 'october 28 2001
  465. Private hold_zzz As Long    '21 September 2004
  466.    Private yyy_cnt As Long         '28 October 2004
  467. Private zzz_cnt As Long     'february 19 2001 display in interrupt prompt
  468. 'if items arn't declared in general they arn't available to the other subroutines.
  469. '
  470.  
  471. Private Sub Command1_Click()
  472. '    MsgBox xx1
  473.    'may 06 2001 allow for an interrupt on the screen saver to switch into
  474.    ' the p1 search and thus be able to do a "P" for previous picture
  475.        Def_Fore = Hold_Fore  'reset color 27 July 2003
  476. '  Test2_str = InputBox("27 July 2003 testing ", "testing doug ", , xx1 - 5000, yy1 - 5000)   '
  477. '23 February 2004    If sscreen_saver = "Y" Then
  478. '20 November 2004 with the code here the interrupt didnot work so put it back.. good test though
  479. '20 November 2004    If sscreen_saver = "Y" And mpg_file <> "YES" And interrupt_prompt2 <> "WW" Then
  480. '        frmproj2.Caption = "interrupt click " + ttt + "*" + Test1_str + "*" + prompt2 '20 November 2004
  481.    interrupt_prompt2 = "WW"     '21 November 2004
  482.    If sscreen_saver = "Y" And mpg_file <> "YES" Then
  483.         ttt = "P"
  484.         Test1_str = "P1"
  485.         sscreen_saver = "N"
  486. '  Test2_str = InputBox("delay_sec test ", CStr(new_delay_sec) + "*" + CStr(delay_sec), , xx1 - 5000, yy1 - 5000) '
  487. '        frmproj2.Caption = "delay_sec test " + CStr(new_delay_sec) + "*" + CStr(delay_sec) '20 November 2004
  488.        new_delay_sec = delay_sec   '23 November 2004 allow it to back up faster
  489.        delay_sec = 0               '23 November 2004 delay_sec gets reset each new photo
  490. '20 November 2004        SSS1 = "PHOTO"      'may 28 2001 allows the "P" to show all previous
  491.                            'pictures after the screen saver is interrupted.
  492.                            'it just looks at the last picture saved.
  493.        prompt2 = "P1"
  494.         GoTo little_lower       '21 November 2004
  495.    End If          'may 06 2001
  496.    If mpg_file = "YES" Then          '22 February 2004
  497.    '02 March 2004 check the status here before pause
  498.        DoEvents        '02 March 2004
  499.        i = mciSendString("status video1 mode", mssg, 255, 0) '02 March 2004
  500.        DoEvents        '05 March 2004
  501.        frmproj2.Caption = " status_a is " + Trim(mssg) '05 March 2004
  502.        DoEvents        '02 March 2004
  503.        If Left(UCase(mssg), 6) = "PAUSED" Then
  504.             i = mciSendString("resume video1", 0&, 0, 0)
  505.             DoEvents
  506.             mssg = "PLAYING"    '02 March 2004
  507.        End If          '02 March 2004
  508.        If Left(UCase(mssg), 7) = "PLAYING" Then
  509.             i = mciSendString("pause video1", 0&, 0, 0)         '02 March 2004
  510.            DoEvents
  511.         Else
  512. 'Test2_str = InputBox("video status= " + Trim(mssg), "testing doug ", , xx1 - 5000, yy1 - 5000) '02 March 2004
  513. '            Print bel           '02 March 2004 testing only
  514. '            frmproj2.Caption = " status is " + Trim(mssg)       '02 March 2004
  515.        End If              '02 March 2004
  516. '02 march 2004 i = mciSendString("pause video1", 0&, 0, 0) '22 February 2004
  517.        inter_in = Timer    '22 February 2004 get the time we delay here.
  518.        DoEvents        '22 February 2004
  519.        i = mciSendString("status video1 position", vs, 255, 0) '22 February 2004
  520.        tempdata = " Pos=" + CStr(Val(vs)) + " (of) " + CStr(video_length)     '26 February 2004
  521.        DoEvents        '23 February 2004
  522. '26 February 2004        frmproj2.Caption = LCase(temptemp) + " pos=" + Trim(vs) '22 February 2004
  523.        frmproj2.Caption = LCase(temptemp) + tempdata '26 February 2004
  524.        DoEvents        '22 February 2004
  525.    End If      '22 February 2004
  526.    If mpg_file = "YES" Then            '24 February 2004
  527.        If replay_yn = True Then        '10 April 2004
  528.            play_speed = hold_speed     '10 April 2004
  529.            replay_yn = False           '10 April 2004
  530.        End If                          '10 April 2004  in case 2 interrupts in a row...
  531. '27 August 2004      Test2_str = InputBox("Enter . to rewind video " + vbCrLf + Pict_file + vbCrLf + ooo, "Interrupt Prompt # " + CStr(dsp_cnt), , xx1, yy1) '24 February 2004
  532. '02 September 2004    If thumb_nail = "YES" Then GoTo little_lower        '29 August 2004
  533. 'allow for thumbnail of video to pause first off maybe even do the same for mp3 (a pause is not bad here?)
  534.        Test2_str = "A"      '02 September 2004
  535.    If thumb_nail = "YES" And InStr(UCase(Line_Search), "MP3") <> 0 Then GoTo little_lower       '29 August 2004
  536. '02 September 2004      Test2_str = InputBox("Enter . to rewind video (aa) for all" + CStr(video_length) + vbCrLf + Pict_file + vbCrLf + ooo, "Interrupt Prompt # " + CStr(dsp_cnt), , xx1, yy1) '24 February 2004
  537.      Test2_str = InputBox("E or X to Stop --  Enter . to rewind video (a) for all" + CStr(video_length) + vbCrLf + Pict_file + vbCrLf + ooo, "Interrupt Prompt # 0  " + CStr(dsp_cnt), , xx1, yy1) '24 February 2004
  538.        Test2_str = Trim(UCase(Test2_str))        '12 December 2004
  539.        If Test2_str = "E" Or Test2_str = "X" Then
  540.             Unload Me       '12 December 2004
  541.            Set frmproj2 = Nothing
  542.             Stop                            '12 december 2004
  543. '            Resume End_32000                   '12 December 2004  this line is not part of this subroutine...
  544.        End If                              '12 December 2004 allow for exit too at interrupt...
  545. little_lower:                                           '29 August 2004
  546. '16 August 2004        frmproj2.Caption = LCase(temptemp) + " (Replay by Spectate Swamp)"  '26 February 2004
  547.        frmproj2.Caption = LCase(temptemp) + " (Replay by Spectate Swamp)length=" + CStr(video_length / 1000) + " seconds" '16 August 2004
  548. '02 September 2004    If thumb_nail = "YES" Then
  549.    If thumb_nail = "YES" And UCase(Test2_str) = "A" Then
  550. '    If UCase(Test2_str) = "AA" Then
  551. '            thumb_nail = "NO"
  552.            Test2_str = ""
  553. '            line_delay_sec = video_length / 1000
  554. '            delay_sec = line_delay_sec
  555. '            new_delay_sec = delay_sec
  556.            i = mciSendString("stop video1", 0&, 0, 0)
  557.             DoEvents
  558. '            line_start_point = 10
  559. '            i = mciSendString("play video1 from " + CStr(10) + " wait", 0&, 0&, 0&) '29 August 2004 this works better
  560.            last_vs = video_length - 100    '29 August 2004 These 3 lines replace the WAIT call above works WELL
  561.            slomo = True                '29 August 2004
  562.            i = mciSendString("play video1 from " + CStr(10), 0&, 0&, 0&)
  563. '      Test2_str = InputBox("When done hit enter " + vbCrLf + Pict_file + vbCrLf + ooo, "Waiting till end prompt # ", , xx1 - 5000, yy1 - 5000)  'february 09 2001
  564. '            i = mciSendString("stop video1", 0&, 0, 0)
  565. '            inter_in = Timer
  566. '            GoSub line_30300
  567.            GoTo down_abit
  568.     End If              '27 August 2004
  569.        DoEvents        '26 February 2004
  570.    Else
  571.       Test2_str = InputBox("Enter to continue x or e to exit " + vbCrLf + Pict_file + vbCrLf + ooo, "Interrupt Prompt # " + CStr(dsp_cnt), , xx1 - 5000, yy1 - 5000) 'february 09 2001
  572.    End If
  573.    
  574. '        ShowCursor = True        '29 november 2002
  575.    Cmd(45) = ""        '07 december 2002 allow for other drives after interrupt..
  576.    Test2_str = UCase(Test2_str)    '06 october 2002
  577. '22 February 2004 on video play Pause, Show Position, Resume after adding in paused time.
  578.    If mpg_file = "YES" Then          '22 February 2004
  579.        DoEvents        '22 February 2004
  580. '26 April 2004 try saving the results here
  581. '        If Left(Test2_str, 1) = "F" Then
  582. '            i = mciSendString("save video2 c:\search\outmpg.mpg", 0&, 0, 0)
  583. '            new_delay_sec = 5.5
  584. '            GoSub line_30300
  585. '            Close video2
  586. '            For EE = 1 To 10000000
  587. '                DoEvents
  588. '            Next EE                  'give it some time
  589. '        End If
  590. 'need more info on the mcisendstring and how to record mpg files???
  591. '26 April 2004
  592. '24 february 2004 back up the video here if .... entered
  593. '23 April 2004 allow for multiple ... or '''' to go back and ahead
  594. '23 April 2004        If Left(Test2_str, 1) = "." Then
  595.        If Left(Test2_str, 1) = "." Or Left(Test2_str, 1) = Chr(39) Then
  596.             i = mciSendString("stop video1", 0&, 0, 0)
  597.             III = Len(Test2_str)         '23 April 2004
  598.            If Left(Test2_str, 1) = Chr(39) Then III = III * -1     '23 April 2004
  599.            DoEvents
  600. '10 April 2004 allow for replay at a slower speed dictated by a cmd(?) value...
  601.            replay_yn = False               '10 April 2004
  602.            i = mciSendString("status video1 position", vs, 255, 0) '10 April 2004
  603.            temp3 = InStr(vs, Chr$(0)) '10 April 2004
  604.            temp11 = Val(Left(vs, temp3 - 1)) '10 April 2004
  605. '23 April 2004           If Val(Cmd(66)) > 1 And Val(Cmd(66)) < 1000 Then
  606. '23 April 2004  do not change speed if moving ahead in file
  607.           If Val(Cmd(66)) > 1 And Val(Cmd(66)) < 1000 And Left(Test2_str, 1) <> Chr(39) Then
  608.                 hold_speed = play_speed     '10 April 2004
  609.                play_speed = Val(Cmd(66))   '10 April 2004
  610.                replay_yn = True            '10 April 2004
  611.                replay_pos = temp11        '10 April 2004
  612.                slomo = True                '10 April 2004  if full speed to slow speed this needed
  613.            End If                          '10 April 2004
  614. '23 April 2004            i = mciSendString("play video1 from " + CStr(Val(vs) - (Val(Cmd(27)) * 1000)), 0&, 0&, 0&)
  615.            i = mciSendString("play video1 from " + CStr(Val(vs) - (Val(Cmd(27)) * 1000) * III), 0&, 0&, 0&)
  616.             last_vs = Val(vs) - Val(Cmd(27) * 1000)   '06 April 2004 without this the replay is at fast speed
  617.                                    'might be handy to have this as an option maybee
  618.            DoEvents
  619. '        temptemp = InputBox("04 April 2004 test ", "Test continue " + CStr(dsp_cnt), , xx1 - 5000, yy1 - 5000)
  620.            Test2_str = ""
  621.             GoTo down_abit
  622.         End If                      '24 February 2004
  623.        i = mciSendString("resume video1", 0&, 0, 0)
  624.         DoEvents        '09 March 2004
  625. down_abit:      '24 February 2004
  626.        inter_out = Timer   '22 February 2004 add the delay here back in.
  627.        If slomo = False Then
  628.             fract_time = fract_time + inter_out - inter_in  '22 February 2004
  629.        End If
  630.     End If      '22 February 2004
  631. '22 February 2004
  632.    
  633. '06 January 2005 allow for an entry to continue here
  634. '06 January 2005    If text_pause And Test2_str <> "C" Then
  635.    If text_pause And (Test2_str = "X" Or Test2_str = "E") Then
  636.         text_pause = 0      '05 october 2002    "C" allow for continue of auto display
  637.        inin = ""
  638.     End If
  639.     If UCase(Test2_str) = "A" Then
  640.         prompt2 = "C"        'march 01 2001
  641.        SAVE_ttt = "C"
  642.         inin = "A"
  643.         SSS1 = "A"      'march 01 2001
  644.    End If
  645. '13 March 2004  If UCase(Test2_str) <> "X" And UCase(Test2_str) <> "E" Then GoTo line_15  'February 09 2001
  646.    If mpg_file = "YES" Then
  647. '04 April 2004        i = mciSendString("close all", 0&, 0, 0)
  648.        DoEvents
  649. '22 March 2004        tt1 = InputBox("testing only closing down", , , 4400, 4500)  'TESTING ONLY 13 March 2004
  650.    End If                      '11 March 2004
  651. '04 April 2004        Unload Me
  652. '04 April 2004    Set frmproj2 = Nothing 'sdistuff
  653. '04 April 2004           Set colReminderPages = Nothing  'release memory??
  654.        
  655. '    Set sear1 = Nothing  'mdistuff
  656. '04 April 2004 take this out    End             'feburary 5 2001
  657. line_15:
  658. '        temptemp = InputBox(" 04 April 2004 doug  " + SSS1, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  659. End Sub
  660.  
  661. Private Sub Form_Click()
  662. 'this is activated in the flash mode when mouse button is hit march 02 2001
  663.  Test1_str = InputBox("in form_click" + vbCrLf + Pict_file + vbCrLf + ooo, "Interrupt Prompt " + CStr(zzz_cnt), , xx1 - offset1, yy1 - offset2) 'february 09 2001
  664. 'march 02 2001
  665. 'seems not to do anything when in sdi mode ???
  666. 'ie holding down the left mouse does nothing only works in mdi mode
  667. End Sub
  668.  
  669. Private Sub Form_Deactivate()
  670. '03 July 2003 testing to clean up the unload process (just needed to add these two routines?????)
  671. 'using the X for closing the form down check this bit out
  672. End Sub
  673.  
  674. Private Sub Form_Initialize()
  675. 'system compoenents:    Use
  676. 'form                   does almost everything
  677. 'command button         used for esc out of screen saver
  678. '                       set cancel property to true and place off the screen
  679. 'text block (removed)   allows key entry to interrupt screen saver (placed off the screen)
  680. 'image control          allows for p2 option with stretch set to true for full screen size
  681. 'when compiling for the millennium set BorderStyle to 2 from 0 todo **vip**
  682.    'Load proj2
  683.    ' Always set the working directory to the directory containing the application.
  684. ' do the startup steps below
  685. '        tt1 = InputBox("doug startup test1 " + App.Path, "titlename", "Default", 4400, 4500)  'TESTING ONLY
  686.    
  687.     ChDir App.Path      'december 1 2000
  688.                        'same as "set default" on the vax
  689.    Cls         'november 7 2000
  690. 'january 31 2001
  691. 'App.StartLogging "douglog.txt", 0    'july 04 2001 see other test of startlogging
  692. 'the above did create a file so this is a start july 04 2001
  693.  
  694. 'january 31 2001
  695.   If App.PrevInstance Then
  696.       MsgBox "Already running!", _
  697.          vbOKOnly, App.EXEName & _
  698.          "Warning!"
  699.       End
  700.    End If
  701. offset1 = 4500      'april 06 2001
  702. offset2 = 5000      'april 06 2001
  703.    program_info = "Spectate Swamp Desktop Search"   '21 december 2002 (maybe Spectate Swamp)
  704.    App.Title = program_info      'january 31 2001
  705.    frmproj2.Caption = program_info + " (stonedan@telusplanet.net)" '25 november 2002
  706.    frmproj2.Show   'sdistuff
  707. '    sear1.Show      'mdistuff
  708.    'equivalent of CVT$% is Asc below
  709. '        tt1 = InputBox("Form_Initialize " + CStr(Asc("a")) + Chr(97), , , 4400, 4500) 'TESTING ONLY
  710. '        tt1 = InputBox("Form_Initialize " + App.Path, "titlename", "Default", 4400, 4500)  'TESTING ONLY
  711.  '  Cls
  712.    
  713. 'february 05 2001 comment out the next line
  714. '    Call text2_Change  ' february 01 2001
  715.    Call text2_Chg    'february 05 2001
  716.    'test the logging stuff some time later....
  717. '    Call App.StartLogging(App.Path + "\logfile.txt", 2)    'january 30 2001
  718. '    Call App.LogEvent("starting", 4)       'january 30 2001
  719. '    Call App.LogEvent(txtLog, vbLogEventTypeInformation) 'january 30 2001
  720. End Sub
  721.  
  722. Private Sub text2_Chg()
  723. 'Private Sub text2_Change   'february 01 2001
  724.    'savior version 1.0
  725.    'all unpaid copies carry a curse
  726.    '   be warned
  727.    '
  728.    ' ** set auto_redraw to "false"
  729.    '       much much faster than true
  730.    '       for Keep-it super-search anyway
  731.    '    set windowstate to 2 for maximized
  732.    'to get rid of the mini text block set the
  733.    '   left element from 402 to 600
  734.    'in the properties window for the for set the following
  735.    'height to 9000
  736.    'width to 12000
  737. '==========================================================================
  738. 'january 31 2001   see function above GetComputerName
  739.  
  740.  
  741.   lngBufSize = 255
  742.   strBuffer = String$(lngBufSize, " ")
  743.   lngStatus = GetComputerName(strBuffer, lngBufSize)
  744.   strBuffer = Left(strBuffer, lngBufSize)
  745.   If lngStatus <> 0 Then
  746. 'commented out january 31 2001 below
  747. '     MsgBox ("Computer name is: " & Left(strBuffer, lngBufSize))
  748.  End If
  749. '==========================================================================
  750. 'Code:          see function above GetUserName
  751.     ' Main routine to Dimension variables, retrieve user name
  752.     ' and display answer
  753.  
  754.                 ' Dimension variables
  755.  
  756.                 ' Get the user name minus any trailing spaces found in the name.
  757.                ret = GetUserName(lpBuff, 25)
  758.                 UserName = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
  759.  
  760.                 ' Display the User Name
  761. '                MsgBox UserName        'commeted out january 31 2001
  762. '==========================================================================
  763. '==========================================================================
  764. 'see call to GetDiskFreeSpace function above january 31 2001
  765.  
  766. 'Code:
  767.    strDrive = "C:\" 'drive letter
  768.    
  769. 'note to vb6 comment out the following code as it gets errors overflow etc...
  770. 'january 27 2002 comment it out as I am not using it anyway
  771. '    If GetDiskFreeSpace(strDrive, lngSectorsPerCluster, lngBytesPerSector, lngNumberOfFreeClusters, lngTotalNumberOfClusters) = 0 Then
  772. '        strMessage = strMessage & vbCrLf & "An error occurred."
  773. '    Else
  774. '        strMessage = strMessage & vbCrLf & "Sectors Per Cluster: " & Format$(lngSectorsPerCluster)
  775. '        strMessage = strMessage & vbCrLf & "Bytes Per Sector: " & Format$(lngBytesPerSector)
  776. '        strMessage = strMessage & vbCrLf & "Free Clusters: " & Format$(lngNumberOfFreeClusters)
  777. '        strMessage = strMessage & vbCrLf & "Total Clusters: " & Format$(lngTotalNumberOfClusters)
  778. '        lngTotalBytes = lngTotalNumberOfClusters * lngSectorsPerCluster * lngBytesPerSector
  779. '        strMessage = strMessage & vbCrLf & "Total Bytes: " & Format$(lngTotalBytes)
  780. '        lngFreeBytes = lngNumberOfFreeClusters * lngSectorsPerCluster * lngBytesPerSector
  781. '        strMessage = strMessage & vbCrLf & "Bytes Free: " & Format$(lngFreeBytes)
  782. '        strMessage = strMessage & vbCrLf & "Percent Used: " & Format$(1 - (lngFreeBytes / lngTotalBytes), "0.00%")
  783. '    End If
  784.    
  785.     If Left(strBuffer, lngBufSize) = "OEMCOMPUTER" Then
  786. '        MsgBox (strMessage)
  787.    End If                          'january 31 2001 only show it if it my laptop
  788.    strMessage = strMessage + vbCrLf + "User name=" + UserName + vbCrLf + "Computer name=" + strBuffer & vbCrLf
  789.  
  790. '30 november 2002 the stuff below for computer version
  791.   Dim tOSVer As OSVERSIONINFO
  792.    
  793.    ' First set length of OSVERSIONINFO
  794.   ' structure size
  795.   tOSVer.dwOSVersionInfoSize = Len(tOSVer)
  796.    ' Get version information
  797.   GetVersionEx tOSVer
  798.    ' Determine OS type
  799.   With tOSVer
  800.      
  801.       Select Case .dwPlatformId
  802.          Case VER_PLATFORM_WIN32_NT
  803.             ' This is an NT version (NT/2000)
  804.            ' If dwMajorVersion >= 5 then
  805.            ' the OS is Win2000
  806.            If .dwMajorVersion >= 5 Then
  807.                FFF = "Windows 2000"
  808.             Else
  809.                FFF = "Windows NT"
  810.             End If
  811.          Case Else
  812. '  Test2_str = InputBox("testing versioninfo " + CStr(.dwPlatformId) + " " + FFF, " " + CStr(zzz_cnt), , xx1, yy1) 'february 09 2001
  813.            ' This is Windows 95/98/ME
  814.            If .dwMajorVersion >= 5 Then
  815.                FFF = "Windows ME"
  816.             ElseIf .dwMajorVersion = 4 And .dwMinorVersion > 0 Then
  817.                FFF = "Windows 98"
  818.             Else
  819.                FFF = "Windows 95"
  820.             End If
  821.          End Select
  822.          ' Check for service pack
  823.         FFF = FFF & " " & Left(.szCSDVersion, _
  824.                           InStr(1, .szCSDVersion, Chr$(0)))
  825.         os_ver = FFF        '30 november 2002 I use this variable later maybe
  826.         ' Get OS version
  827.         ttt = "Version= " & .dwMajorVersion & "." & _
  828.                           .dwMinorVersion & "." & .dwBuildNumber
  829.     os_num = .dwMajorVersion & .dwPlatformId      '01 december 2002 use to determine 8, 10 or 43, 44
  830.    End With
  831. strMessage = strMessage + ttt + " len=" + CStr(Len(os_ver)) + vbCrLf
  832. strMessage = strMessage + "OS=" + os_ver  'I used this for display
  833. '        tt1 = InputBox(strMessage, "testing", , 8000, 5000)
  834.  
  835. '30 november 2002
  836. '==========================================================================
  837.  
  838.  
  839.     On Error GoTo Errors_31000
  840.     save_line = "000"           'for error handling
  841. '    Static xx1 As Integer
  842. '    Static yy1 As Integer
  843.  
  844.         '0 = black
  845.        '1 = dark blue
  846.        '2 = green
  847.        '3 = aqua
  848.        '4 = brown
  849.        '5 = purple
  850.        '6 = lime/green/brown?
  851.        '7 = grey
  852.        '8 = dark grey
  853.        '9 = blue bright
  854.        '10 = lime green bright
  855.        '11 = pale blue
  856.        '12 = red
  857.        '13 = purple light pink
  858.        '14 = yellow
  859.        '15 = white
  860. 'test some code here in this area
  861. 'temps = CallByName(wordpad, "c:\search\notes.txt", , "c:\search\notes.txt")
  862. line_20:
  863.     save_line = "20"
  864. '04 November 2003 see cmd(61) for play_speed    play_speed = 1000           '30 October set to normal speed
  865.    SAVE_ttt = "in"             'default to "c" if comming in
  866.                                'april 14/00
  867.    start_point = 0             '16 July 2003 Ver=1.07T
  868.    start_point = 10            '09 September 2003 service pack 1 needs this ????
  869.    line_start_point = 0        '19 July 2003 Ver=1.07T
  870.    line_start_point = 10       '11 March 2007
  871.    search_prompt = "in"        'april 24/00
  872.    visual_impared = "YES"      'to set up control.txt
  873.    visual_impared = "NO"       'settings for ron windels
  874.    date_check = "NO"       'do not do date check logic
  875. '    date_check = "YES"      'do date check logic
  876.    
  877.     ddemo = "YES"
  878.     ddemo = "NO"    'set to "YES" if demo "NO" if full system
  879.    If UCase(App.EXEName) = "DEMO" Then ddemo = "YES"   '08 August 2003
  880. '    control_file = "c:\control.txt" 'november 03 2000
  881.    control_file = "control.txt" 'december 03 2000
  882.    GoSub Control_28000     'assign font color etc 20/04/00
  883. '    Picture1.Left = 0       'june 17/99
  884. '   Picture1.Top = 0
  885.    save_line = "25"
  886.    OutFile = FreeFile
  887.     KEEPS1 = ""
  888.     KEEPS2 = ""
  889.     KEEPS3 = ""
  890.     KEEPS4 = ""     '09 june 2002
  891.    KEEPS5 = ""
  892.     KEEPS6 = ""
  893.         'tell them where this program comes from
  894.        SSS = Format(Now, "ddddd ttttt")    'todays date
  895.        temp1 = InStr(2, SSS, "/1/")
  896.         vvversion = "Version September 1/00"
  897.         vvversion = "Version September 5/00"  'extended control.txt to 40 from 20
  898.        vvversion = "Version September 8/00"  'line wrap control.txt element 21 to 40 from 82 etc
  899.        vvversion = "Version September 10/00" 'context lines 10 or 5 etc
  900.                                       'added the B for back option
  901.        vvversion = "Version October 4/00" 'noshow and others added
  902.        vvversion = "Version October 9/00" 'p for previous picture allowed
  903.        vvversion = "Version October 13/00" 'restricted demo version and date check back in
  904.        vvversion = "Version October 19/00" 'don't load the clipboard and make sure search selection has at least 3 of the same chrs
  905.        vvversion = "Version October 21/00" 'Quickie search if Q entered no context display and skip if no match
  906.        vvversion = "version October 23/00" 'quickie fixes and security completed next audio
  907.        vvversion = "Version October 26/00" 'no start character required and unload form3 at end automatically no close required
  908.        vvversion = "Version October 27/00" 'allow for "A" for all at next photo prompt
  909.        vvversion = "Version October 29/00" 'finish with line wrap fixes context data and match line fixed finally
  910.        vvversion = "Version November 3/00" 'allow for ccc to select control1.txt for larger fonts etc
  911.                                            'allow for auto setting of c and p1 depending if xxx. found in first 10 lines
  912.                                            'allow for any file selection to reset as if first time in for defaults etc
  913.        vvversion = "Version November 12/00" 'allow for extract of printed data to file
  914.        vvversion = "Version November 13/00" 'make rrr case sensitive and allow or name as of files
  915.        vvversion = "Version November 14/00" 'allow for "F" at do you want to continue
  916.                                             'as well change the xxx to be entered at the option entry
  917.        vvversion = "Version November 22/00" 'changes to allow for multiples on a line to be displayed ie telusplanet.net
  918.                                             ' both the net's will show on a "net" search
  919.        vvversion = "Version November 29/00" 'minor bug fix to the rrr routine
  920.        vvversion = "Version December 2/00"  'allow for QQQ at the option level same as RRR but
  921.                                             'used to fix From: Subject: in mail messages removes crlf at end
  922.                                             'and pastes the next line on to the end Date: Organization: To: done too
  923.        vvversion = "Version December 3/00"  'use default directory App.Path wherever the program exists look for control.txt etc.
  924.        vvversion = "Version December 5/00"  'do display of multiples on a line minor change
  925.        vvversion = "Version December 6/00"  'allow for LL linelength to be input and for showpos options
  926.                                             'the showpos shows the line length at the wrap just in case more problems crop up
  927.        vvversion = "Version December 7/00"  'allow for Cmd(33) to be search default ie "D" for me and use the inputbox prompt field
  928.                                             'do the changes to get rid of the max and min border set borderstyle to 0 from 2 and max and min to false
  929.        vvversion = "Version December 8/00"  'change option S to work like option Q quickie search but not to be case sensitive. it takes 2 as long as Q not 4 times as long now
  930.        'allow for X or E to exit if element 30 set to "N" and make files case insensitive?
  931.        vvversion = "Version December 10/00" 'reget defaults once file is selected a second time
  932.        vvversion = "Version December 11/00" 'Allow for showasc at the option level to show the last 4 characters ascii value.
  933.                                             'Allow for email prompt at the option level to read thru and display email records without the junk
  934.        vvversion = "Version December 20/00" 'minor changes to fix the netscape extract etc
  935.        vvversion = "Version December 22/00" 'allow for "A" for all when using the "Q" search
  936.        vvversion = "Version December 23/00" 'a few fix ups for the imported outlook express into netscape 6.0
  937.        vvversion = "Version December 24/00" 'new option of "IMPORT" if the file is email and import entered
  938.        vvversion = "Version December 27/00" 'if CH was selected the option prompt was getting in the way the second time around
  939.                                             'the AppActivate fixed the problem though
  940.        vvversion = "Version December 28/00" 'did some clean up on the search selection no longer allow the number of characters to select previous searches
  941.                                             'minor fix to the "." at the b for back prompt cleared SSS2 and SSS3 etc
  942.        vvversion = "Version December 31/00" 'minor fix re short lines with odd characters and boundarystr reset to ""2
  943.                                             'new option "R" extract skip page_prompt AND set to "Q" search
  944.                                             'as long as everything is being extracted then don't stop at number of lines per screen Cmd(1)
  945.                                             'new option "D" extract skip page_prompt and set to "C" with MAX_CNT = 5 Context_lines = 2
  946.        vvversion = "Version January 01/01"  'new option "T" just like D and R above
  947.                                             'use element Cmd(34) for the context_win default to 3 if not there
  948.        vvversion = "Version January 02/01"  'final counts for tot_s1 tot_s2 tot_s3 now tested and seem to work ok
  949.        vvversion = "Version January 03/01"  'noshow for text display will replace the string with **** as censorship
  950.                                             'the 03a version changes made to allow elements to be hilited after the "A" is entered.
  951.                                             'the very first one on a line was what was happening and this was the fix
  952.        vvversion = "Version January 04/01"  'fix for multiple no-show elements and a 04a fix to show the last elements
  953.                                             'which were sometimes missed.
  954.                                             '04b changes to allow for the "B" back to retain the hiliting capabilities
  955.        vvversion = "Version January 05/01"  'remove reference to Cmd(13) back_cnt and Cmd(19) for re-use
  956.                                             'fixed the "D" date display by searching for "M" as both AM and PM have it..
  957.                                             'if "." default to last search any other chr back to beginning and new search entry.
  958.        vvversion = "Version January 06/01"  'skip duplicate code at line_12004b thru line_12005m as not required, moved some noshow logic
  959.                                             'do not include the counts for hilite_this or "append start" or "append end"
  960.        vvversion = "Version January 08/01"  'fix the logic for wrap_cnt somewhat so the V & B for back work a little better (still not completely checked out)
  961.        vvversion = "Version January 09/01"  'add the "crop" option to shorten very long lines that cause wraping problems
  962.        vvversion = "Version January 10/01"  'allow for the over_lap element 13 on the crop and the wrap function later.
  963.        vvversion = "Version January 19/01"  'the wrap array logic mostly complete with code bypassing this till the 12000 routine completed.
  964.        vvversion = "Version January 20/01"  'the new wrap array and hi-lite logic testing being done
  965.        vvversion = "Version January 21/01"  'add in logic to print last "endstuff" if A for All and wrap info unprinted
  966.        vvversion = "Version January 22/01"  'removed the old hi-lite wrap logic at sub_12000:
  967.        vvversion = "Version January 24/01"  'minor fix to hi-lite elements that wrap on to next page...
  968.        vvversion = "Jan 25/01"  'change the A for append for Z to paste at the end of the file (confused with a for all)
  969.        vvversion = "Jan 27/01"  'fix to skip the noshow elements if SS screen saver
  970.        vvversion = "Jan 28/01"  'use tot_s1 to count the number of emails on the import function
  971.        vvversion = "Jan 31/01"  'check if app is running and set App.Title to Keep-It
  972.        vvversion = "Feb 01/01"  'check for computer name mine and ken's and anyone else
  973.        vvversion = "Feb 06/01"  'allow the esc to stop the screen saver leave in old logic for any other key though
  974.        vvversion = "Feb 09/01"  'if interrupted allow for them to continue
  975.        vvversion = "Feb 16/01"  'add the date and time on the file prompt line
  976.        vvversion = "Mar 01/01"  'allow for "A" for all to be entered at the interrupt prompt
  977.    'Feb 19/01 display the file name in each of the prompt boxes
  978.    'feb 20/01 setfocus to solve the problem of the interrupt not working after "CH" called then F or SS done
  979.    'feb 21/01 add image control set the stretch property to true (for full screen display)
  980.    'feb 25/01 add check for only "CH" when using setfocus as it seems to screw up other functions?
  981.    'feb 28/01 check for bounary=""" as it crapped out when wrong boundary found
  982.    'Mar 14/01 allow for WAIT= to pause line longer ie wait 30 etc fix the timer error at line_30000: area
  983.    'Mar 15/01 allow for SC screen capture to pause before the inputbox statements so that the displayed info can be capured using alt/print screen
  984.    'Mar 17/01 allow for CP copy picture to a directory in Cmd(23) element
  985.    'Mar 21/01 add in a was=scn0321.jpg to the text on a CP so we know the original number & date
  986.    'Mar 31/01 set the P1 as the stretch default and P2 non stretched (they will have to user P2 for sizing original scans)
  987.    'Apr 01/01 the GF get file routine to catalogue any pictures in the target directory
  988.    'Apr 05/01 allow for keeping the same name if no leading didgits entered.
  989.    'Apr 06/01 allow for 5000 folders when using the gf option
  990.    'Apr 08/01 allow for c:\search\tempfold\ to keep the original name on file copy
  991.    'Apr 10/01 allow for HL and HLL to use the append_start1 and append_end1 elements hilite_this could also be used???
  992.    'allow for uppercase on all 3 of them working well so far
  993.    'Apr 11/01 allow for c:\* to do the whole c drive and * FOR file type
  994.    'and put out the date if dirdates entered
  995.    'Apr 22/01 allow for hhxxx. to display pictures at the end of screen promopt
  996.    ' by putting in a HH when some hilited.
  997.    'may 06 2001 on interrupt of screen saver switch into photo display p1
  998.    ' allowing the user to do a "P" to see one of the various previous pictures
  999.    ' as well at the photo continue prompt allow "SS" to continue screen saver
  1000.    ' with the previous screen saver settings
  1001.     '   vvversion = "May 06/01"  'this is the date of the compile only, just for the users info
  1002.    'vvversion = 28 april 2002   add in the ww like ss with anded search criteria
  1003.        
  1004.         'ver=1.04       added the ability to clear date to left by removing 1 character at a time and
  1005.        '               re-displaying what is left (looks like motion)
  1006.        vvversion = "19 February 2008 1.50"  'this is the date of the compile only, just for the users info
  1007. 'look for "check the latest features above" where to add new features to help file
  1008.  
  1009.         If temp1 <> 0 And ddemo = "YES" Then
  1010.         Print vvversion; " of " + program_info
  1011.  '      Print "check web site: http://www.telusplanet.net/public/stonedan"
  1012.        Print "e-mail Doug Pederson stonedan@telusplanet.net"
  1013.         Print "for newer versions with more options"
  1014.         Print "shareware"
  1015.         Print "this info only displays on the first of month"
  1016.         Print "Enter to continue"
  1017.         tt1 = InputBox("Enter to continue", "Continue Prompt", , xx1 - offset1, yy1 - offset2)
  1018.         End If              'year must be 2000
  1019.  
  1020. '   do not allow use if date past best before date???
  1021. '        Print "UserName="; UserName; "="
  1022. '        tt1 = InputBox("testing prompt", , , 4400, 4500)  'TESTING ONLY
  1023.        If strBuffer <> "STONEMAN" Then GoTo line_30    'vip todo comment out to activate
  1024.        If strBuffer = "STONEMAN" Then GoTo line_30     'february 01 2001
  1025.        If UserName = "stoneman" Then GoTo line_30
  1026.         If UCase(UserName) = "KENNETH" Then GoTo line_30    'february 02 2001
  1027.        If UCase(UserName) = "KEN M" Then GoTo line_30    'february 02 2001
  1028.        If strBuffer = "KEN" Then GoTo line_30          'february 02 2001
  1029.        MsgBox strBuffer + "=invalid computer " + UserName + "=username"
  1030.        
  1031.         GoTo End_32000                                  'february 01 2001
  1032. line_30:
  1033.         If date_check <> "YES" Then
  1034.             GoTo File_40    'no date check if disabled
  1035.        End If        'october 27 2000
  1036.        If ddemo = "YES" Then
  1037.             GoTo File_40    'no date check on demo version
  1038.        End If              'as it is restricted enough
  1039. 'date check should be good till end of march 2001
  1040.        SSS = Format(Now, "ddddd ttttt")    'display today
  1041.        temp2 = InStr(SSS, "/")
  1042.         temp1 = InStr(temp2 + 1, SSS, "/00")
  1043. '        Print "invalid date="; SSS; "="
  1044. '        tt1 = InputBox("year not /00", , , 4400, 4500)  'TESTING ONLY
  1045.        If temp1 = 0 Then
  1046.             temp1 = InStr(temp2 + 1, SSS, "/2000")
  1047.         End If
  1048.         If temp1 = 0 Then
  1049.             temp1 = InStr(temp2 + 1, SSS, "/01")
  1050.         End If
  1051.         If temp1 = 0 Then
  1052.             temp1 = InStr(temp2 + 1, SSS, "/2001")
  1053.         End If
  1054. 'to activate for windows 2000 need a proper date check here as with ME above
  1055.        If temp1 = 0 Then
  1056.         Print "invalid date="; SSS; "="
  1057.         tt1 = InputBox("year not /00 or /01", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  1058.            GoTo End_32000
  1059.         End If              'year must be 2000
  1060. line_35:
  1061.         If Left(SSS, 1) = " " Then
  1062.            SSS = Right(SSS, Len(SSS) - 1)
  1063.             GoTo line_35
  1064.         End If
  1065.         If Left(SSS, 3) <> "10/" And Left(SSS, 3) <> "11/" _
  1066.             And Left(SSS, 3) <> "12/" And Left(SSS, 2) <> "1/" _
  1067.             And Left(SSS, 2) <> "2/" And Left(SSS, 2) <> "3/" Then
  1068. '             Then
  1069.        Print "software expired="; SSS; "="
  1070.         tt1 = InputBox("e-mail stonedan@telusplanet.net", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  1071.            GoTo End_32000
  1072.         End If              'must be march also
  1073.    screen_capture = "NO"           'march 15 2001
  1074.  
  1075. File_40:
  1076.  
  1077.     save_line = "40"
  1078.     Close #ExtFile          'march 18 2001
  1079.    copy_photo = "NO"       'march 18 2001
  1080.  
  1081. '09 december 2002    rand = 0                '18 august 2002
  1082.    text_pause = 0          '05 october 2002
  1083.    debug_photo = False     '12 october 2002
  1084. '    debug_photo = True     '01 february 2003 09 september 2003
  1085.    tt1 = ""
  1086.     encript = ""
  1087.     prev_option = ""
  1088.     If extract_yes = "YES" Then
  1089.         Close #ExtFile
  1090.         line_len = Val(Cmd(21))
  1091.     End If          'november 12 2000
  1092.    tot_s1 = 0      'january 01 2001
  1093.    tot_s2 = 0      'january 01 2001
  1094.    tot_s3 = 0      'january 01 2001
  1095.    tot_s4 = 0      '23 june 2002
  1096.    tot_s5 = 0      '23 june 2002
  1097.    tot_s6 = 0
  1098.     extract_yes = ""    'november 12 2000
  1099.    skip_info = ""      'november 14 2000
  1100. '    img_ctrl = "NO"           'february 21 2001
  1101.    img_ctrl = "YES"           'march 31 2001
  1102.    stretch_img = "YES"         'march 31 2001
  1103. '22 december 2002
  1104. '    If UCase(Cmd(38)) = "STRETCH" Then
  1105. '        stretch_info = " (STRETCH)" '21 december 2002
  1106. '    Else
  1107. '        stretch_info = " (NORMAL)"
  1108. '    End If
  1109.    dbltime1 = 0
  1110.     dbltime2 = 0
  1111. line_45:            'december 3 2000
  1112.    boundarycnt = 0     'december 31 2000
  1113.    boundarystr = ""    'december 31 2000
  1114.    mbxyes = ""         'december 17 2000
  1115.    dateskip = "F"      'december 23 2000
  1116.    GoSub InputFile_24000       'march 20/00
  1117. '        Print "tt1 SAVE_ttt="; tt1; "="; SAVE_ttt
  1118. '        ttt = InputBox("testing file_40", , , 4400, 4500)  'TESTING ONLY
  1119.    
  1120.     If tt1 = "" Then
  1121.         GoTo End_32000
  1122.     End If
  1123.     append_start1 = "append start"   'april 10 2001
  1124.    append_end1 = "append end"       'april 10 2001
  1125.    mbxi = 0            'december 17 2000
  1126.    emailsea = ""       'december 11 2000
  1127.    SAVE_ttt = "in"     'december 10 2000
  1128.    GoSub Control_28000 'december 10 2000
  1129.    extract_yes = ""        'december 31 2000
  1130.    photo_cnt = 0           'march 17 2001
  1131.    dirdates = ""           'april 11 2001
  1132.    hilite_hh = ""          'april 22 2001
  1133.    hilite_cnt = 0          'april 22 2001
  1134.    If rand = -1 Then           '09 december 2002
  1135.        Randomize      'use system timer to start randomizer
  1136.        cnt = 99999999
  1137.         GoSub line_30920
  1138. '        rand_cnt = zzz_cnt - 3 'keep the total number of records in file
  1139.        rand_cnt = zzz_cnt - 6 'keep the total number of records in file 28 april 2003 (this fixed it) ver=1.04a
  1140.                                'seems to loop if it hits end of file
  1141.                                'Hint: (place 6 blank lines at end of file
  1142.                                'so last 3 pictures can be seen in random mode.
  1143.        zzz_cnt = 0
  1144. '        xtemp = InputBox(" testing doug  " + CStr(rand_cnt), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  1145.        rand_no = Int(rand_cnt * Rnd + 1)   'this line moves to after hits or misses
  1146.    End If                      '09 december 2002
  1147. What_50:
  1148.  
  1149.     save_line = "50"    'for error handling
  1150.    pp_entered = ""     'november 6 2000
  1151.        SSS = Format(Now, "ddddd ttttt")    'display today
  1152. 'deactivate the date check below have the program work for ever
  1153.  
  1154.     DoEvents
  1155. '    Err.Raise 6       'test this to give error info
  1156.                        ' works for all error numbers
  1157. '   Beep        'test the beep bell
  1158.  
  1159.     prompt2 = ""
  1160.     ppoffset1 = 0       '27 july 2002
  1161.    ppoffset2 = 0       '27 july 2002
  1162.    'find out what can be called of use **vip** todo
  1163.    'test area for ggg = GetSetting("?","*")
  1164. '    ggg = GetSetting("RegCust", "Startup", "LastEntry", "0")
  1165. '        Print "ggg="; ggg; "="
  1166. '        tt1 = InputBox("testing What_50", , , 4400, 4500)  'TESTING ONLY
  1167. '    save_line = "50 testing"    'testing only
  1168. '   ggg = LoadResData("C:|Program Files\Plus!\Themes\UNDERW~5.WAV", 6)
  1169.  
  1170.    
  1171.    
  1172. '        Print "ggg="; ggg; "="
  1173. '        tt1 = InputBox("testing What_50", , , 4400, 4500)  'TESTING ONLY
  1174.  
  1175. '*********************************************************
  1176. 'main option entry here entry option prompt
  1177. '*********************************************************
  1178. '10 august 2002 allow for different keep options for photo file and text files
  1179.    If xxx_found = "YES" Then
  1180.         Cmd(20) = Cmd(41)
  1181.         Cmd(33) = "PHOTO"
  1182. '        tt1 = InputBox("testing 01 January 2005", , , 4400, 4500)  'TESTING ONLY
  1183.    End If
  1184.     If xxx_found = "NO" Then
  1185.         Cmd(20) = Cmd(42)
  1186.         Cmd(33) = "D"
  1187.     End If
  1188.    
  1189. '10 august 2002 use the cmd(20) and over-ride with above
  1190.  
  1191. '    If xxx_found = "NO" And UCase(Cmd(20)) <> "Q" Then
  1192. '        Cmd(20) = "C"
  1193. '        Cmd(33) = "D"
  1194. '    End If              'november 3 2000
  1195. '    If xxx_found = "YES" Then
  1196. '        Cmd(20) = "P"
  1197. '        Cmd(33) = "PHOTO"       'december 18 2000
  1198. '    End If              'november 3 2000
  1199. '10 august 2002 comment out the above logic
  1200.  
  1201.     iimport = ""        'december 24 2000
  1202.    If InStr(UCase(TheFile), "\MAIL\") <> 0 And SAVE_ttt = "in" Then Cmd(20) = "email" 'december 12 2000
  1203.    If InStr(UCase(TheFile), "\OUTLOOK EXPRESS\") <> 0 And SAVE_ttt = "in" Then Cmd(20) = "email" 'december 13 2000
  1204.    Set Picture = LoadPicture()     'lp#1
  1205.    page_prompt = ""        'december 31 2000
  1206.    MAX_CNT = Val(Cmd(1))        'december 31 2000
  1207.    Context_lines = Val(Cmd(22)) 'december 31 2000
  1208.    If Context_lines > 40 Then Context_lines = 40  'February 04 2001
  1209.    mess_cnt = 0                'january 03 2001
  1210.    array_pos = 0               'january 21 2001
  1211.    array_prt = 0
  1212.     temp_sec = -1               'march 14 2001
  1213. ' WinSeek.Show           'february 26 2001
  1214. ' WinSeek.SetFocus
  1215.    'february 26 2001
  1216. '    frmOption1.Caption = "Option prompt"    'february 26 2001
  1217. '    MDIOption1.Show      'february 26 2001
  1218. '    xtemp = InputBox("testing prompt_ after option1 show=" + TheFile + "*" + UCase(xtemp) + "*" + CStr(wrap_cnt) + " " + CStr(cnt), "test", , 4400, 4500) '
  1219. '    SetFocus           'february 26 2001
  1220. '    Unload frmOption1   'february 26 2001
  1221.    If screen_capture = "YES" Then
  1222.             new_delay_sec = 5           '03 September 2004
  1223.            GoSub line_30300            '03 September 2004
  1224. '        delay_sec = 5      'march 15 2001
  1225. '        GoSub line_30000
  1226.    End If
  1227.     dsp_cnt = 0            'may 12 2001
  1228.    dbltime2 = Timer      'get the end time may 12 2001
  1229.    Test1_str = ""
  1230.     If dbltime1 <> 0 And dbltime1 <> dbltime2 Then
  1231.         Test1_str = "  elap=" + Format(dbltime2 - dbltime1, "#####0.000")
  1232.     End If      'show elapsed times may 12 2001
  1233.    multi_prompt2 = ""  '04 September 2004
  1234. Get_no2:                'march 21 2002
  1235.    interrupt_prompt2 = ""  '12 April 2008
  1236.    search_str = ""         '26 august 2002
  1237.  
  1238. '        xtemp = InputBox(" input prompt #2 multi_prompt2 " + multi_prompt2 + "*" + ttt, " testing Prompt #2   ", , xx1 - offset1, yy1 - offset2)
  1239.    If Cmd(20) = "Y" And SAVE_ttt <> "in" Then Cmd(20) = "" '15 december 2004
  1240.    If Len(multi_prompt2) > 0 Then
  1241.         temp1 = InStr(1, multi_prompt2, sep)
  1242.         If temp1 <> 0 Then
  1243.             ttt = Left(multi_prompt2, temp1 - 1)
  1244.             multi_prompt2 = Right(multi_prompt2, Len(multi_prompt2) - temp1)
  1245. '            xtemp = InputBox(" input prompt #2* multi_prompt2 " + multi_prompt2 + "*" + ttt, " testing Prompt #2*   ", , xx1 - offset1, yy1 - offset2)
  1246.        Else
  1247.             ttt = multi_prompt2
  1248.             multi_prompt2 = ""
  1249. '            xtemp = InputBox(" input prompt #2** multi_prompt2 =" + multi_prompt2 + "*" + ttt, " testing Prompt #2**   ", , xx1 - offset1, yy1 - offset2)
  1250. '           Cmd(20) = ""    '05 September 2004
  1251.        End If
  1252.         GoTo auto_p2        '04 September 2004
  1253.    
  1254.     End If                  '04 September 2004      allow for multiple inputs at a time
  1255.  
  1256. '        xtemp = InputBox(" input prompt #2 test " + auto_exe + "*", " testing Prompt #2   ", , xx1 - offset1, yy1 - offset2)
  1257. '12 September 2004    If UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\" Then
  1258. '    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  1259.    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.EXEName), "BACKGRD") <> 0 Then
  1260.         ttt = RTrim(Cmd(47))       'the search options entered here for now use "WW"
  1261.        'want to make it so multiple prompts can be done todo **vip**
  1262. '            xtemp = InputBox(" backgrd test2", " testing Prompt #2*   ", , xx1 - offset1, yy1 - offset2)
  1263.        If debug_photo Then     '12 october 2002
  1264.            xtemp = InputBox("DOUG TESTING AUTO PROMPT #2" + ttt, , , 4400, 4500) 'TESTING ONLY
  1265.        End If
  1266.         GoTo auto_p2
  1267.     End If                  '07 december 2002
  1268.    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then        '27 October 2004
  1269.            ttt = Right(Cmd(71), Len(Cmd(71)) - 11)
  1270. '            xtemp = InputBox("27 october 2004 TESTING 1 =" + ttt, , , 4400, 4500) 'TESTING ONLY
  1271.            BatchFile = FreeFile
  1272.             Open ttt For Input As #BatchFile
  1273.             DoEvents
  1274.            
  1275.         ttt = "RRR"                 'testing only re the close of the file etc...
  1276.        Line Input #BatchFile, ttt
  1277. '            xtemp = InputBox("27 october 2004 TESTING 1a =" + ttt, , , 4400, 4500) 'TESTING ONLY
  1278. '    interrupt_prompt2 = UCase(ttt) '20 November 2004
  1279.        GoTo auto_p2
  1280.     End If                                                  '27 October 2004
  1281. '19 august 2003 the following line deactivated. If xxx. not found then disable random. We want it random here
  1282. '19 August 2003    If xxx_found = "NO" Then rand = 0 '19 january 2003
  1283.                        'the above can be over-ridden below
  1284.  
  1285.    ttt = InputBox("P P1 P2 TT WW SS CH X RAND NORAND RANDA NORANDA THUMB HELP option ", "Option Prompt #2  " + TheFile + Test1_str, UCase(Cmd(20)), xx1 - offset1, yy1 - offset2)
  1286.  
  1287. '    frmproj2.BorderStyle = "0"            '25 november 2002
  1288. '    frmproj2.BorderStyle = "0"            '25 november 2002
  1289. '10 august 2002 allow for cmd(41) and cmd(42) to override
  1290. '    interrupt_prompt2 = UCase(ttt) '20 November 2004
  1291. auto_p2:                    '07 december 2002
  1292.    ttt = UCase(ttt)        '07 december 2002
  1293.    If inin = "" Then
  1294.         start_point = 0  '21 February 2007
  1295.        start_point = 10 '11 March 2007
  1296.        line_start_point = start_point  '21 February 2007
  1297.    End If              '21 February 2007
  1298. '04 September 2004 below
  1299.    If InStr(1, ttt, sep) <> 0 Then
  1300.         temp1 = InStr(1, ttt, sep)
  1301.         multi_prompt2 = Right(ttt, Len(ttt) - temp1)
  1302.         ttt = Left(ttt, temp1 - 1)
  1303. '        xtemp = InputBox(" input prompt #2a multi_prompt2 " + multi_prompt2 + "*" + ttt, " testing Prompt #2a   ", , xx1 - offset1, yy1 - offset2)
  1304.    End If                  '04 September 2004
  1305.    If Left(ttt, 6) = "SPEED=" Then
  1306.         play_speed = Val(Right(ttt, Len(ttt) - 6))
  1307.         GoTo Get_no2
  1308.     End If                      '29 October 2003 testing this a bit
  1309.    
  1310.     p2p2 = UCase(ttt)       '10 august 2002
  1311.    If ttt = "SS" And ss_only <> "YES" Then
  1312.         ss_only = "YES"
  1313.         GoTo Do_Search_110
  1314.     End If                  '07 december 2002
  1315.    If p2p2 = "DEBPHO" Then
  1316.         debug_photo = True
  1317.         GoTo Get_no2
  1318.     End If                  '12 october 2002 allow for debug of photo problems
  1319.    
  1320. '16 July 2003 testing only below
  1321.    If Left(p2p2, 7) = "START==" Then
  1322.         start_point = Val(Right(p2p2, Len(p2p2) - 7))
  1323.         line_start_point = start_point  '22 March 2004
  1324.        GoTo Get_no2
  1325.     End If                  '16 July 2003 Ver=1.07T testing the start point
  1326.    
  1327.     If Left(p2p2, 4) = "ELAP" Then
  1328.         elapse_yn = "YES"         '13 July 2003
  1329.        GoTo Get_no2
  1330.     End If                      '13 July 2003
  1331.    If p2p2 = "PAUSE" Or p2p2 = "PA" Then
  1332.         text_pause = True
  1333.         extract_yes = "NO"      'do not want these two taking up disc space
  1334.        auto_redraw = "NO"
  1335.         frmproj2.AutoRedraw = False
  1336.         inin = ""
  1337.         GoTo Get_no2
  1338.     End If                  '05 october 2002
  1339.    If p2p2 = "RAND" Then
  1340.         rand = -1
  1341.         Randomize      'use system timer to start randomizer
  1342.        cnt = 99999999
  1343.         GoSub line_30920
  1344.         rand_cnt = zzz_cnt - 3 'keep the total number of records in file
  1345.                                'seems to loop if it hits end of file
  1346.        zzz_cnt = 0
  1347. '        xtemp = InputBox(" testing doug  " + CStr(rand_cnt), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  1348.        rand_no = Int(rand_cnt * Rnd + 1)   'this line moves to after hits or misses
  1349. '        If rand Then
  1350. '            xtemp = InputBox(" testing doug randomiser rnd  " + CStr(rand_no), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  1351. '        End If
  1352.            GoSub Control_28000
  1353. '22 december 2002
  1354.            Cmd(49) = "RANDOM"          '09 December 2002
  1355. '            random_info = " (RANDOM)"     '21 december 2002
  1356.            GoSub line_30800    'kill and update the control file
  1357.            frmproj2.Caption = program_info + random_info + stretch_info '09 december 2002
  1358.        GoTo Get_no2
  1359.     End If                  '18 august 2002
  1360.    If p2p2 = "NORAND" Then
  1361.             rand = 0
  1362.             GoSub Control_28000
  1363.             Cmd(49) = "NORANDOM"    '09 december 2002
  1364. '22 december 2002
  1365. '            random_info = ""        '21 december 2002
  1366.            GoSub line_30800    'kill and update the control file
  1367.            frmproj2.Caption = program_info + stretch_info '09 december 2002
  1368.        GoTo Get_no2
  1369.     End If              '09 december 2002
  1370.    
  1371.     If p2p2 = "DETAIL" Then
  1372.             GoSub Control_28000
  1373.             Cmd(56) = "PHOTO_DETAIL"    '18 November 2004
  1374.            GoSub line_30800    'kill and update the control file
  1375.            detailyn = "PHOTO_DETAIL"    '18 November 2004
  1376.        GoTo Get_no2
  1377.     End If              '18 November 2004
  1378.    
  1379.     If p2p2 = "NODETAIL" Then
  1380.             GoSub Control_28000
  1381.             Cmd(56) = "noPHOTO_DETAIL"    '18 November 2004
  1382.            GoSub line_30800    'kill and update the control file
  1383.            detailyn = "noPHOTO_DETAIL"    '18 November 2004
  1384.        GoTo Get_no2
  1385.     End If              '18 November 2004
  1386.    
  1387.  
  1388.     If Left(p2p2, 4) = "THUM" Then
  1389.         thumb_nail = "YES"          '16 July 2003 ver=1.07T
  1390.        GoSub Control_28000
  1391.         Cmd(67) = "THUMB"           '14 April 2004
  1392.        GoSub line_30800
  1393.         GoTo Get_no2
  1394.     End If
  1395.  
  1396.     If Left(p2p2, 6) = "NOTHUM" Then
  1397.         thumb_nail = "NO"
  1398.         GoSub Control_28000
  1399.         Cmd(67) = "noTHUMB"           '14 April 2004
  1400.        GoSub line_30800
  1401.         GoTo Get_no2
  1402.     End If
  1403.  
  1404. '23 March 2004
  1405.    If p2p2 = "RANDA" Then
  1406.         rand1 = -1
  1407.         Randomize
  1408.         GoSub Control_28000
  1409.         Cmd(65) = "RANDBEG"
  1410.         GoSub line_30800
  1411.         GoTo Get_no2
  1412.     End If
  1413.    
  1414.     If p2p2 = "NORANDA" Then
  1415.         rand1 = 0
  1416.         GoSub Control_28000
  1417.         Cmd(65) = "noRANDBEG"
  1418.         GoSub line_30800
  1419.         GoTo Get_no2
  1420.     End If                  '23 March 2004 add random start point in video
  1421.    
  1422.    
  1423.     If p2p2 = "NOVIDEO" Then
  1424.             GoSub Control_28000
  1425.             Cmd(53) = "NOSHOWVIDEO"    '10 FEBRUARY 2003
  1426.            GoSub line_30800    'kill and update the control file
  1427.            videoyn = "NOSHOWVIDEO"
  1428.         GoTo Get_no2
  1429.     End If              '10 FEBRUARY 2003
  1430.    
  1431.     If p2p2 = "VIDEO" Then
  1432.             GoSub Control_28000
  1433.             Cmd(53) = "SHOWVIDEO"    '10 FEBRUARY 2003
  1434.            GoSub line_30800    'kill and update the control file
  1435.            videoyn = "SHOWVIDEO"
  1436.         GoTo Get_no2
  1437.     End If              '10 FEBRUARY 2003
  1438.    
  1439.     '05 december 2002 If p2p2 = "P1" Or p2p2 = "P2" Or p2p2 = "WW" Or p2p2 = "SS" Then
  1440. 'midway thru the program appx
  1441.    
  1442.     If p2p2 = "P" Or p2p2 = "WW" Or p2p2 = "SS" Then
  1443.         If Cmd(41) <> p2p2 Then
  1444.             GoSub Control_28000
  1445.             Cmd(41) = p2p2
  1446.             GoSub line_30800    'kill and update the control file
  1447.        End If
  1448.     End If                  '10 august 2002
  1449.    
  1450. '15 December 2004     If p2p2 = "C" Or p2p2 = "S" Or p2p2 = "Q" Or p2p2 = "CC" Then
  1451.    If p2p2 = "C" Or p2p2 = "S" Or p2p2 = "Q" Or p2p2 = "CC" Or p2p2 = "Y" Then
  1452.         If Cmd(42) <> p2p2 Then
  1453.             GoSub Control_28000
  1454.             Cmd(42) = p2p2
  1455.             GoSub line_30800    'kill and update the control file
  1456.        End If
  1457.     End If                  '10 august 2002
  1458.    If p2p2 = "CC" Then
  1459.         search_str = "CC"   '26 august 2002
  1460.        p2p2 = "S"
  1461.         prompt2 = "S"
  1462.         ttt = "S"
  1463.     End If
  1464.    
  1465.     dbltime2 = Timer  'may 12 2001
  1466.    dbltime1 = Timer    'Get the start time may 12 2001
  1467.    prev_ttt = ttt      'april 10 2001
  1468.    If UCase(ttt) = "Z" Then prev_option = ""   'february 25 2001
  1469.    If prev_option = "CH" Then
  1470.         SetFocus            'this solved the problem of the esc / enter not interrupting
  1471.    End If
  1472.                             'the program once the "CH" option was done february 20 2001
  1473. line_60:            'february 09 2001
  1474.    tt1 = ttt           'november 14 2000
  1475.    ttt = UCase(ttt)    'all to upper case june 14/99
  1476.    If ttt = "M" Then
  1477.         frmproj2.WindowState = 1    '0=normal 1 = min 2 = max
  1478.        'when I used co-ordinates of 40000 , 40000 below the input box failed and
  1479.        'it skipped immediately to the get_no2 prompt what the hey
  1480.        ttt = InputBox(" window state prompt", "minimized  ", "WHAT", 20000, 20000)
  1481.         frmproj2.WindowState = 2    '
  1482.        GoTo Get_no2
  1483.     End If              'march 21 2002
  1484. ' "Y" for yesterday display in text file december 09 2001
  1485. ' read till end of file then do similar to the "B" option
  1486.        If ttt = "Y" Then
  1487.             save_line = "65"
  1488.             OutFile = FreeFile
  1489.             Open TheFile For Input As #OutFile
  1490.             DoEvents       'yield to operating system
  1491.            dblStart = Timer    'get the start time
  1492.  
  1493. line_65:
  1494.             Line Input #OutFile, aaa
  1495.             zzz_cnt = zzz_cnt + 1
  1496.             GoTo line_65
  1497.         End If
  1498.  
  1499.     If ttt = "HELP" Then
  1500.         rand = 0        '10 december 2002
  1501.        Close #OutFile
  1502.         DoEvents
  1503.         DoEvents
  1504.         GoSub line_30900
  1505.         Close #OutFile
  1506.         DoEvents
  1507.         OutFile = FreeFile
  1508.         Open "help.txt" For Input As #OutFile
  1509.         DoEvents
  1510.         prompt2 = "C"
  1511.         printed_cnt = 1 'otherwise the "reading 1" shows up on screen
  1512.        inin = "A"    'forces all data to be displayed
  1513.        SSS1 = ""       'when set to "A" only lines with "A" in displayed
  1514.        SAVE_KEEPS1 = "=="        'the search match is an and (just use one at a time)
  1515.        SAVE_KEEPS2 = "CMD("                '**vip** the search here must be in all capitals
  1516.        SAVE_KEEPS3 = ") "            'use this for some other display all caps
  1517.        SAVE_KEEPS4 = ""        '09 JUNE 2002
  1518.        SAVE_KEEPS5 = ""
  1519.         SAVE_KEEPS6 = ""
  1520.         SAVE_ttt = "C"      'this ensures it is "C" context display
  1521.        Picture_Search = ""     'this one was important in making the help work
  1522.        hi_lites = "YES"
  1523.         Cls             'clear the screen
  1524. ' can not seem to get this routine to display the hilites on the second pass
  1525. ' after a photo has been displayed and the option prompt "help" request
  1526. ' not a big deal but just having no luck today october 22 2001
  1527. '        SSS = SAVE_KEEPS1 + sep + SAVE_KEEPS2 + sep + SAVE_KEEPS3
  1528. '       xtemp = InputBox("DOUG 1 TESTING SSS1 SSS2 SSS3" + SSS1 + SSS2 + SSS3, , , 4400, 4500)         'TESTING ONLY
  1529. '        xtemp = InputBox("DOUG 2 TESTING SAVE_ttt hi_lites" + SAVE_ttt + "," + hi_lites, , , 4400, 4500)  'TESTING ONLY
  1530. '        KEEPS1 = ""
  1531. '        KEEPS1 = ""
  1532. '        KEEPS2 = ""
  1533. '        KEEPS3 = ""
  1534. '        xtemp = InputBox("DOUG 3 TESTING KEEPS1 KEEPS2 KEEPS3 " + KEEPS1 + "," + KEEPS2 + "," + KEEPS3, , , 4400, 4500) 'TESTING ONLY
  1535. '        xtemp = InputBox("DOUG 4 TESTING tt1" + tt1, , , 4400, 4500) 'TESTING ONLY
  1536. '        tt1 = ""
  1537. '        xtemp = InputBox("DOUG 5 TESTING save_search" + save_search, , , 4400, 4500) 'TESTING ONLY
  1538. '        xtemp = InputBox("DOUG 6 TESTING SAVE_KEEPS1" + SAVE_KEEPS1, , , 4400, 4500) 'TESTING ONLY
  1539. '        xtemp = InputBox("DOUG 7 TESTING SAVE_KEEPS2" + SAVE_KEEPS2, , , 4400, 4500) 'TESTING ONLY
  1540. '        line_match = "Y"
  1541.        GoTo input_1000a
  1542.        
  1543.     End If              'october 14 2001
  1544.    If ttt = "DIRDATES" Then
  1545.         dirdates = "Y"
  1546.         GoTo What_50
  1547.     End If              'april 11 2001
  1548.    If Left(ttt, 2) = "HH" Then
  1549.         hilite_this = Mid(prev_ttt, 3)
  1550.         GoSub Control_28000         '19 january 2003
  1551.        Cmd(31) = Mid(prev_ttt, 3)  ' only hilites data not on matching line
  1552.        GoSub line_30800            '19 january 2003
  1553.        hilite_hh = "Y"             'april 22 2001
  1554.        GoTo What_50
  1555.     End If              'april 10 2001
  1556.    If Left(ttt, 3) = "HLL" Then
  1557.         append_end1 = Mid(prev_ttt, 4)
  1558.         GoTo What_50
  1559.     End If              'april 10 2001
  1560.    If Left(ttt, 2) = "HL" And Mid(ttt, 3, 1) <> "L" Then
  1561.         append_start1 = Mid(prev_ttt, 3)
  1562.         GoTo What_50
  1563.     End If              'april 10 2001
  1564.    If ttt = "P1" Then
  1565.         img_ctrl = "YES"       'march 31 2001
  1566.        stretch_img = "YES"     'march 31 2001
  1567. '22 december 2002
  1568. '        stretch_info = " (STRETCH)" '21 december 2002
  1569. '        frmproj2.Caption = program_info + random_info + stretch_info '09 december 2002
  1570.        GoSub Control_28000        'october 07 2001 read the most current then update
  1571.        Cmd(38) = "stretch"
  1572.         search_prompt = "in"        'october 07 2001
  1573.        GoSub line_30800        'september 23 2001
  1574.        frmproj2.Caption = program_info + random_info + stretch_info '22 december 2002
  1575.        If debug_photo Then     '12 october 2002
  1576.            xtemp = InputBox("DOUG TESTING photo 1" + ttt, , , 4400, 4500) 'TESTING ONLY
  1577.        End If
  1578.         ttt = "P1"              'OCTOBER 07 2001
  1579.        ttt = "P"              '05 december 2002
  1580.        GoTo What_50            '05 december 2002
  1581.    End If                  'march 31 2001
  1582.    If ttt = "P" Then
  1583.         ttt = "P1"
  1584.     End If                  'september 23 2001
  1585.        
  1586.     If ttt = "SC" Then
  1587.         screen_capture = "YES"  'march 15 2001
  1588.        GoTo What_50
  1589.     End If
  1590.     If ttt = "DIR" Then
  1591.         ttt = "GF"              'february 18 2002
  1592.        diryes = "DIR"
  1593.         dirdates = "Y"
  1594.     End If                      'february 18 2002
  1595.    Mergem = "NO"               'february 24 2002
  1596.    If ttt = "MERGE" Then
  1597.         ttt = "GF"              'february 24 2002
  1598.        diryes = "DIR"
  1599.         dirdates = "Y"
  1600.         Mergem = "YES"
  1601.     End If                      'february 24 2002
  1602.    If ttt = "GF" Then
  1603.             GoSub Control_28000
  1604.             rand = 0            '19 July 2003 take random off GF option
  1605.            Cmd(49) = "NORANDOM"
  1606.             GoSub line_30800    'kill and update the control file
  1607.                                '19 July 2003 (somehow having random set causes the tag record
  1608.                                'on mp3 files not to be read properly (so this should be a temp fix)
  1609.            GoSub Control_28000  '19 July 2003
  1610.        Close #OutFile          '18 August 2004 so there is no conflict with file opened at prompt number 1 one
  1611.        GoSub line_30700            'april 01 2001
  1612. '15 december 2002        GoTo What_50
  1613.        GoTo File_40
  1614.     End If
  1615.    
  1616.     If Left(ttt, 2) = "PC" Then
  1617.         photo_cnt = Val(Mid(ttt, 3)) - 1
  1618.         GoTo What_50
  1619.     End If              'march 17 2001
  1620.    If ttt = "CP" Then
  1621.         copy_photo = "YES"      'march 17 2001
  1622.        'need to allow for change of file name etc here
  1623.        xtemp = Cmd(19)
  1624.         GoSub line_16000        '
  1625.        If UCase(FileExt) = UCase(TheFile) Then
  1626.             ttt = "X"
  1627.             GoTo File_40
  1628.         End If
  1629.         'might want to make the open below append or new
  1630.        
  1631. '            save_line = "16100-1"  '18 March 2007 testing only only
  1632.            GoSub line_16100    'open the replace.txt for output
  1633.        xtemp = InputBox(" output directory (you can rename folder later)", "Directory Prompt   ", Cmd(23), xx1 - offset1, yy1 - offset2)
  1634.         temps = xtemp
  1635.         If Len(temps) < 4 Then
  1636.             GoTo What_50
  1637.         End If                  'april 08 2001
  1638.  
  1639.  
  1640. save_dir:
  1641.         photo_dir = xtemp 'ie c:\search\tempfold\
  1642.        xtemp = InputBox(" keep original file name Y/N  <Y> (pict for pict01 & pict02 etc)", "Output file name prompt   ", "Y", xx1 - offset1, yy1 - offset2)
  1643.         photo_file = xtemp 'ie pict
  1644.        If xtemp = "Y" Then photo_file = ""
  1645. '        xtemp = InputBox("testing dir" + photo_dir, , , 4400, 4500) 'TESTING ONLY
  1646. '        xtemp = InputBox("testing file" + photo_file, , , 4400, 4500) 'TESTING ONLY
  1647.        GoTo What_50
  1648.     End If          'end "CP" if statement
  1649.    prev_option = ttt   'february 25 2001
  1650.    If ttt = "P2" Then
  1651.         stretch_img = "NO"      'march 31 2001
  1652. '22 december 2002
  1653. '        stretch_info = " (NORMAL)"       '21 december 2002
  1654. '        frmproj2.Caption = program_info + random_info + stretch_info     '25 november 2002
  1655. '        img_ctrl = "YES"        'february 21 2001
  1656.        img_ctrl = "NO"        'march 31 2001
  1657.        ttt = "P1"
  1658.         GoSub Control_28000       'october 07 2001
  1659.        Cmd(38) = "normal"      'september 23 2001
  1660.        search_prompt = "in"        'october 07 2001
  1661.        GoSub line_30800        'september 23 2001
  1662.        frmproj2.Caption = program_info + random_info + stretch_info     '25 november 2002
  1663. '        xtemp = InputBox("TESTING DOUG photo 2" + ttt, , , 4400, 4500) 'TESTING ONLY
  1664.        ttt = "P1"              'OCTOBER 07 2001
  1665.        ttt = "P"              '05 december 2002
  1666.        GoTo What_50            '05 december 2002
  1667.    End If
  1668.     If Cmd(20) = "email" And ttt = "IMPORT" Then
  1669.         emailsea = "Y"
  1670.         iimport = "Y"       'december 24 2000
  1671.        ttt = "F"           'for flash display
  1672.        extract_yes = "YES"
  1673.         xtemp = Cmd(19)
  1674.         GoSub line_16000        'get file name
  1675.        If UCase(FileExt) = UCase(TheFile) Then
  1676.             ttt = "X"
  1677.             GoTo File_40
  1678.         End If              'january 22 2001
  1679. '            save_line = "16100-2"  '18 March 2007 testing only only
  1680.        GoSub line_16100        'january 01 2001
  1681.    End If
  1682.     Cmd(20) = "" 'december 7 2000
  1683.    xxx_found = "" 'december 7 2000
  1684.    If ddemo = "YES" And ttt = "" Then
  1685.         GoTo line_80
  1686.     End If
  1687.  
  1688. 'demo only allows the P1 and the SS options
  1689.    If ddemo = "YES" And ttt <> "P1" And ttt <> "X" And ttt <> "RRR" And ttt <> "SS" Then
  1690.         GoTo What_50
  1691.     End If
  1692. 'december 11 2000 re the emailsea option email
  1693.    If ttt = "EMAIL" Then
  1694.         emailsea = "Y"
  1695.         ttt = "C"
  1696.     End If
  1697.     If ttt = "R" Then
  1698.         page_prompt = "NO"
  1699.         extract_yes = "YES"
  1700.         xtemp = Cmd(19)
  1701.         GoSub line_16000
  1702.         If UCase(FileExt) = UCase(TheFile) Then
  1703.             ttt = "X"
  1704.             GoTo File_40
  1705.         End If              'january 22 2001
  1706. '            save_line = "16100-3"  '18 March 2007 testing only only
  1707.        GoSub line_16100    'january 01 2001
  1708.        ttt = "Q"
  1709.     End If          'december 31 2000
  1710.    If ttt = "CROP" Then
  1711.         GoSub line_30600        'crop the input file to a given length
  1712.        SAVE_ttt = ""
  1713.         GoTo File_40
  1714.     End If          'december 31 2000
  1715.    If ttt = "DISC" Then
  1716.         MsgBox strMessage
  1717.         strMessage = App.Path + "*" + App.EXEName '07 december 2002
  1718.        MsgBox strMessage
  1719.         GoTo What_50
  1720.     End If                          'january 31 2001
  1721.    If ttt = "D" Then
  1722.         page_prompt = "NO"
  1723.         extract_yes = "YES"
  1724.         xtemp = Cmd(19)
  1725.         GoSub line_16000
  1726. '        xtemp = InputBox("testing prompt_=" + TheFile + "*" + UCase(xtemp) + "*" + CStr(wrap_cnt) + " " + CStr(cnt), "test", , 4400, 4500) '
  1727.        If UCase(TheFile) = UCase(FileExt) Then
  1728.             ttt = "X"
  1729.             GoTo File_40
  1730.         End If              'january 22 2001
  1731. '            save_line = "16100-4"  '18 March 2007 testing only only
  1732.        GoSub line_16100    'january 01 2001
  1733. 'january 01 2001        MAX_CNT = 5
  1734. 'january 01 2001        Context_lines = 2
  1735.        MAX_CNT = context_win
  1736.         Context_lines = Int((context_win - 1) / 2)
  1737.         If Context_lines > 40 Then Context_lines = 40   'january 28 2001
  1738.        ttt = "C"
  1739.     End If          'december 31 2000
  1740.  
  1741.     If ttt = "T" Then
  1742.         page_prompt = "NO"
  1743.         extract_yes = "YES"
  1744.         xtemp = Cmd(19)
  1745.         GoSub line_16000
  1746.         If UCase(FileExt) = UCase(TheFile) Then
  1747.             ttt = "X"
  1748.             GoTo File_40
  1749.         End If              'january 22 2001
  1750. '            save_line = "16100-5"  '18 March 2007 testing only only
  1751.        GoSub line_16100    'january 01 2001
  1752.        ttt = "S"   'see logic below for changing S to Q for search
  1753.    End If          'january 01 2001
  1754. 'november 14 2000 the following stuff moved up to do_search area
  1755.    uppercase = "N"     'december 8 2000
  1756.    If ttt = "S" Then
  1757.         uppercase = "Y"
  1758.         ttt = "Q"
  1759.     End If              'december 8 2000
  1760.    If ttt = "XXX" Then
  1761.         extract_yes = "YES"     'november 12 2000
  1762.        text_pause = 0          '05 october 2002 don't want these two taking up disc
  1763.        xtemp = Cmd(19)
  1764.         GoSub line_16000        'get the file name november 17 2000
  1765.        If UCase(FileExt) = UCase(TheFile) Then
  1766.             ttt = "X"
  1767.             GoTo File_40
  1768.         End If              'january 22 2001
  1769. '            save_line = "16100-6"  '18 March 2007 testing only only
  1770.        GoSub line_16100    'january 01 2001
  1771.  
  1772.             GoTo What_50
  1773.     End If
  1774.     If ttt = "LL" Then
  1775.         line_len = Val(Cmd(21))
  1776.         GoTo What_50
  1777.     End If                  'december 6 2000
  1778.    If Left(ttt, 2) = "LL" Then
  1779.         line_len = Val(Right(ttt, Len(ttt) - 2))
  1780.         GoTo What_50
  1781.     End If                  'december 6 2000
  1782.    If Left(ttt, 7) = "SHOWPOS" Then
  1783.         showpos = "Y"
  1784.         GoTo What_50
  1785.     End If                  'december 6 2000
  1786.    '**keep** the showpos is handy to check the wrap functions for problems
  1787.    'and there will be problems
  1788.    If Left(ttt, 7) = "SHOWASC" Then
  1789.         showasc = "Y"
  1790.         GoTo What_50
  1791.     End If                  'december 6 2000
  1792.    If Left(ttt, 4) = "SKIP" Then
  1793.         skip_info = Right(tt1, Len(tt1) - 4)
  1794.         GoTo What_50                        'november 14 2000
  1795.    End If
  1796.    
  1797.     If Left(ttt, 2) = "NS" And Len(ttt) > 2 Then
  1798.         Cmd(28) = " " + Cmd(28) + " " + Right(ttt, Len(ttt) - 2) + " "
  1799.         GoSub line_29100  'set up new noshow elements
  1800.        GoTo What_50
  1801.     End If
  1802. 'november 03 2000 allow switch between two control files ie for font sizes etc
  1803.    If Left(ttt, 3) = "CCC" Then
  1804. '        control_file = "c:\control1.txt"
  1805.        control_file = "control1.txt"   'december 3 2000 hint use control1.txt to switch multiple settings at once
  1806.        GoSub Control_28000
  1807.         DoEvents
  1808. '        control_file = "c:\control.txt"
  1809. '23 september 2002        control_file = "control.txt"       'december 3 2000
  1810.        SAVE_ttt = "in"     'november 23 2000
  1811.        GoTo What_50
  1812.     End If
  1813.     If Left(ttt, 2) = "SS" And Len(ttt) > 2 Then
  1814.         Cmd(26) = " " + Right(ttt, Len(ttt) - 2) + " "
  1815. '        ss_search = Right(ttt, Len(tt) - 2) + " " 'october 24 2000
  1816.        GoSub line_29200  'set up new screen saver elements
  1817. '        sscreen_saver = "Y" 'october 24 2000
  1818. '        prompt2 = "SS"
  1819. '       Print "screensave(?)="; "*"; screensave(screencount); "*"; aaa; screencount; sscreen_saver; prompt2
  1820. '       tt1 = InputBox("testing screen saver logic", , , 4400, 4500)  'TESTING ONLY
  1821.            
  1822.         ttt = "SS"
  1823.     End If
  1824.  
  1825. '28 april 2002 WW screen saver option added
  1826.    If Left(ttt, 2) = "WW" Then
  1827.         sscreen_saver_ww = "YES"
  1828.         interrupt_prompt2 = ""      '23 November 2004
  1829.        inin = ""
  1830.         ttt = "SS"
  1831.         Picture_Search = "YES"      '26 November 2004 testing this doug
  1832. '        ShowCursor = False        '29 november 2002
  1833. '        Me.MousePointer = False     '29 november 2002
  1834.    End If
  1835.    
  1836.      If Left(ttt, 2) = "TT" And Len(ttt) > 2 Then
  1837.         GoSub Control_28000
  1838.         delay_sec = Val(Right(ttt, Len(ttt) - 2)) 'set a new delay time on screen saver
  1839. 'february 08 2002 the 4 lines below were added to save the delay time
  1840.        hold_sec = delay_sec
  1841.         Cmd(27) = Format(hold_sec, "###0.0000")
  1842.         delay_sec = hold_sec            '29 november 2002
  1843.        GoSub line_30800
  1844.         delay_sec = hold_sec            '18 November 2004
  1845. '        tt1 = InputBox("testing delay " + ttt + " " + Cmd(27), , , 4400, 4500) 'TESTING 22 March 2004
  1846.        GoTo Get_no2        '05 September 2004
  1847. '05 September 2004        GoTo What_50
  1848.    End If
  1849.    
  1850.    
  1851.    
  1852.     If ttt = "" And SAVE_ttt = "in" Then
  1853.         ttt = UCase(Cmd(20))                  'april 14/00
  1854.        If ttt = " " Then
  1855.             ttt = "C"
  1856.             Cmd(20) = ttt
  1857.         End If
  1858.     End If                  'default to "c" on incomming
  1859.    prompt2 = ttt + ""
  1860.    
  1861.  
  1862.     previous_count = 0
  1863.     If ttt = "SS" Then
  1864.         ttt = "P1"
  1865.         If strecth_img = "NO" Then img_ctrl = "NO"    'march 31 2001
  1866.        sscreen_saver = "Y"
  1867.     End If
  1868. '    If UCase(Left(ttt, 3)) = "VVV" Then
  1869. '        ppaste = Right(ttt, Len(ttt) - 3)
  1870. '        GoTo What_50
  1871. '   End If
  1872.    If UCase(Left(ttt, 2)) = "VV" Then
  1873.         Clipboard.SetText Right(ttt, Len(ttt) - 2)
  1874.         'see programmers guide page 170 re mdi forms and clipboard.settext
  1875.        GoTo What_50
  1876.     End If
  1877.  
  1878.     crlf = ""       'December 2 2000
  1879.    If UCase(ttt) = "QQQ" Then
  1880.         ttt = "RRR"
  1881.         crlf = "NO"
  1882.     End If
  1883. 'add the option to do a search and replace
  1884.    If UCase(ttt) = "RRR" Then
  1885.         encript = "RRR"
  1886. '            xtemp = InputBox("27 October testing 2" + ttt, , , 4400, 4500) 'TESTING ONLY
  1887.        GoSub replace_29000
  1888.         GoTo File_40
  1889.     End If
  1890. 'do the encription here november 20 2000
  1891.    If UCase(ttt) = "CRIPT" Then
  1892.         encript = "CRIPT"
  1893.         xtemp = Cmd(32)
  1894.         GoSub line_16000
  1895.         GoSub line_29500        'encription array read
  1896.        case_yes = "Y"
  1897.         GoSub replace_29000
  1898.         GoTo File_40
  1899.     End If
  1900. 'do the de-encription here november 20 2000
  1901.    If UCase(ttt) = "DECRIPT" Then
  1902.         encript = "DECRIPT"
  1903.         xtemp = Cmd(32)
  1904.         GoSub line_16000
  1905.         GoSub line_29500        'encription array read
  1906.        case_yes = "Y"
  1907.         GoSub replace_29000
  1908.         GoTo File_40
  1909.     End If
  1910. 'set up for the de-encription here november 20 2000
  1911.    If UCase(ttt) = "MYSTUF" Then
  1912.         encript = "MYSTUF"
  1913.         xtemp = Cmd(32)
  1914.         GoSub line_16000
  1915.         GoSub line_29500        'encription array read
  1916.        case_yes = "Y"
  1917.         GoTo What_50
  1918.     End If
  1919.    
  1920. '10 January 2005    If text_pause Then
  1921.    If text_pause And p2p2 <> "F" Then
  1922.         MAX_CNT = MAX_CNT + 1       '06 January 2005 no need to display the end of screen stuff when pausing
  1923.    End If              '06 January 2005   add 1 to the max number of lines to display here
  1924. ' allow for the number of characters in string to do select
  1925.    If Len(ttt) = 0 Then GoTo line_80
  1926.     If Len(ttt) = 1 Then GoTo line_80
  1927.     If Len(ttt) = 2 And ttt = "P1" Then GoTo line_80
  1928.     If Len(ttt) = 2 And ttt = "CH" Then GoTo line_80
  1929.     If Len(ttt) = 2 Then
  1930.         ttt = "P"
  1931.         GoTo line_80
  1932.     End If
  1933.     If Len(ttt) = 3 Then
  1934.         ttt = "P1"
  1935.         GoTo line_80
  1936.     End If
  1937.     If Len(ttt) = 4 Then
  1938.         ttt = "CH"
  1939.         GoTo line_80
  1940.     End If
  1941.     If Len(ttt) = 5 Then
  1942.         ttt = "Z"
  1943.         GoTo line_80
  1944.     End If
  1945.     If Len(ttt) = 6 Then
  1946.         ttt = "E"
  1947.         GoTo line_80
  1948.     End If
  1949.     If Len(ttt) = 7 Then
  1950.         ttt = "F"
  1951.         GoTo line_80
  1952.     End If
  1953.     If Len(ttt) = 8 Then
  1954.         ttt = "S"
  1955.         GoTo line_80
  1956.     End If
  1957.     If Len(ttt) = 9 Then
  1958.         ttt = "X"
  1959.         GoTo line_80
  1960.     End If
  1961.  
  1962. line_80:
  1963.     Test1_str = "P"
  1964.  '       Print "Cmd(20)="; Cmd(20); "="
  1965.    If debug_photo Then         '12 october 2002
  1966.        tt1 = InputBox("testing photo 3", , , 4400, 4500)  'TESTING ONLY
  1967.    End If
  1968.     If ttt = "P1" Then
  1969.         ttt = "P"
  1970.         Test1_str = "P1"
  1971.     End If
  1972.     If ttt = "P2" Then
  1973.         ttt = "P"
  1974.         Test1_str = "P2"
  1975.     End If
  1976.     If ttt = "P3" Then
  1977.         ttt = "P"
  1978.         Test1_str = "P3"
  1979.     End If
  1980.    
  1981.     SAVE_ttt = ttt
  1982.     Cls     'clear screen each time
  1983.    'enter data to end of file
  1984.    Picture_Search = "NO"
  1985.     If ttt = "P" Then
  1986.         Picture_Search = "YES"
  1987.         ttt = "C"
  1988.         GoTo Do_Search_110
  1989.         SAVE_ttt = ttt
  1990.     End If                  'march 31/00
  1991.        
  1992.     If ttt = "Z" Then
  1993.         GoSub Do_Append_19000
  1994.         GoTo What_50
  1995.     End If                  'march 28/00
  1996.    If ttt = "CH" Then
  1997.         GoSub Do_Change_18000
  1998.         DoEvents
  1999.         GoTo What_50
  2000.     End If                  'march 29/00
  2001.    If ttt = "E" Then
  2002.         GoTo Do_Enter_20000
  2003.     End If
  2004.     'search and search with start
  2005.    If ttt = "S" Or ttt = "SS" Then
  2006.         GoTo Do_Search_110
  2007.     End If
  2008.     'flash search
  2009.    If ttt = "F" Then
  2010. '        tt1 = InputBox("testing flash prompt", , , 4400, 4500)  '04 September 2004
  2011.        auto_redraw = "NO"
  2012.         frmproj2.AutoRedraw = False     'november 11 2001
  2013.        'turn off redraw on flash display
  2014.        GoTo Do_Search_110
  2015.     End If
  2016.    
  2017.     'context search     aug 08/99
  2018.    If ttt = "C" Then
  2019.         GoTo Do_Search_110  'aug 08/99
  2020.    End If
  2021.     'quick search october 21 2000
  2022.    If ttt = "Q" Then
  2023.         GoTo Do_Search_110
  2024.     End If
  2025.     GoTo File_40
  2026. '    GoTo End_32000
  2027.    
  2028. Do_Search_110:
  2029.     save_line = "110"    'for error handling
  2030.    If img_ctrl = "YES" Then
  2031.         Set Image1.Picture = LoadPicture        'february 21 2001
  2032.    End If
  2033.     If debug_photo Then         '12 october 2002
  2034.        tt1 = InputBox("testing photo 3.1", , , 4400, 4500)  'TESTING ONLY
  2035.    End If
  2036.    
  2037.    
  2038.  
  2039.     Close OutFile
  2040.     OutFile = FreeFile      'november 14 2000
  2041.    If mbxyes = "Y" Then
  2042.         Open TheFile For Binary As #OutFile  'the main file open for input here vip
  2043.    Else
  2044.         Open TheFile For Input As #OutFile  'the main file open for input here vip
  2045.    End If
  2046.     SSS1 = ""
  2047.     SSS2 = ""
  2048.     SSS3 = ""
  2049.     SSS4 = ""       '09 JUNE 2002
  2050.    SSS5 = ""
  2051.     SSS6 = ""
  2052.    
  2053. 'may 12 2001    dsp_cnt = 0
  2054.    zzz_cnt = 0
  2055.     zzz_chrs = 0
  2056.     tot_disp = 0        ' zero count of lines displayed
  2057.    end_cnt = 0         'allow for more than 1 eof in file
  2058.  
  2059.  '   ScrollBars = True
  2060. '   Picture1.Picture = LoadPicture("c:\temp.bmp")
  2061. '   Picture2.Picture = Picture1.Picture
  2062. '   Picture2.Top = 0
  2063. '   Picture2.Left = 0
  2064. '    Picture2.Width = Picture1.Width
  2065. '   Picture2.Height = Picture1.Height
  2066.    
  2067. '        II = DoEvents()
  2068.    
  2069.  '   PaintPicture Picture1.Picture, -1, -3300, 9400, 8000
  2070. '      MyAppID = Shell("C:\WINDOWS\KODAKIMG.EXE", 1)
  2071.  
  2072.  
  2073. '    MyAppID = Shell("C:\WINDOWS\SYSTEM\VIEWERS\QUIKVIEW.EXE", 1)
  2074.  
  2075. ' MyAppID = Shell("C:\PROGRAM FILES\ACCESSORIES\MSPAINT.EXE", 1)
  2076. '    AppActivate MyAppID
  2077. '   SendKeys "^o", True
  2078.  '  SendKeys "c:\temp.tif", True
  2079.  '  SendKeys "{c:\temp.bmp}", True
  2080.    
  2081. '    SendKeys "%F1", 1
  2082.    
  2083.    ' SendKeys "%F0C:\TEMP.BMP", 1
  2084.  '  SendKeys " C:\TEMP.BMP"
  2085.    
  2086.   ' SendKeys Ctrl("o"), 1
  2087.  '  SendKeys "^co"
  2088.    
  2089.    
  2090.  '   MyAppID = Shell("C:\PROGRAM FILES\colordesk utilities\photo\cdphoto.EXE", 1)
  2091.    
  2092.   '  MyAppID = Shell("C:\fbscanner\imagein3\imagein.EXE", 1)
  2093. '   MyAppID = Shell("C:\PRORAM FILES\ACCESSORIES\IMAGEIN.EXE", 1)
  2094.    
  2095. '*******************************************************
  2096. '       * * *   S E A R C H   S T R I N G   * * * entry option prompt
  2097. '*******************************************************
  2098. 'august 27/00
  2099. '    ttt = InputBox("Search String 'A' for ALL", , , 4400, 4500)
  2100. '   ttt = UCase(ttt)
  2101.        TheSearch = "."
  2102. '28 april 2002    If sscreen_saver = "Y" Then
  2103. '         frmproj2.Caption = " do_search_110 dougdoug " + SAVE_SSS + "*" + interrupt_prompt2 + "*" + sscreen_saver + "*" + sscreen_saver_ww + "*" + SSS1 + "*" + SSS2 + "*" + ss_search '20 November 2004 test
  2104.    If sscreen_saver = "Y" And sscreen_saver_ww = "YES" And interrupt_prompt2 = "WW" Then   '21 November 2004
  2105.        ttt = SAVE_SSS      '21 November 2004  ie like "OLDIE/IRENE" IN SAVE_SSS
  2106.        delay_sec = new_delay_sec       '23 November 2004 set it back
  2107.        interrupt_prompt2 = ""          '23 November 2004 was not allowing a WW entry at prompt two
  2108.        GoTo line_600
  2109.     End If                          '21 November 2004
  2110.    If sscreen_saver = "Y" And sscreen_saver_ww <> "YES" Then
  2111.         ttt = ss_search         'screen saver logic
  2112.        GoTo line_600
  2113.     End If
  2114. line_500:               'december 3 2000
  2115.        If text_pause And inin <> "" Then
  2116. '    tt1 = InputBox("testing pause " + p2p2 + "*" + inin + "*", , , 4400, 4500)
  2117.            GoTo line_510    '05 october 2002
  2118.        End If
  2119.         If iimport = "Y" Then
  2120.             ttt = "kskdlskdj"   'skip search entry prompt
  2121.            GoTo line_510     'december 24 2000
  2122.        End If
  2123.    
  2124.     If debug_photo Then         '12 october 2002
  2125.        tt1 = InputBox("testing photo 3.2", , , 4400, 4500)  'TESTING ONLY
  2126.    End If
  2127.        
  2128.         GoSub Search_26000      'get the string to find search prompt here *******
  2129.  
  2130. line_510:               'december 24 2000
  2131. '    Print ttt   'testing
  2132. '    tt1 = InputBox("testing search_26000", , , 4400, 4500)
  2133.  
  2134.        
  2135.         If UCase(ttt) = "E" Or UCase(ttt) = "X" Then GoTo What_50
  2136. '        If Len(ttt) = 1 Then GoTo What_50   'january 05 2001
  2137.        If (prompt2 = "P1" Or prompt2 = "P") And _
  2138.             search_prompt = "in" And ttt = "" Then
  2139.             ttt = "PHOTO"
  2140.             GoTo line_600
  2141.         End If
  2142.         If (prompt2 = "P1" Or prompt2 = "P") And _
  2143.             UCase(ttt) = "A" Then
  2144.             ttt = "PHOTO"
  2145.             GoTo line_600
  2146.         End If
  2147.         If search_prompt = "in" And ttt = "" Then
  2148.             ttt = Cmd(33)       'december 7 2000
  2149. '            ttt = "D"
  2150.            GoTo line_600
  2151.         End If                  'april 24/00
  2152.                            'default to day search on start
  2153.        
  2154.    
  2155.     If UCase(ttt) = "A" Then GoTo line_600
  2156.     If UCase(ttt) = "D" Then GoTo line_600
  2157.     If UCase(ttt) = "M" Then GoTo line_600
  2158. '    If ttt = "MM" Then GoTo line_600
  2159. '    If ttt = "DD" Then GoTo line_600
  2160. 'december 28 2000    If Len(ttt) = 1 Then ttt = "."   'force display old searches
  2161.  
  2162. 'december 28 2000 comment out the logic below
  2163. 'any 2 matching characters will do a paste function Ctrl/V
  2164. '    If Len(ttt) = 2 And Left(ttt, 1) = Right(ttt, 1) Then
  2165. '        ttt = Clipboard.GetText(vbCFText)
  2166.  '      Print ttt 'testing only
  2167. '    End If
  2168. line_600:
  2169. '    search_prompt = "D"
  2170.    search_prompt = Cmd(33) 'december 7 2000
  2171.    
  2172.    
  2173.     printed_cnt = 1         'may 10/00
  2174.    printed = "NO"
  2175.    
  2176.     TheSearch = ttt
  2177. 'august 27/00
  2178. '    If TheSearch <> "" Then
  2179. '        GoSub Search_26000
  2180. '   End If
  2181.    
  2182.  
  2183.     If ttt = "-" Then
  2184.         ttt = SAVE_SRCH + ""
  2185.     End If          'use last search if - entered 15mar00
  2186.    If ttt <> "" Then
  2187.         If UCase(ttt) <> "A" Then
  2188.         SAVE_SRCH = ttt + ""    'save search for reuse 15mar00
  2189.        End If
  2190.         'november 6 2000
  2191.        If prompt2 = "Q" And SSS <> "D" Then
  2192.             SAVE_SRCH = qqq + ""
  2193.         End If      'october 23 2000
  2194.    End If
  2195.    
  2196.     SSS = UCase(ttt)    'Ensure all is upper case for search
  2197. 'november 6 2000
  2198. 'december 8 2000    If prompt2 = "Q" And SSS <> "D" Then
  2199.    If prompt2 = "Q" And SSS <> "D" And uppercase = "N" Then
  2200.         SSS = qqq       'no upper case in quickie search october 23 2000
  2201.    End If
  2202.     SAVE_SSS = SSS + ""
  2203.     'check for tabs here later and make them 4 or 5 spaces
  2204. '20 August 2003    Cls     'june 27/99
  2205.    cnt = 0
  2206.     dblStart = Timer    'get the start time
  2207.    hi_lites = "NO"
  2208.     If SSS = "" Then
  2209.         Close #OutFile          'june 27/99
  2210.        II = DoEvents           'june 27/99
  2211.        GoTo What_50
  2212.     End If
  2213. 'if D entered switch with current date ie 6/14/99 as the
  2214. ' search string in the format 6/6/14/99
  2215. '06 December 2004 testing previous day.
  2216. '--------------------------------------------------
  2217. 'date is as 12/6/2004 for December 06 2004 returned with time also
  2218. 'this will not do a previous month ie if sitting on 01 good enought for now.
  2219.    If SSS = "DX" Then
  2220.         SSS = Format(Now, "ddddd ttttt")    'display today
  2221.        temp1 = InStr(2, SSS, " ")
  2222.         temptemp = Trim(Left(SSS, temp1))
  2223.         II = InStr(temptemp, "/")
  2224.         III = InStr(II + 1, temptemp, "/")
  2225.         temptemp = Mid(temptemp, II + 1, III - II + 1)
  2226.         temp1 = Val(temptemp) - 1       'the day is reduced by 1 here
  2227.        If temp1 = 0 Then temp1 = 1     'do not worry about last month for now
  2228.        temptemp = CStr(temp1)
  2229.         temptemp = Left(SSS, II) + CStr(Val(temptemp)) + Right(SSS, Len(SSS) - III + 1)
  2230.         SSS = temptemp
  2231.         temp1 = InStr(2, SSS, " ")  'case it changes from 10 to 9 etc
  2232. '            frmproj2.Caption = " 06 Dec 2004 testing=" + temptemp + "=" '06 December 2004
  2233. '            new_delay_sec = 2           '06 December 2004 testing
  2234. '            GoSub line_30300            '06 December 2004 testing
  2235. '        SSS = " " + sep + " " + sep + Left(SSS, temp1 - 1)
  2236. '09 june 2002        SSS = "M" + sep + ":" + sep + Left(SSS, temp1 - 1) 'january 05 2001
  2237.        SSS = "M" + sep + "M" + sep + "M" + sep + "M" + sep + ":" + sep + Left(SSS, temp1 - 1) 'january 05 2001
  2238.     End If
  2239.  
  2240. '--------------------------------------------------
  2241.    If SSS = "D" Then
  2242.         SSS = Format(Now, "ddddd ttttt")    'display today
  2243. '            frmproj2.Caption = " 06 Dec 2004 testing=" + SSS + "=" '06 December 2004
  2244. '            new_delay_sec = 2           '06 December 2004 testing
  2245. '            GoSub line_30300                        '06 December 2004 testing
  2246.        temp1 = InStr(2, SSS, " ")
  2247. '        SSS = " " + sep + " " + sep + Left(SSS, temp1 - 1)
  2248. '09 june 2002        SSS = "M" + sep + ":" + sep + Left(SSS, temp1 - 1) 'january 05 2001
  2249.        SSS = "M" + sep + "M" + sep + "M" + sep + "M" + sep + ":" + sep + Left(SSS, temp1 - 1) 'january 05 2001
  2250.     End If
  2251.        
  2252.     If SSS = "DD" Then
  2253.         SSS = " " + sep + " " + sep + date_displayed   'day of last find
  2254.     End If
  2255.      
  2256.     If SSS = "M" Then
  2257.         SSS = Format(Now, "ddddd ttttt")    'display this month
  2258.        temp1 = InStr(2, SSS, "/")  'end of month
  2259.        temp2 = InStr(2, SSS, " ")   'right after year
  2260. '        temp3 = InStr(temp1 + 1, SSS, "/") 'start of year
  2261. '       SSS = " " + sep + Mid(SSS, temp3 + 1, temp2 - temp3) + sep + " " + Left(SSS, temp1)
  2262.            ' sep99 sep 7/ for july
  2263.        SSS1 = Left(SSS, temp1)
  2264.         SSS2 = Mid(SSS, temp2 - 3, 4)
  2265.         SSS3 = ""
  2266.         SSS4 = ""       '09 JUNE 2002
  2267.        SSS5 = ""
  2268.         SSS6 = ""
  2269.        
  2270.         SSS = ""
  2271.         KEEPS1 = SSS1 + ""
  2272.         KEEPS2 = SSS2 + ""
  2273.         KEEPS3 = SSS3 + ""
  2274.         KEEPS4 = SSS4 + ""      '09 june 2002
  2275.        KEEPS5 = SSS5 + ""
  2276.         KEEPS6 = SSS6 + ""
  2277.        
  2278.         SAVE_KEEPS1 = KEEPS1 + ""
  2279.         SAVE_KEEPS2 = KEEPS2 + ""
  2280.         SAVE_KEEPS3 = KEEPS3 + ""
  2281.         SAVE_KEEPS4 = KEEPS4 + ""       '09 june 2002
  2282.        SAVE_KEEPS5 = KEEPS5 + ""
  2283.         SAVE_KEEPS6 = KEEPS6 + ""
  2284.         inin = "M"
  2285. 'maybe put the above changes in the MM below june 15/00
  2286. '        Context = "yes"
  2287. '        Print "testing="; SSS1; "*"; SSS2; "*"; SSS3; "*"
  2288.    If debug_photo Then         '12 october 2002
  2289.        tt1 = InputBox("testing photo 4", , , 4400, 4500)  'TESTING ONLY
  2290.    End If
  2291.         GoTo input_990
  2292.     End If
  2293.    
  2294.     If SSS = "MM" Then                  'month of last find
  2295.        SSS = date_displayed
  2296.         temp1 = InStr(2, SSS, "/")  'end of month
  2297.        temp2 = InStr(2, SSS, " ")   'right after year
  2298.        temp3 = InStr(temp1 + 1, SSS, "/") 'start of year
  2299. '       SSS = " " + sep + Mid(SSS, temp3 + 1, temp2 - temp3) + sep + " " + Left(SSS, temp1)
  2300.            ' sep99 sep 7/ for july
  2301.        SSS1 = Left(SSS, temp1)
  2302.         SSS2 = Mid(SSS, temp2 - 3, 4)
  2303.         SSS3 = ""
  2304.         SSS4 = ""       '09 JUNE 2002
  2305.        SSS5 = ""
  2306.         SSS6 = ""
  2307.         SSS = ""
  2308.         KEEPS1 = SSS1 + ""
  2309.         KEEPS2 = SSS2 + ""
  2310.         KEEPS3 = SSS3 + ""
  2311.         KEEPS4 = SSS4 + ""      '09 june 2002
  2312.        KEEPS5 = SSS5 + ""
  2313.         KEEPS6 = SSS6 + ""
  2314.         SAVE_KEEPS1 = KEEPS1 + ""
  2315.         SAVE_KEEPS2 = KEEPS2 + ""
  2316.         SAVE_KEEPS3 = KEEPS3 + ""
  2317.         SAVE_KEEPS4 = KEEPS4 + ""   '09 june 2002
  2318.        SAVE_KEEPS5 = KEEPS5 + ""
  2319.         SAVE_KEEPS6 = KEEPS6 + ""
  2320.         inin = "MM"
  2321.         GoTo input_990
  2322.     End If
  2323.    
  2324.  
  2325.     Context = "no"      'june 26/99 what is with this line?
  2326.    'june 26/99
  2327.    If SSS = "-" Then
  2328.         Context = "yes"
  2329.         SSS = " " + sep + " " + sep + date_displayed
  2330.         SAVE_KEEPS1 = KEEPS1 + ""        'ALLOW FOR CONTEXT HILITE
  2331.        SAVE_KEEPS2 = KEEPS2 + ""          'june 26/99
  2332.        SAVE_KEEPS3 = KEEPS3 + ""
  2333.         SAVE_KEEPS4 = KEEPS4 + ""       '09 june 2002
  2334.        SAVE_KEEPS5 = KEEPS5 + ""
  2335.         SAVE_KEEPS6 = KEEPS6 + ""
  2336.     End If      'use date found from previous search to get
  2337.                'all data entered that day
  2338.    
  2339.     If SSS = "=" Then
  2340.         Context = "yes"
  2341.         SSS = date_displayed
  2342.         temp1 = InStr(SSS, "/")   'end of month
  2343.        temp2 = InStr(SSS, " ")    'right after year
  2344.        temp3 = InStr(temp1 + 1, SSS, "/") 'start of year
  2345.        SSS = " " + sep + Mid(SSS, temp3 + 1, temp2 - temp3) + sep + " " + Left(SSS, temp1)
  2346.             ' sep99 sep 7/ for july
  2347.        SAVE_KEEPS1 = KEEPS1 + ""        'ALLOW FOR CONTEXT HILITE
  2348.        SAVE_KEEPS2 = KEEPS2 + ""          'june 26/99
  2349.        SAVE_KEEPS3 = KEEPS3 + ""
  2350.         SAVE_KEEPS4 = KEEPS4 + ""
  2351.         SAVE_KEEPS5 = KEEPS5 + ""
  2352.         SAVE_KEEPS6 = KEEPS6 + ""
  2353.     End If
  2354.    
  2355.     'PARSE THE SSS STRING INTO PARTS SSS1 SSS2 SSS3 SSS4 SSS5 SSS6
  2356. line_700:
  2357.     i = InStr(SSS, "  ")
  2358.     If i <> 0 Then
  2359.         SSS = Left(SSS, i) + Mid(SSS, i + 2)
  2360.         GoTo line_700
  2361.     End If
  2362.     i = InStr(SSS, sep)
  2363.     SSS1 = SSS + ""
  2364.     s1len = Len(SSS1)
  2365.     inin = SSS + ""         'june 13/99
  2366.  
  2367.     If i = 0 Then
  2368.         GoTo input_990
  2369.     End If
  2370.     SSS1 = Left(SSS, i - 1)
  2371.     s1len = Len(SSS1)
  2372.     j = Len(SSS)
  2373.     SSS = Right(SSS, j - i)
  2374.  
  2375.     i = InStr(SSS, sep)
  2376.     SSS2 = SSS
  2377.     s2len = Len(SSS2)
  2378. '        Print "testing="; SSS1; "*"; SSS2; "*"; SSS3; "*"
  2379.    If debug_photo Then         '12 october 2002
  2380.        tt1 = InputBox("testing photo 5", , , 4400, 4500)  'TESTING ONLY
  2381.    End If
  2382. '09 june 2002 add 3 more elements here
  2383.    If i = 0 Then
  2384.         GoTo input_990
  2385.     End If
  2386.     SSS2 = Left(SSS, i - 1)
  2387.     s2len = Len(SSS2)
  2388.     j = Len(SSS)
  2389.     SSS = Right(SSS, j - i)
  2390.  
  2391.     i = InStr(SSS, sep)
  2392.     SSS3 = SSS
  2393.     s3len = Len(SSS3)
  2394. '---------------------------------------------
  2395.    If i = 0 Then
  2396.         GoTo input_990
  2397.     End If
  2398.     SSS3 = Left(SSS, i - 1)
  2399.     s3len = Len(SSS3)
  2400.     j = Len(SSS)
  2401.     SSS = Right(SSS, j - i)
  2402.  
  2403.     i = InStr(SSS, sep)
  2404.     SSS4 = SSS
  2405.     s4len = Len(SSS4)
  2406. '========================================================
  2407.    If i = 0 Then
  2408.         GoTo input_990
  2409.     End If
  2410.     SSS4 = Left(SSS, i - 1)
  2411.     s4len = Len(SSS4)
  2412.     j = Len(SSS)
  2413.     SSS = Right(SSS, j - i)
  2414.  
  2415.     i = InStr(SSS, sep)
  2416.     SSS5 = SSS
  2417.     s5len = Len(SSS5)
  2418.  
  2419. '----------------------------------------------
  2420.    If i = 0 Then
  2421.         GoTo input_990
  2422.     End If
  2423.     SSS5 = Left(SSS, i - 1)
  2424.     s5len = Len(SSS5)
  2425.     j = Len(SSS)
  2426.     SSS6 = Right(SSS, j - i)
  2427.     s6len = Len(SSS6)
  2428.  
  2429. input_990:
  2430.  
  2431.     If ss_only = "YES" And p2p2 = "SS" Then
  2432.         ttt = "SS" + " " + SSS1 + " " + SSS2 + " " + SSS3 + " " + SSS4 + " " + SSS5 + " " + SSS6
  2433.         ss_only = "NO"
  2434.         GoTo auto_p2
  2435.     End If                  '07 december 2002
  2436.    tot_cnt = 0
  2437.     GoSub line_14500        'check for imbedded spaces in search strings
  2438.                            'january 19 2001
  2439.        '***********************************************
  2440.        'Major input line for the sequential file read
  2441.        '***********************************************
  2442.  
  2443.  
  2444. input_1000:                                     'INPUT HERE
  2445.    save_line = "1000"    'for error handling
  2446.    slomo = False       '14 January 2004
  2447.    motion_yn = "NO"    '03 September 2004
  2448.    
  2449.     If SAVE_ttt = "C" Then
  2450.         Context_cnt = Context_cnt + 1   'aug 08/99
  2451.        If Context_cnt > MAX_CNT Then
  2452.             Context_cnt = 1
  2453.         End If
  2454.         Context_text(Context_cnt) = ccc + ""
  2455.     End If          'aug 08/99 save last 10 lines at least
  2456.    
  2457.     'the following code along with the form keypreview set to true
  2458.    'should enable escape similar to ctrl/c on the vax
  2459.    'endscript and keydown subroutines at the end also Dec 02/99
  2460.    If zzz_cnt Mod 1000 = 0 Then
  2461.         DoEvents
  2462.     End If
  2463.    
  2464.     If Escape Then
  2465.         Escape = False
  2466.         GoTo End_32000
  2467.     End If
  2468.     If Picture_Search = "YES" Then
  2469.         Previous_line = ooo     'keep this to search for XXX.
  2470.    End If                  'march 31/00
  2471.    'main input file read here
  2472.    
  2473.        '*************************************************
  2474.       'main input file data read             ' * * * I N P U T * * *
  2475.       '*************************************************
  2476. input_1000a:
  2477.    
  2478.     Line Input #OutFile, aaa
  2479. '            frmproj2.Caption = " testing=" + Left(aaa, 40) + "=" '26 November 2004
  2480. '20 November 2004 maybe the line below needs setting as I return here a lot... ***vip*** todo check out sometime
  2481. '    save_line = "1000"    'for error handling 20 November 2004
  2482. '    line_pos = 0        'november 22 2000 january 05 2001
  2483.    zzz_cnt = zzz_cnt + 1
  2484.     If rand Then
  2485.         If zzz_cnt < rand_no Then GoTo input_1000a '18 august 2002
  2486.        '03 August 2003 below is where to change the 2 to what ever the range is for random by group display
  2487.        'ie if there are 6 videos in the group the number should be 12 or 13 below???  ***vip*** todo
  2488.    '06 September 2004 if random and a text search just do random on first get then sequential
  2489.        If p2p2 = "C" Or p2p2 = "S" Or p2p2 = "F" Then
  2490.             rand = False
  2491.             GoTo input_1000a
  2492.         End If              '06 September 2004
  2493.        If zzz_cnt > rand_no + 2 Then   'this may display 2 in a row but that is ok
  2494.            'refresh, #outfile need to be able to reset the file at beginning
  2495.            Close #OutFile
  2496.             II = DoEvents
  2497.             OutFile = FreeFile
  2498.             Open TheFile For Input As #OutFile
  2499.             II = DoEvents       'yield to operating system
  2500.            rand_no = Int(rand_cnt * Rnd + 1)
  2501.             zzz_cnt = 0
  2502.             GoTo input_1000a
  2503.         End If
  2504.     End If
  2505. '    If hi_lites <> "YES" Then line_match = ""     'november 21 2000
  2506.    If encript = "MYSTUF" Then
  2507.         GoSub line_29400
  2508. '        If zzz_cnt Mod 10000 = 0 Then
  2509. '            DoEvents
  2510. '            Print "searching "; zzz_cnt
  2511. '        End If
  2512.    End If
  2513.     If skip_info <> "" Then
  2514.         If InStr(aaa, skip_info) <> 0 Then
  2515.             GoTo input_1000a
  2516.         End If
  2517.     End If          'november 14 2000  this check takes 1/2 second on 190,000 records
  2518.                    'ie 9.67 to 10.20 in the quickie mode for the if skip_info <> "" 190,000 times
  2519.    If prompt2 <> "Q" Then
  2520.         GoTo input_1000b    'Quickie search fix
  2521.    End If
  2522.    
  2523.  
  2524. '    aaa = UCase(aaa)    'december 8 testing ucased timing
  2525. 'info in testing the above line it took over 2 times as much
  2526. 'time to do the search with just including the above statement'
  2527. 'my outmail.txt search went from 14.45 seconds to 34.45 secs
  2528.    If uppercase = "Y" Then
  2529.          ooo = aaa + ""
  2530.          aaa = UCase(aaa) 'december 8 2000
  2531.    End If
  2532.     If InStr(aaa, SSS1) = 0 Then
  2533.         GoTo input_1000a
  2534.     End If
  2535.     If SSS2 = "" Then
  2536.         GoTo input_1000aa
  2537.     End If
  2538.     If InStr(aaa, SSS2) = 0 Then
  2539.         GoTo input_1000a
  2540.     End If
  2541.     If SSS3 = "" Then
  2542.         GoTo input_1000aa
  2543.     End If
  2544.     If InStr(aaa, SSS3) = 0 Then
  2545.         GoTo input_1000a
  2546.     End If
  2547.  
  2548. 'add in sss4 thru sss6   09 june 2002
  2549.    If SSS4 = "" Then
  2550.         GoTo input_1000aa
  2551.     End If
  2552.     If InStr(aaa, SSS4) = 0 Then
  2553.         GoTo input_1000a
  2554.     End If
  2555.    
  2556.     If SSS5 = "" Then
  2557.         GoTo input_1000aa
  2558.     End If
  2559.     If InStr(aaa, SSS5) = 0 Then
  2560.         GoTo input_1000a
  2561.     End If
  2562.  
  2563.     If SSS6 = "" Then
  2564.         GoTo input_1000aa
  2565.     End If
  2566.     If InStr(aaa, SSS6) = 0 Then
  2567.         GoTo input_1000a
  2568.     End If
  2569.  
  2570. '    If InStr(aaa, qqq) = 0 Then
  2571. '        GoTo input_1000a
  2572. '    End If      'october 21 2000
  2573. input_1000aa:
  2574.     If uppercase = "Y" Then aaa = ooo 'december 8 2000
  2575.        previous_count = previous_count + 1   'october 22 2000
  2576.        If previous_count > 100 Then
  2577.             previous_count = 1
  2578.         End If
  2579.         previous_picture(previous_count) = zzz_cnt
  2580.  
  2581. input_1000b:
  2582.     'december 11 2000 the lines from here to input_1000bb
  2583. 'december 15 2000 testing stuff below
  2584. '
  2585.    If show_files_yn Then       '24 december 2002
  2586. '       xtemp = InputBox("DOUG " + show_files+" "+aaa, , , 4400, 4500) 'TESTING ONLY
  2587.        II = InStr(aaa, " append start") 'other appends have -append start
  2588.        If II <> 0 Then
  2589.             show_files = Left(aaa, II - 1)
  2590.         End If
  2591.     End If                      '24 december 2002
  2592.        
  2593.         xtemp = ""
  2594. '        xtemp = "test="
  2595. If xtemp <> "" Then
  2596.     III = Len(aaa)      'december 17 2000
  2597.    If III > 10 Then III = 10
  2598.         For II = 1 To III
  2599.         xtemp = xtemp + CStr(Asc(Mid(aaa, II, 1))) + " "
  2600.         Next II
  2601.         aaa = aaa + xtemp + CStr(Len(aaa))
  2602. End If      'end of test section
  2603.    
  2604.    
  2605.     If emailsea <> "Y" Then GoTo line_1001
  2606.     If Right(aaa, 3) = "=20" Then
  2607.         aaa = Left(aaa, Len(aaa) - 3)
  2608.     End If          'december 18 2000 whatever the deal is with the "-20 " get rid of it
  2609.    'december 17 2000 if more than 1 ascii value < 10 then mbx start of new mail message
  2610.    If mbxyes <> "Y" Then GoTo nombx1000    'december 17 2000
  2611.    If Len(aaa) = 0 And mbxi = 0 Then GoTo input_1000a   'december 18 2000
  2612.    If mbxi = 0 Then III = InStr(aaa, "From:") 'december 17 2000
  2613.    If mbxi = 0 And III <> 0 Then
  2614.         aaa = Right(aaa, Len(aaa) - III + 1)
  2615.         dateskip = ""           'december 19 20002
  2616.        mbxi = 1
  2617.     End If
  2618.    
  2619.     If mbxi = 0 Then GoTo input_1000a 'december 18 2000
  2620.  
  2621. nombx1000:
  2622.        
  2623.  
  2624.     'december 15 2000 added and in test mode
  2625.    If InStr(aaa, "Reply-To") <> 0 And mbxyes = "Y" Then
  2626.         dateskip = ""
  2627.         boundarystr = ""
  2628.         boundarycnt = 0
  2629.         aaa = "========================= email start ========================="
  2630.         GoTo input_1000bb   'need to print the seperator above
  2631.    End If
  2632.     If InStr(aaa, "Return-Path") <> 0 Then
  2633.             GoTo input_1000a
  2634.     End If                  'december 20 2000
  2635.    If InStr(aaa, "Return-Path") <> 0 Then
  2636.         dateskip = ""
  2637.         boundarystr = ""
  2638.         boundarycnt = 0
  2639.         aaa = "========================= email start ========================="
  2640.         GoTo input_1000bb   'need to print the seperator above
  2641.    End If
  2642.     If InStr(aaa, "From - ") <> 0 Then
  2643.         dateskip = "Y"
  2644.         boundarystr = ""
  2645.         boundarycnt = 0
  2646.         aaa = "========================= email start ========================="
  2647.         GoTo input_1000bb   'need to print the seperator above
  2648.    End If
  2649.     If InStr(aaa, "From ????") <> 0 Then
  2650.         dateskip = "Y"
  2651.         boundarystr = ""
  2652.         boundarycnt = 0
  2653.         aaa = "========================= email start ========================="
  2654.         GoTo input_1000bb   'need to print the seperator above
  2655.    End If
  2656.     If dateskip = "F" Then
  2657.         dateskip = "Y"
  2658.         boundarystr = ""
  2659.         boundarycnt = 0
  2660.         aaa = "========================= email start ========================="
  2661.         GoTo input_1000bb   'need to print the seperator above
  2662.    End If
  2663.     If InStr(aaa, "Date: ") <> 0 And dateskip = "Y" Then
  2664.         dateskip = ""
  2665.         GoTo input_1000bb
  2666.     End If
  2667.     If InStr(aaa, "From: ") <> 0 And dateskip = "Y" Then
  2668.         dateskip = ""
  2669.         GoTo input_1000bb
  2670.     End If
  2671.     If dateskip = "Y" Then GoTo input_1000a     'december 12 2000
  2672.    If InStr(aaa, "Reply-To") <> 0 Then GoTo input_1000a
  2673.     If InStr(aaa, "To: ") <> 0 Then GoTo input_1000bb
  2674.     If InStr(aaa, "Subject: ") <> 0 Then GoTo input_1000bb
  2675. '    If InStr(aaa, "boundary=") <> 0 Then february 28 2001
  2676.    If InStr(aaa, "boundary=""") <> 0 Then
  2677.         III = InStr(aaa, "boundary=")
  2678.         II = InStr(III + 10, aaa, """") 'quote mark search double quote
  2679.        boundarystr = Mid(aaa, III + 10, II - III - 10)
  2680.         boundarycnt = 0     'december 18 2000
  2681. '       tt1 = InputBox(boundarystr + " " + CStr(boundarycnt), , , 4400, 4500) 'TESTING ONLY
  2682.        GoTo input_1000a
  2683.     End If
  2684.     If Len(boundarystr) > 2 And InStr(aaa, boundarystr) <> 0 Then
  2685.         boundarycnt = boundarycnt + 1
  2686.         GoTo input_1000a
  2687.     End If
  2688.     If boundarycnt = 0 And Len(boundarystr) > 2 Then GoTo input_1000a
  2689.     If boundarycnt > 1 Then GoTo input_1000a
  2690. 'december 30 2000 skip a few of the odd characters that linger
  2691. If mbxyes = "Y" And Len(aaa) < 6 Then
  2692.     III = Len(aaa)      'december 17 2000
  2693.        For II = 1 To III
  2694.         If Asc(Mid(aaa, II, 1)) > 126 Then GoTo input_1000a
  2695.         If Asc(Mid(aaa, II, 1)) < 9 Then GoTo input_1000a
  2696.         Next II
  2697. End If      'december 30 2000 end of code
  2698.    
  2699. input_1000bb:
  2700.     If InStr(aaa, "= email start =") <> 0 Then tot_s1 = tot_s1 + 1    'january 28 2001
  2701.    If InStr(aaa, "Errors-to:") <> 0 Then GoTo input_1000a
  2702.     If InStr(aaa, "Mime-Version:") <> 0 Then GoTo input_1000a
  2703.     If InStr(aaa, "Reply-to:") <> 0 Then GoTo input_1000a
  2704.     If InStr(aaa, "User-Agent:") <> 0 Then GoTo input_1000a
  2705.     If InStr(aaa, "X-Accept-Language:") <> 0 Then GoTo input_1000a
  2706.     If InStr(aaa, "Importance:") <> 0 Then GoTo input_1000a
  2707.     If InStr(aaa, "X-Mozilla") <> 0 Then GoTo input_1000a
  2708.     If InStr(aaa, "References:") <> 0 Then GoTo input_1000a
  2709.     If InStr(aaa, "X-Mailer:") <> 0 Then GoTo input_1000a
  2710.     If InStr(aaa, "X-MSMail-") <> 0 Then GoTo input_1000a
  2711.     If InStr(aaa, "X-MimeOLE") <> 0 Then GoTo input_1000a
  2712.     If InStr(aaa, "X-Priority:") <> 0 Then GoTo input_1000a
  2713.     If InStr(aaa, "MIME-V") <> 0 Then GoTo input_1000a
  2714.     If InStr(aaa, "MIME format.") <> 0 Then GoTo input_1000a
  2715.     If InStr(aaa, "Message-ID") <> 0 Then GoTo input_1000a
  2716.     If InStr(aaa, "Message-Id: ") <> 0 Then GoTo input_1000a
  2717.     If InStr(aaa, "Content-T") <> 0 Then GoTo input_1000a
  2718.     If InStr(aaa, "charset=") <> 0 Then GoTo input_1000a
  2719.     'the characters "photo" must exist for this to match up
  2720. line_1001:      'december 25/2000
  2721.    If Picture_Search = "YES" Then '
  2722.        If InStr(UCase(aaa), "PHOTO") = 0 Then
  2723.         'don't skip if search is for XXX.
  2724.        ooo = aaa + ""
  2725.         GoTo input_1000
  2726.          End If
  2727.     End If          'march 31/00
  2728. '25 July 2003    If temp_sec <> -1 And temp_sec <> delay_sec Then
  2729.    If temp_sec <> 0 And temp_sec <> -1 And temp_sec <> delay_sec Then
  2730.         delay_sec = temp_sec
  2731. '        If delay_sec < 0.3 Then
  2732. '            tt1 = InputBox("testing=" + Format(delay_sec, "###0.000") + "=", , , 4400, 4500) 'TESTING ONLY
  2733. '       End If          '25 July 2003
  2734.    End If          'march 14 2001
  2735.    If Picture_Search = "YES" Then '
  2736.        III = InStr(UCase(aaa), " WAIT=")
  2737.         line_delay_sec = 0              '19 July 2003 Ver=1.07T
  2738.    '22 september 2003    If III <> 0 Then
  2739.        If III <> 0 And thumb_nail <> "YES" Then
  2740.             temp_sec = delay_sec
  2741.             II = InStr(III + 5, aaa + " ", " ") 'make sure there is a trailing space here
  2742.            xtemp = Mid(aaa, III + 6, II - III - 6)
  2743. '            tt1 = InputBox("testing=" + xtemp + "=", , , 4400, 4500) 'TESTING ONLY
  2744.            delay_sec = Val(xtemp)
  2745.             line_delay_sec = delay_sec                  '19 July 2003 Ver=1.07T
  2746.        End If
  2747. '16 November 2003
  2748.        III = InStr(UCase(aaa), " SPEED=")
  2749.         line_speed = 1000
  2750. '        play_speed = line_speed     '13 May 2004 (see other setting too)
  2751.        If III <> 0 Then
  2752. '            temp_sec = delay_sec
  2753.            II = InStr(III + 6, aaa + " ", " ") 'make sure there is a trailing space here
  2754.            xtemp = Mid(aaa, III + 7, II - III - 7)
  2755. '            tt1 = InputBox("testing=" + xtemp + "=", , , 4400, 4500) 'TESTING ONLY
  2756.            line_speed = Val(xtemp)
  2757.             play_speed = line_speed
  2758.         End If      '16 November 2003
  2759.  
  2760. '24 September 2003 add the line_freeze_sec stuff
  2761.        III = InStr(UCase(aaa), " FREEZE=")
  2762.         Line_freeze_sec = 0
  2763.         If III <> 0 Then
  2764.             temp_sec = delay_sec
  2765.             II = InStr(III + 7, aaa + " ", " ") 'make sure there is a trailing space here
  2766.            xtemp = Mid(aaa, III + 8, II - III - 8)
  2767. '            tt1 = InputBox("testing=" + xtemp + "=", , , 4400, 4500) 'TESTING ONLY
  2768.            Line_freeze_sec = Val(xtemp)
  2769.         End If
  2770.  
  2771. '24 September 2003 end of line_freeze_sec stuff
  2772.        
  2773. '22 March 2004        line_start_point = 0                            '19 July 2003 Ver=1.07T
  2774.        If thumb_nail <> "YES" Then line_start_point = 0                            '22 March 2004
  2775.        If thumb_nail <> "YES" Then line_start_point = 10                            '11 March 2007
  2776.        III = InStr(UCase(aaa), " START==")             '19 July 2003 Ver=1.07T
  2777.        If III <> 0 Then
  2778.             II = InStr(III + 7, aaa + " ", " ") 'make sure there is a trailing space here
  2779.            xtemp = Mid(aaa, III + 8, II - III - 8)
  2780.             line_start_point = Val(xtemp)
  2781.         End If
  2782.     End If          'march 14 2001
  2783.        
  2784.     'replace any tabs with 4 spaces right here
  2785.    save_line = "1002"      'for error handling
  2786. line_1002:
  2787. '07 november 2002 comment out the do_tab below for now
  2788. '    If do_tab Then      '05 october 2002 (no spaces in search string)
  2789.    tt = InStr(aaa, Chr(9)) 'check for tabs
  2790.    If tt = 0 Then
  2791.         GoTo line_1008
  2792.     End If
  2793.     'change any tabs to 4 spaces
  2794.    aaa = Left(aaa, tt - 1) + "    " + Mid(aaa, tt + 1)
  2795.     GoTo line_1002
  2796. '07 november 2002    End If              '05 october 2002
  2797. line_1008:
  2798.     tt = InStr(aaa, Chr(10)) 'check for line feed january 22 2001
  2799.    If tt = 0 Then
  2800.         GoTo line_1008d
  2801.     End If
  2802.     'change any line feeds to nothings
  2803.    aaa = Left(aaa, tt - 1) + " " + Mid(aaa, tt + 1)
  2804.     ooo = Left(ooo, tt - 1) + " " + Mid(ooo, tt + 1)
  2805.     GoTo line_1008
  2806. line_1008d:
  2807.     ooo = aaa + ""  'save the original chr upper/lower
  2808.                    'original input line saved
  2809.    save_line = "1008"      'for error handling
  2810. '    If Len(aaa) > zzz_len Then
  2811. '        zzz_len = Len(aaa)
  2812. '        long_line = Left(aaa, 20)   ' maybe fix it in editor?
  2813. '    End If
  2814.    
  2815.     zzz_chrs = zzz_chrs + Len(ooo) + 2  'the cr/lf characters.
  2816.    If printed <> "YES" And printed_cnt Mod MAX_CNT * 10000 = 0 Then
  2817.         Cls
  2818.     End If                          'may 10/00
  2819.    If printed <> "YES" And printed_cnt Mod 10000 = 0 Then
  2820.         DoEvents        'december 06 2001
  2821.        Print "reading "; zzz_cnt
  2822.     End If                          'may 10/00
  2823.    
  2824.     printed_cnt = printed_cnt + 1   'may 10/00    ********************************
  2825.    old_line = " " + aaa + " "          '25 March 2003 part of version ver=1.02b
  2826.    If uppercase = "Y" Or sscreen_saver = "Y" Then
  2827.         aaa = " " + UCase(aaa) + " "
  2828.     Else
  2829.         aaa = " " + aaa + " "
  2830.     End If          '01 october 2002 no need to to put uppercase if all numeric
  2831.    
  2832.     ooo = " " + ooo + " "   'just to match with aaa
  2833. 'december 8 2000    If prompt2 = "Q" Then
  2834.    If prompt2 = "Q" And uppercase = "N" Then
  2835.         aaa = ooo + ""
  2836.     End If          'no upper case switch for quicky search
  2837.    lll = aaa + ""      'used to show where "P1" matched on in e to exit prompt
  2838.    ccc = ooo + ""      'aug 08/99
  2839.  
  2840.   'no show logic
  2841.    
  2842.     'might want to have the logic for no-show changed here somewhat
  2843.    'ie if anything other that P1 or P then the noshow elements should
  2844.    'be cleared (ie count set to 0) etc if "no-show" not the first element
  2845.    'this would allow for the replacement of the skip and the complete removal
  2846.    'in the text display of anything that shouldn't be shown
  2847.    'these notes were done december 30 2000
  2848.    'may want the no-show words replaced with "******" so the search will fail
  2849.    'todo **vip** at some point in time this is censorship???
  2850. '    If prompt2 <> "P1" And prompt2 <> "P" Then GoTo line_1009_a   'december 25 2000
  2851.    If extract_yes = "YES" Then GoTo line_1009_a 'january 03 2001
  2852.    If encript <> "" Then GoTo line_1009_a  'january 03 2001
  2853. '        tt1 = InputBox("doshow logic " + aaa, , , 4400, 4500) 'TESTING ONLY
  2854.    If InStr(aaa, "DOSHOW") <> 0 Then GoTo line_1009_a '18 August 2003
  2855.    For II = 1 To nocount
  2856. '        If zzz_cnt > 80 Then
  2857. '            Print "noshow(a)="; "*"; zzz_cnt; "*"; noshow(II); "*"; prompt2; "*"; aaa; nocount
  2858. ' this one can go on and on so allow for an exit here if bad entry
  2859.    If debug_photo Then         '12 october 2002
  2860.            tt1 = InputBox("testing photo 6", , , 4400, 4500)  'TESTING ONLY
  2861.            If Len(tt1) > 0 Then debug_photo = False    'allow for an out here
  2862.    End If
  2863. '        End If      'testing only january 27 2001
  2864.        If Len(noshow(II)) < 1 Then
  2865.             GoTo line_1009
  2866.         End If
  2867.         If (prompt2 = "P1" Or prompt2 = "P") And InStr(aaa, noshow(II)) <> 0 Then
  2868.             GoTo input_1000 'skip if noshow found in line
  2869.        End If
  2870.         If prompt2 = "SS" And InStr(aaa, noshow(II)) <> 0 Then
  2871.             GoTo input_1000 'skip if noshow in screen saver also january 27 2001
  2872.        End If
  2873.         tt = 1  'january 04 2001
  2874.        'the following keeps these words from showing in text display??
  2875. line_1008m:
  2876.         III = InStr(tt, aaa, noshow(II))   'january 03 2001
  2877.        If III = 0 Then GoTo line_1009  'january 03 2001
  2878.        tt = III + 1
  2879.         JJ = Len(noshow(II))            'january 03 2001
  2880.        ooo = Left(ooo, III - 1) + String(JJ, "*") + Mid(ooo, III + JJ) 'january 03 2001
  2881.        GoTo line_1008m
  2882. 'the mid statement without the length works the same as the vax basic right statement vms stuff
  2883.  
  2884. line_1009:
  2885.     Next II
  2886. line_1009_a:       'december 25 2000
  2887.  'screensaver logic
  2888. '        Print "screensave(?)="; "*"; screensave(1); "*"; aaa; "1"; sscreen_saver; prompt2
  2889. '        Print "screensave(?)="; "*"; screensave(screencount); "*"; aaa; screencount; sscreen_saver; prompt2
  2890. '        Print sscreen_saver
  2891. '       tt1 = InputBox("testing screen saver logic", , , 4400, 4500)  'TESTING ONLY
  2892. '       If tt1 = "X" Or tt1 = "x" Then
  2893. '           GoTo End_32000
  2894. '       End If              'testing only
  2895.    
  2896.     'if no screen saver jump around this logic
  2897. '28 APRIL 2002    If sscreen_saver <> "Y" Then GoTo line_1009b
  2898.    If sscreen_saver <> "Y" Or sscreen_saver_ww = "YES" Then GoTo line_1009b
  2899.    
  2900.     For II = 1 To screencount
  2901.         If Len(screensave(II)) < 1 Then
  2902.             GoTo input_1000
  2903.         End If
  2904.        
  2905.         If InStr(aaa, screensave(II)) <> 0 Then
  2906.             SSS1 = screensave(II)
  2907. ' inactive  ss_search = "PHOTO"
  2908.            ss_search = screensave(II)
  2909. '        Print "inlogic="; "*"; screensave(screencount); "*"; aaa; screencount; sscreen_saver; prompt2
  2910. '        tt1 = InputBox("testing screen saver logic", , , 4400, 4500)  'TESTING ONLY
  2911.            
  2912.             GoTo display_all_2000 'show if screensave found in line
  2913.        End If
  2914. line_1009a:
  2915.  
  2916.     Next II
  2917.     GoTo input_1000 'october 24 2000 screen saver fix
  2918.  
  2919. line_1009b:
  2920.    
  2921.     If inin = "A" Or inin = "ALL" Then
  2922.         GoTo display_all_2000
  2923.     End If
  2924.    
  2925.     'on flash display to screen
  2926.    If SAVE_ttt = "F" Then
  2927.         GoTo display_all_2000
  2928.     End If
  2929.  
  2930.     If SAVE_ttt = "C" And hi_lites = "YES" Then
  2931.         GoTo display_all_2000   'aug 08/99
  2932.    End If
  2933.  
  2934.     If inin = "M" Or inin = "MM" Then
  2935.         If Left(aaa, Len(SSS1) + 1) <> " " + SSS1 Then
  2936.             GoTo input_1000
  2937.         End If
  2938.     End If
  2939.  
  2940.        
  2941.     line_match = "Y"    'november 21 2000
  2942.                        'if the input strings match this will remain
  2943.                        'otherwise it is reset at the input line
  2944.  
  2945.     If InStr(aaa, SSS1) <> 0 Then
  2946.         GoTo line_1010
  2947.     End If
  2948.     line_match = ""     'november 21 2000
  2949.    GoTo input_1000
  2950.  
  2951. line_1010:
  2952.     save_line = "1010"    'for error handling
  2953.    If SSS2 = "" Then
  2954.         GoTo display_all_2000
  2955.     End If
  2956.     If InStr(aaa, SSS2) <> 0 Then
  2957.         GoTo line_1020
  2958.     End If
  2959.     line_match = ""     'november 21 2000
  2960.    GoTo input_1000
  2961. line_1020:
  2962.     save_line = "1020"    'for error handling
  2963.    If SSS3 = "" Then
  2964.         GoTo display_all_2000
  2965.     End If
  2966.     If InStr(aaa, SSS3) <> 0 Then
  2967. '09 june 2002        GoTo display_all_2000
  2968.        GoTo line_1030
  2969.     End If
  2970.     line_match = ""     'november 21 2000
  2971.    GoTo input_1000
  2972. line_1030:
  2973.     If SSS4 = "" Then
  2974.         GoTo display_all_2000
  2975.     End If
  2976.     If InStr(aaa, SSS4) <> 0 Then
  2977.         GoTo line_1040
  2978.     End If
  2979.     line_match = ""     'november 21 2000
  2980.    GoTo input_1000
  2981. 'midway1 thru the program appx'==================================================================================
  2982.  
  2983. line_1040:
  2984.     If SSS5 = "" Then
  2985.         GoTo display_all_2000
  2986.     End If
  2987.     If InStr(aaa, SSS5) <> 0 Then
  2988.         GoTo line_1050
  2989.     End If
  2990.     line_match = ""     'november 21 2000
  2991.    GoTo input_1000
  2992. line_1050:
  2993.     If SSS6 = "" Then
  2994.         GoTo display_all_2000
  2995.     End If
  2996.     If InStr(aaa, SSS6) <> 0 Then
  2997.         GoTo display_all_2000
  2998.     End If
  2999.  
  3000. '---------------------------------------------
  3001.    line_match = ""     'november 21 2000
  3002.    GoTo input_1000
  3003.  
  3004.  
  3005. 'match found now do the hi-light here
  3006.  
  3007. display_all_2000:
  3008. '    frmproj2.AutoRedraw = True      '04 January 2005
  3009. '       xtemp = InputBox("DOUG 1 TESTING SSS1 SSS2 SSS3 " + SSS1 + " " + SSS2 + " " + SSS3 + " " + SSS4 + " " + SSS5 + " " + SSS6, , , 4400, 4500)  'TESTING ONLY
  3010. '
  3011. '        tt1 = InputBox("doug testing " + aaa, , , 4400, 4500) 'TESTING ONLY
  3012. If Left(UCase(Cmd(70)), 10) = "FOREGROUND" Then
  3013.     new_delay_sec = 1           'enough time for the main job to get going again
  3014.    GoSub line_30300
  3015.     SetFocus        '17 September 2004 background job to front.
  3016.                    'this only keeps focus till foreground job runs another file
  3017.                    'so the background job that is moved to the foreground should not be any longer
  3018.                    'than the other job time wise.... (until something else can be done)
  3019. End If          '17 September 2004
  3020.    save_line = "2000"    'for error handling
  3021.     displayed_cnt = displayed_cnt + 1   'october 13/00
  3022.    If displayed_cnt Mod 10 = 0 And ddemo = "YES" And prompt2 = "P1" Then
  3023.     'pause a bit and do a couple of beeps just to bug them
  3024.    For tt = 1 To 3
  3025.         For II = 1 To 3000
  3026.             For JJ = 1 To 5000
  3027.             Next JJ
  3028.         Next II
  3029.         Beep
  3030.             DoEvents
  3031.     Next tt
  3032.         tt1 = InputBox("Demo copy only e-mail stonedan@telusplanet.net for full version", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  3033.    End If
  3034.     If printed_cnt > 20000 And printed <> "YES" Then
  3035.         Cls
  3036.     End If
  3037.     printed = "YES"
  3038.     printed_cnt = 1         'may 10/00
  3039.    If auto_redraw = "YES" Then frmproj2.AutoRedraw = True      'november 10 2001 autoredraw pair-4
  3040.    
  3041.     If Context = "no" Then      'june 26/99
  3042.        GoTo line_2003
  3043.     End If
  3044.     temp1 = Len(date_displayed) 'june 26/99 ie "6/26/99"
  3045.    'PRINT THE DATE PART AND REMOVE IT FROM HE SEARCH STRING
  3046.    '   REPLACING IT WITH THE ORIGINAL SEARCH STRINGS
  3047.    'print done here
  3048.    Print Left(aaa, temp1);
  3049.     JJ = Len(aaa)
  3050.     aaa = Right(aaa, JJ - temp1) + ""
  3051.     ooo = Right(ooo, JJ - temp1) + ""
  3052.     SSS1 = SAVE_KEEPS1
  3053.     SSS2 = SAVE_KEEPS2
  3054.     SSS3 = SAVE_KEEPS3      'june 26/99
  3055.    SSS4 = SAVE_KEEPS4      '09 june 2002
  3056.    SSS5 = SAVE_KEEPS5
  3057.     SSS6 = SAVE_KEEPS6
  3058. line_2003:
  3059.     save_line = "2003"
  3060.     cnt = cnt + 1
  3061.     tot_disp = tot_disp + 1     'how many to the screen
  3062.  
  3063.     'context below deals with the "-" and "=" displays
  3064.    'and only applies to date formatted files
  3065.    'clean up by moving the context = "yes"
  3066.  
  3067.  
  3068.     tttpos = 1
  3069.     KEEPS1 = SSS1 + ""
  3070.     KEEPS2 = SSS2 + ""
  3071.     KEEPS3 = SSS3 + ""
  3072.     KEEPS4 = SSS4 + ""      '09 june 2002
  3073.    KEEPS5 = SSS5 + ""
  3074.     KEEPS6 = SSS6 + ""
  3075.     vvv = aaa
  3076.    
  3077.     If SSS1 = "A" Or SSS1 = "ALL" Then
  3078.         vvv = aaa
  3079.     End If
  3080.  
  3081.     If SSS1 = "A" Or SSS1 = "ALL" Then
  3082.         GoTo line_2200
  3083.     End If
  3084.     If SAVE_ttt = "F" And SSS1 <> "" And InStr(aaa, SSS1) = 0 Then
  3085.         GoTo line_2200
  3086.     End If
  3087.     If SAVE_ttt = "F" And SSS2 <> "" And InStr(aaa, SSS2) = 0 Then
  3088.         GoTo line_2200
  3089.     End If
  3090.     If SAVE_ttt = "F" And SSS3 <> "" And InStr(aaa, SSS3) = 0 Then
  3091.         GoTo line_2200
  3092.     End If
  3093.     If SAVE_ttt = "F" And SSS4 <> "" And InStr(aaa, SSS4) = 0 Then
  3094.         GoTo line_2200
  3095.     End If
  3096.     If SAVE_ttt = "F" And SSS5 <> "" And InStr(aaa, SSS5) = 0 Then
  3097.         GoTo line_2200
  3098.     End If
  3099.     If SAVE_ttt = "F" And SSS6 <> "" And InStr(aaa, SSS6) = 0 Then
  3100.         GoTo line_2200
  3101.     End If
  3102.     If SAVE_ttt = "F" Then
  3103.         hi_lites = "YES"
  3104.         vvv = aaa
  3105.         GoTo line_2004
  3106.     End If
  3107. 'november 21 2000 the following 3 lines
  3108.    If SAVE_ttt = "C" And SSS1 <> "" And hi_lites = "YES" And InStr(aaa, SSS1) = 0 Then
  3109.         mult1 = ""
  3110.         mult2 = ""
  3111.         mult3 = ""
  3112.         mult4 = ""
  3113.         mult5 = ""
  3114.         mult6 = ""
  3115.     End If
  3116.     If SAVE_ttt = "C" And SSS2 <> "" And hi_lites = "YES" And InStr(aaa, SSS2) = 0 Then
  3117.         mult1 = ""
  3118.         mult2 = ""
  3119.         mult3 = ""
  3120.         mult4 = ""
  3121.         mult5 = ""
  3122.         mult6 = ""
  3123.     End If
  3124.     If SAVE_ttt = "C" And SSS3 <> "" And hi_lites = "YES" And InStr(aaa, SSS3) = 0 Then
  3125.         mult1 = ""
  3126.         mult2 = ""
  3127.         mult3 = ""
  3128.         mult4 = ""
  3129.         mult5 = ""
  3130.         mult6 = ""
  3131.     End If
  3132.     '09 JUNE 2002
  3133.    If SAVE_ttt = "C" And SSS4 <> "" And hi_lites = "YES" And InStr(aaa, SSS4) = 0 Then
  3134.         mult1 = ""
  3135.         mult2 = ""
  3136.         mult3 = ""
  3137.         mult4 = ""
  3138.         mult5 = ""
  3139.         mult6 = ""
  3140.     End If
  3141.     If SAVE_ttt = "C" And SSS5 <> "" And hi_lites = "YES" And InStr(aaa, SSS5) = 0 Then
  3142.         mult1 = ""
  3143.         mult2 = ""
  3144.         mult3 = ""
  3145.         mult4 = ""
  3146.         mult5 = ""
  3147.         mult6 = ""
  3148.     End If
  3149.     If SAVE_ttt = "C" And SSS6 <> "" And hi_lites = "YES" And InStr(aaa, SSS6) = 0 Then
  3150.         mult1 = ""
  3151.         mult2 = ""
  3152.         mult3 = ""
  3153.         mult4 = ""
  3154.         mult5 = ""
  3155.         mult6 = ""
  3156.     End If
  3157.    
  3158. '    If SAVE_ttt = "C" And SSS1 <> "" And hi_lites = "YES"  And _  january 03a 2001
  3159.    If SAVE_ttt = "C" And SSS1 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3160.         InStr(aaa, SSS1) = 0 Then
  3161. '        mult1 = ""          'november 21 2000
  3162. '        line_match = ""     'november 21 2000
  3163.        GoTo line_2200  'aug 08/99
  3164.    End If
  3165. '    If SAVE_ttt = "C" And SSS2 <> "" And hi_lites = "YES"  And _  january 03a 2001
  3166.    If SAVE_ttt = "C" And SSS2 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3167.         InStr(aaa, SSS2) = 0 Then
  3168.  '       mult2 = ""          'november 21 2000
  3169. '       line_match = ""     'november 21 2000
  3170.        GoTo line_2200  'aug 08/99
  3171.    End If
  3172. '    If SAVE_ttt = "C" And SSS3 <> "" And hi_lites = "YES"  And _  january 03a 2001
  3173.    If SAVE_ttt = "C" And SSS3 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3174.         InStr(aaa, SSS3) = 0 Then
  3175.   '      mult3 = ""          'november 21 2000
  3176. '       line_match = ""     'november 21 2000
  3177.        GoTo line_2200  'aug 08/99
  3178.    End If
  3179. ' 09 JUNE 2002
  3180.    If SAVE_ttt = "C" And SSS4 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3181.         InStr(aaa, SSS4) = 0 Then
  3182.   '      mult3 = ""          'november 21 2000
  3183. '       line_match = ""     'november 21 2000
  3184.        GoTo line_2200  'aug 08/99
  3185.    End If
  3186.  
  3187.     If SAVE_ttt = "C" And SSS5 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3188.         InStr(aaa, SSS5) = 0 Then
  3189.   '      mult3 = ""          'november 21 2000
  3190. '       line_match = ""     'november 21 2000
  3191.        GoTo line_2200  'aug 08/99
  3192.    End If
  3193.  
  3194.     If SAVE_ttt = "C" And SSS6 <> "" And (hi_lites = "YES" Or inin = "A") And _
  3195.         InStr(aaa, SSS6) = 0 Then
  3196.   '      mult3 = ""          'november 21 2000
  3197. '       line_match = ""     'november 21 2000
  3198.        GoTo line_2200  'aug 08/99
  3199.    End If
  3200.  
  3201.     If SAVE_ttt = "C" And hi_lites <> "YES" Then
  3202.         hi_lites = "YES"
  3203.  '       line_match = "Y"     'november 21 2000
  3204.        GoSub Last_lines_15000  'aug 08/99
  3205.        vvv = aaa
  3206.         GoTo line_2004
  3207.     End If
  3208.  
  3209.    
  3210.  
  3211. 'AT THIS POINT BOLD/HILITING IS GOING TO BE DONE
  3212. line_2004:
  3213.         Context_cnt = -1 'november 10 2000 this fixes the display
  3214.        If p2p2 = "S" And search_str = "CC" Then
  3215.             prompt2 = "C"           '26 august 2002
  3216.            SAVE_ttt = "C"
  3217.             cnt = MAX_CNT       'force it to the end by indicating screen full
  3218.            previous_picture(previous_count) = zzz_cnt
  3219. '            previous_count = previous_count + 1
  3220. '            zzz_cnt = zzz_cnt - Context_lines
  3221. '        temptemp = InputBox(" 26 august at bold ", "prompt2= " + prompt2 + p2p2 + " " + CStr(zzz_cnt), , xx1 - offset1, yy1 - offset2)
  3222. 'un comment the line below when working
  3223.            GoTo line_2100
  3224.         End If
  3225.         GoSub sub_12000        'The hilite display subroutine november 9 2000
  3226. line_2100:
  3227.     save_line = "2100"
  3228. '===============================================================================
  3229.    If prompt2 = "C" Then       ' see end of if below "end of if below"
  3230.        previous_count = previous_count + 1   'october 19 2000
  3231.        If previous_count > 100 Then
  3232.             previous_count = 1
  3233.         End If
  3234.         previous_picture(previous_count) = zzz_cnt
  3235.     End If
  3236.  
  3237.      If Context = "yes" And SAVE_SSS = "=" Then
  3238.         If date_displayed <> "" Then
  3239.             SSS1 = " "
  3240.             SSS = date_displayed
  3241.             temp1 = InStr(1, SSS, "/")
  3242.             SSS2 = Left(SSS, temp1 - 1) + "/"
  3243.             temp1 = InStr(temp1 + 1, SSS, "/")
  3244.             SSS3 = "/" + Mid(SSS, temp1 + 1, 2)
  3245.         End If
  3246.      End If
  3247.    
  3248.     If Context = "yes" And SAVE_SSS = "-" Then     'june 26/99
  3249.        SSS1 = " "
  3250.         SSS2 = " "
  3251.         SSS3 = date_displayed
  3252.     End If
  3253.    
  3254.     If Context = "no" And SSS1 <> "A" Then
  3255.      If KEEPS1 <> "" Then
  3256.         SSS1 = KEEPS1
  3257.      End If
  3258.      If KEEPS2 <> "" Then
  3259.         SSS2 = KEEPS2
  3260.      End If
  3261.      If KEEPS3 <> "" Then
  3262.         SSS3 = KEEPS3
  3263.         End If
  3264.      If KEEPS4 <> "" Then       '09 june 2002
  3265.        SSS4 = KEEPS4
  3266.         End If
  3267.      If KEEPS5 <> "" Then
  3268.         SSS5 = KEEPS5
  3269.         End If
  3270.      If KEEPS6 <> "" Then
  3271.         SSS6 = KEEPS6
  3272.         End If
  3273.     End If
  3274. '*******************************************************
  3275. ' major pause prompt on picture display done here
  3276. '*******************************************************
  3277. line_2130:
  3278.     save_line = "2130"      'november 6 2000
  3279. '21 March 2004 maybe do some thing to display the time here too
  3280. '    If Picture_Search = "YES" Or mpg_file = "YES" Then
  3281.    If Picture_Search = "YES" Then
  3282. '        If mpg_file = "YES" Then GoTo line_2130a
  3283.            
  3284. '            frmproj2.Caption = "lll1=" + lll '08 November 2004
  3285.        Line_Search = ""
  3286.         GoSub Display_pict_17000
  3287. '23 November 2004 do the options== stuff here right after the picture shownmaybe
  3288. '================================================================================
  3289. '        frmproj2.Caption = " testing=" + UCase(lll) + "="     'testing
  3290.        temptemp = UCase(lll)       '23 November 2004
  3291.    III = InStr(temptemp, "OPTIONS==")    '23 November 2004
  3292.    If III <> 0 Then
  3293.         JJ = 0
  3294.         temptemp = Right(temptemp, Len(temptemp) - III - 8)
  3295. '        frmproj2.Caption = " testing=" + temptemp + "="     'testing
  3296.  
  3297. More_ops:
  3298.         II = InStr(temptemp, "OPT=")
  3299. '        frmproj2.Caption = " testing1=" + temptemp + "=" + CStr(JJ)  'testing
  3300.        If II <> 0 Then
  3301.             temptemp = Right(temptemp, Len(temptemp) - 4) 'strip off the OPT=
  3302.            ddd = InStr(temptemp, "OPT=")
  3303. '        frmproj2.Caption = " testing1a=" + temptemp + "=" + CStr(ddd)  'testing
  3304.            If ddd <> 0 Then
  3305.                 control_files(JJ + 1) = Left(temptemp, ddd - 1)
  3306. '        frmproj2.Caption = " testing1b=" + temptemp + "=" + CStr(JJ)  'testing
  3307.                temptemp = Right(temptemp, Len(temptemp) - ddd + 1)
  3308.                 JJ = JJ + 1
  3309.             Else
  3310.                 control_files(JJ + 1) = temptemp
  3311.                 temptemp = ""
  3312.                 JJ = JJ + 1
  3313.             End If
  3314.             GoTo More_ops
  3315.         End If
  3316. Pick_op:
  3317.         If JJ <> 0 Then
  3318. 'have it default to option 1 allways
  3319. 'display the file here
  3320. '        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  3321.            
  3322. '            frmproj2.Caption = " testing2=" + control_file + "="
  3323.            II = InputBox("enter option # 1 thru " + CStr(JJ), , "1", 4400, 4500)
  3324.             If II > JJ Or II < 1 Then GoTo Pick_op
  3325.         End If
  3326.         control_file = control_files(II)
  3327.         tempdata = Cmd(73)
  3328. '            frmproj2.Caption = " testing=" + tempdata + "="
  3329.        DoEvents
  3330.         If Left(UCase(tempdata), 10) = "FILESWITCH" Then
  3331.             GoSub Control_28000     'change the control file from in a *.txt file
  3332.            Close #OutFile
  3333.             DoEvents
  3334.             OutFile = FreeFile
  3335.             DoEvents
  3336.             TheFile = Trim(Cmd(46))  'Must be a file name here not a number
  3337. '            frmproj2.Caption = " test TheFile=" + TheFile + "="
  3338.            Open TheFile For Input As #OutFile
  3339.             DoEvents
  3340.         End If
  3341. '            frmproj2.Caption = " testing1x=" + control_file + "=" '23 November 2004
  3342.        GoTo input_1000a
  3343.     End If                                      '23 November 2004
  3344.  
  3345. '================================================================================
  3346. '08 November 2004 put the results to a file ie play list generation or if something interesting played random
  3347.        If UCase(Left(Cmd(72), 11)) = "RESULTS.TXT" And UCase(Trim(TheFile)) <> "RESULTS.TXT" Then                   '08 November 2004
  3348. '    frmproj2.Caption = " ooo1=" + ooo '08 November 2004 testing Just need "xxx." put in front here.
  3349.       ResultFile = FreeFile        '08 November 2004
  3350.       Open "RESULTS.TXT" For Append Access Write As #ResultFile   '08 November 2004 do this if RESULTS.TXT IN Cmd(72)
  3351.        Print #ResultFile, LTrim(ccc)      '08 November 2004   this is the PHOTO stuff
  3352.        Print #ResultFile, Line_Search        '08 November 2004 this is the xxx. stuff
  3353.        Close ResultFile                            '08 November 2004
  3354. 'then do a print / write then a close on that file
  3355.    End If                                                      '08 November 2004
  3356.        
  3357. '            frmproj2.Caption = "hey 7g " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  3358. 'line_2130a:                         '21 March 2004
  3359.        '
  3360.    
  3361.     ' P O S T   P H O T O   D I S P L A Y   C L E A N   U P
  3362.    ' show time date info before going on to next picture
  3363.    ' maybe something else should be done here in the future
  3364.    ' ie quote of the day display etc... random...
  3365.    '
  3366.    '24 March 2003 do some messing with the time display
  3367.    'version ver=1.02b time and date hard coded display for now every 4 show time on the 10"s show day too
  3368.    'see similar code at PHOTO_DETAIL calls to Last_lines_15000 and sub_12000
  3369.    'doing the time display here after photo and text finished
  3370.    'should have a few other options coded here for flexability soon.
  3371.    'most of the hard coding should be comming from the control.txt file
  3372.    'making it easier to center text what ever.
  3373.    '
  3374. '    If dsp_cnt Mod 4 = 0 Then       'do every 4 records ver=1.03 make switchable
  3375.        special_date = "NO"     '01 April 2003 skip additional display delays if logic below used ver=1.05
  3376.        time_displayed = "NO"   '03 April 2003 just indicates if the time below is displayed...
  3377.        Def_Fore = Cmd(29)  'Use alt color here for display 26 July 2003
  3378.    If dsp_cnt Mod 4 = 0 And Cmd(57) = "SHOWTIME" Then       'do every 4 records
  3379. '        replace_data = SSS1      '03 April 2003     save SSS1 so it can be replaced a few lines down
  3380.        replace_sss1 = SSS1
  3381.         replace_sss2 = SSS2
  3382.         replace_sss3 = SSS3
  3383.         replace_sss4 = SSS4
  3384.         replace_sss5 = SSS5
  3385.         replace_sss6 = SSS6     '03 April 2003
  3386.        time_displayed = "YES"  '03 April 2003
  3387. '        Def_Fore = 12       'make the text red???
  3388. '        ForeColor = QBColor(Def_Fore)
  3389.        Context_lines = 3               '1 less than the PHOTO_DETAIL display
  3390. '        ForeColor = QBColor(12)        'red
  3391. '        ForeColor = QBColor(10)         'try lime green instead of red above
  3392. '        ForeColor = QBColor(14)         'make this yellow and photo_detail lime green
  3393. '        ForeColor = QBColor(9)         'make this bright blue instead
  3394. '        ForeColor = QBColor(13)         'make this light purple instead
  3395. '        ForeColor = QBColor(14)         'make this yellow instead
  3396. '        ForeColor = QBColor(10)         'make this lime green (10) instead
  3397.        ForeColor = QBColor(11)         'make this pale blue (11) instead
  3398.        Font.Italic = False
  3399.         Font.Size = 72                  'making time huge
  3400. '        Font.Size = 48                  '20 May 2003 switch to this for laptop
  3401.        
  3402. '        If sscreen_saver = "Y" Then GoSub line_30000    'do a pause again if screen saver mode
  3403.  
  3404.  
  3405. '   P A U S E for screen saver mode here
  3406.  
  3407. '            frmproj2.Caption = "hey 7h " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  3408. '01 September 2004        GoSub line_30000    'do a pause again if screen saver mode
  3409. 'the above caused it to hang on music thumbs that were being played full
  3410.            new_delay_sec = Val(Cmd(60))   '01 September 2004
  3411.            GoSub line_30300        '01 September 2004
  3412. '            frmproj2.Caption = "hey 7i " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  3413. 'changed setting of aaa to below
  3414. '            tt1 = InputBox("testing counts tot_s1=" + CStr(tot_s1), , , 4400, 4500)  'TESTING ONLY
  3415. '20 August 2003        Cls
  3416.        
  3417.         II = 0
  3418.         ooo = Now
  3419.         II = InStr(1, ooo, " PM")       'trim the seconds out of the time display
  3420.        If II <> 0 Then
  3421.             ooo = Left(ooo, II - 4) + " PM"
  3422.         End If
  3423.        
  3424.         II = InStr(1, ooo, " AM")       'trim the seconds out of the time display
  3425.        If II <> 0 Then
  3426.             ooo = Left(ooo, II - 4) + " AM"
  3427.         End If
  3428.        
  3429.         II = 0
  3430.         If dsp_cnt Mod 10 <> 0 Then
  3431.             II = InStr(2, ooo, " ") 'chop off the day month info ie except if ends in 10 ie 20 30 40 etc
  3432. '            tt1 = InputBox("testing time=" + CStr(II) + "=" + ooo, , , 4400, 4500) 'TESTING ONLY
  3433.        Else
  3434.             ooo = Format(Now, "dddd, mmmm dd, yyyy")    'test another date format
  3435.  
  3436.             II = InStr(1, UCase(ooo), ", 20")
  3437.        
  3438.             If II <> 0 Then
  3439.                 ooo = Left(ooo, II - 1) 'strip off ", 2003" year info (as with seconds) not needed
  3440.                                'logic should work till 2100, then the year will show
  3441.            End If
  3442.          
  3443.             II = InStr(1, ooo, ",")     'remove the comma ie Saturday, March 29
  3444.            If II <> 0 Then
  3445.                 ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - II)
  3446.             End If                      '29 march 2003
  3447.            
  3448.             II = 0
  3449.             Font.Size = 72
  3450. '            Font.Size = 48          '20 May 2003 switch to this for laptop display
  3451.            Context_lines = 3
  3452. '...???            SSS1 = Right(ooo, 2)        '30 March 2003      ver=1.04 hilite the day (30) in "Sunday March 30"
  3453.            SSS1 = Right(ooo, 2)        '30 March 2003      ver=1.04 hilite the day (30) in "Sunday March 30"
  3454.            SSS2 = ""
  3455.             SSS3 = ""
  3456.             SSS4 = ""
  3457.             SSS5 = ""
  3458.             SSS6 = ""           '03 April 2003
  3459.        End If
  3460.         ooo = Right(ooo, Len(ooo) - II)    ' + CStr(dsp_cnt)
  3461.        ooo = "  " + ooo        'center the date time display a bit
  3462.        If Len(ooo) < 12 Then ooo = "         " + ooo  'ie the time only center 10:52 AM stuff
  3463.                            'when too many spaces added above data disappeared ???^
  3464. '        dsp_cnt = Len(ooo)
  3465.        
  3466. '            aaa = "sure would be nice if other stuff prints" + Space(10)   'testing the fix for all characters to print only
  3467.        aaa = "dummydummydummydummydummydummy"    'some how forces the full date time to print????
  3468.        aaa = UCase(ooo) '+ "-----------------------------------------"              'see if this changes match hi-liting
  3469.        
  3470.  
  3471.  ' testing the hi-liting of the time element..
  3472. '28 March 2003 should be able to hi-lite the following in the time some how
  3473. '       KEEPS1 = "AM"
  3474. '       KEEPS2 = "PM"
  3475.        If InStr(1, aaa, " PM") <> 0 Then
  3476. '...???            SSS1 = "PM"
  3477.            SSS1 = "PM"
  3478.             SSS2 = ""
  3479.             SSS3 = ""
  3480.             SSS4 = ""
  3481.             SSS5 = ""
  3482.             SSS6 = ""      '03 April 2003
  3483.        End If                  '30 March 2003  ver=1.04
  3484.        If InStr(1, aaa, " AM") <> 0 Then
  3485. '...???            SSS1 = "AM"
  3486.            SSS2 = ""
  3487.             SSS3 = ""
  3488.             SSS4 = ""
  3489.             SSS5 = ""
  3490.             SSS6 = ""      '03 April 2003
  3491.            SSS1 = "AM"
  3492.         End If                  '30 March 2003  ver=1.04 done with 2 if statements re the sss1 20 or so lines above
  3493. '        SSS1 = " PM"
  3494. '       SSS2 = "PM"             'see if this is hi-lited
  3495. '       s1len = 2
  3496. '       s2len = 2
  3497. '  messing with the above resulted in the hi-liting of the matches disappearing...
  3498. '  in screen saver photo_detail mode.
  3499. '            tt1 = InputBox("testing time display keep_sss1=" + keep_SSS1, , , 4400, 4500) 'TESTING ONLY
  3500. '            tt1 = InputBox("testing time display ooo=" + ooo, , , 4400, 4500)  'TESTING ONLY
  3501. '            tt1 = InputBox("testing time display array_pos=" + CStr(array_pos), , , 4400, 4500)  'TESTING ONLY
  3502.        
  3503.        
  3504.             tempdata = ooo                  '31 March 2003
  3505. '03 April 2003            tempdata = " " + ooo                '01 April 2003 ver=1.05 make it shift one to the right before it disappears to the left
  3506.        GoSub Last_lines_15000
  3507. '21 March 2004        If mpg_file <> "YES" Then GoSub Last_lines_15000
  3508.        GoSub sub_12000     'do the bolding and high-liting hi-liting here
  3509.            new_delay_sec = Val(Cmd(27))   '03 September 2004
  3510.            GoSub line_30300        '03 September 2004
  3511. '            tt1 = InputBox("testing=" + CStr(new_delay_sec) + "=", , , 4400, 4500) 'TESTING ONLY 26 November 2004
  3512.  
  3513. '30 March 2004 may need a reset of hold_sec here
  3514. '        delay_sec = Val(Cmd(27))        '30 March 2004
  3515. '        If mpg_file = "YES" Then
  3516. '            new_delay_sec = Val(Cmd(27))
  3517. '            GoSub line_30300            '30 March 2004
  3518. '        End If                          '30 March 2004
  3519.  
  3520. 'only if screen saver mode
  3521.        If dsp_cnt Mod 10 = 0 Then
  3522.             special_date = "YES"        '01 April 2003      ver=1.05
  3523. '            If sscreen_saver = "Y" Then GoSub line_30000    'do a extra pause again on "weekday Month dd" display
  3524.            new_delay_sec = Val(Cmd(27))    '03 September 2004
  3525.            If sscreen_saver = "Y" Or sscreen_saver_ww = "YES" Then GoSub line_30300    '03 September 2004
  3526. '03 September 2004            If sscreen_saver = "Y" Or sscreen_saver_ww = "YES" Then GoSub line_30000    '03 April 2003
  3527.            tempdata = "               " + tempdata     '03 August 2003 start it a little farther over
  3528.            f = Len(tempdata)
  3529.  
  3530. '                        tt1 = InputBox("testing sscreen_saver=" + sscreen_saver + " " + sscreen_saver_ww, , , 4400, 4500) 'TESTING ONLY
  3531. '            For JJ = II To 1 Step -1
  3532.            For III = f To 0 Step -1
  3533.                
  3534.                 ooo = Right(tempdata, III)
  3535.                 aaa = UCase(ooo)
  3536. '                        tt1 = InputBox("testing ooo=" + ooo + CStr(f) + CStr(III), , , 4400, 4500) 'TESTING ONLY
  3537. '20 August 2003                Cls
  3538.                GoSub Last_lines_15000
  3539.                 GoSub sub_12000
  3540. '                delay_sec = 0.1
  3541.            new_delay_sec = 0.1    '03 September 2004
  3542.            GoSub line_30300            '03 September 2004
  3543. '                GoSub line_30000            '31 March 2003    have it move off the screen 1 chr at a time
  3544.            Next III
  3545.             delay_sec = Val(Cmd(27))        '31 March 2003
  3546.        End If
  3547.         Font.Size = Val(Cmd(2))     'reset it back from 72 above
  3548.    End If  'end of Picture_Search = "YES"
  3549. '21 March 2004
  3550.  
  3551. '03 April 2003        SSS1 = ""               're the am - pm hi-light above  30 march 2003   ver=1.04
  3552.    If time_displayed = "YES" Then
  3553. '        SSS1 = replace_data            '03 April 2003
  3554.        SSS1 = replace_sss1
  3555.         SSS2 = replace_sss2
  3556.         SSS3 = replace_sss3
  3557.         SSS4 = replace_sss4
  3558.         SSS5 = replace_sss5
  3559.         SSS6 = replace_sss6             '03 April 2003
  3560.    End If
  3561.    
  3562.     If SSS1 = "AM" Or SSS1 = "PM" Then SSS1 = ""        '03 April 2003
  3563.    '24 March 2003 ver=1.02b ^
  3564.  
  3565.         DoEvents
  3566.         If pp_entered = "YES" Then
  3567.              GoTo What_50
  3568.         End If              'november 6 2000
  3569.            
  3570.         'skip the pause below if no xxx. found
  3571.        If InStr(1, UCase(Line_Search), "XXX.") <> 0 Then
  3572. 'maybe display the last text line if match is photo "P1"
  3573. 'this has to show for laptops and pc's maybe based on
  3574. 'lines per inch this must show at 7500 and 7400 for both screens
  3575.        tempss = "" 'must have the input string complete
  3576.        If Test1_str = "P1" Or Test1_str = "P" Then
  3577.             tempss = lll        'lll is the upper case line
  3578. 'save the clipboard for later paste
  3579. '           Clipboard.SetText tempss
  3580.        End If
  3581. 'itwasheredoug
  3582.        disp_file = Pict_file
  3583. line_2150:
  3584.         JJ = InStr(1, disp_file, "\")
  3585.         If JJ <> 0 Then
  3586.             disp_file = Right(disp_file, Len(disp_file) - JJ)
  3587.             GoTo line_2150
  3588.         End If
  3589.        
  3590.        
  3591.     'Screen Saver mode pause takes place below
  3592.        
  3593.         If sscreen_saver = "Y" Then
  3594.             'GoSub line_30000           01 April 2003
  3595. '14 July 2003 this is where the pause after the movies was showing the small text (not needed) below
  3596. '14 july 2003            If special_date <> "YES" Then GoSub line_30000  '01 April 2003 ver=1.05
  3597.            new_delay_sec = Val(Cmd(27))    '03 September 2004
  3598.            If line_delay_sec <> 0 Then new_delay_sec = line_delay_sec          '26 November 2004
  3599. '            tt1 = InputBox("testing=" + CStr(new_delay_sec) + "=", , , 4400, 4500) 'TESTING ONLY 26 November 2004
  3600. '03 September 2004 following line completely removed... when doing music it pauses when it should not
  3601.            If special_date <> "YES" And motion_yn <> "YES" Then GoSub line_30300  '01 April 2003 ver=1.05
  3602. '03 September 2004            If special_date <> "YES" And mpg_file <> "YES" Then GoSub line_30000  '01 April 2003 ver=1.05
  3603.            Set Picture = LoadPicture()           '03 August 2003 testing (clear em both) lp#2
  3604.            Set Image1.Picture = LoadPicture        '03 August 2003 testing
  3605. '       xtemp = InputBox(" testing doug#11  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  3606.            GoTo line_2155
  3607.         End If
  3608.     If screen_capture = "YES" Then
  3609. '03 September 2004        delay_sec = 5      'march 15 2001
  3610. '03 September 2004        GoSub line_30000
  3611.            new_delay_sec = 5    '03 September 2004
  3612.            GoSub line_30300            '03 September 2004
  3613.    End If
  3614. 'allow for the keeping of the original file name on the copy
  3615.    If copy_photo = "YES" Then      'april 08 2001
  3616.        temps = Pict_file + ""
  3617. next_slasha:
  3618.         II = InStr(temps, "\")
  3619.         If II = 0 Then GoTo no_slash
  3620.         III = III + II
  3621.         temps = Mid(temps, II + 1)
  3622.         GoTo next_slasha
  3623. no_slash:
  3624.     old_pict = Mid(Pict_file, III + 1)
  3625.     End If
  3626.  
  3627.      'march 17 200b
  3628.    If copy_photo = "YES" Then
  3629.             temps = CStr(photo_cnt + 1)
  3630.             If photo_cnt + 1 < 10 Then temps = "0" + temps
  3631.            II = InStr(Pict_file, ".")
  3632.            temps = photo_dir + photo_file + temps + Mid(Pict_file, II)
  3633. '        xtemp = InputBox(" testing doug ", "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  3634.            If photo_file = "" Then         'april 08 2001
  3635.                temps = photo_dir + old_pict
  3636. '        xtemp = InputBox(" testing 22 nov " + old_pict, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  3637.            End If
  3638.         xtemp = InputBox(" copy picture to " + temps + " <Y>", "Copy Prompt   ", Pict_file, xx1 - offset1, yy1 - offset2)
  3639. '22 November 2006        xtemp = InputBox(" copy picture to " + temps + " <Y>", "Copy Prompt   ", long_pict_file, xx1 - offset1, yy1 - offset2)
  3640.        If xtemp = "Y" Or xtemp = Pict_file Then
  3641.             photo_cnt = photo_cnt + 1
  3642.             temps = CStr(photo_cnt)
  3643.             If photo_cnt < 10 Then temps = "0" + temps
  3644.             temps = photo_dir + photo_file + temps + Mid(Pict_file, II)
  3645.             If photo_file = "" Then         'april 08 2001
  3646.                temps = photo_dir + old_pict
  3647.             End If
  3648. '        xtemp = InputBox("testing file =" + temps, , , 4400, 4500) 'TESTING ONLY
  3649.        On Error GoTo copy_problem  'march 18 2001
  3650.            Set Picture = LoadPicture() 'march 18 2001 maybe this will do it lp#3
  3651.            DoEvents                    'march 18 2001
  3652.            FileCopy Pict_file, temps       'copy the file
  3653.            
  3654. '            DoEvents        '22 November 2006
  3655. '        xtemp = InputBox("testing file 22 november 2006=" + temps, , , 4400, 4500) 'TESTING ONLY
  3656. '        xtemp = InputBox("testing file 22 november 2006=" + long_pict_file, , , 4400, 4500)  'TESTING ONLY
  3657. '            Name temps As long_pict_file   '22 November 2006
  3658.            tempss = " was=" + disp_file + " " + Format(Now, "ddddd ttttt")
  3659.             If photo_file = "" Then
  3660.                 tempss = ""
  3661.             End If          'april 08 2001
  3662. '            Print #ExtFile, ccc; " was="; disp_file; " "; Format(Now, "ddddd ttttt")     'march 21 2001 add the was info
  3663.            Print #ExtFile, ccc; tempss     'april 08 2001
  3664.            Print #ExtFile, "xxx." + temps   'march 18 2001
  3665.            On Error GoTo Errors_31000      'march 18 2001
  3666.            GoTo input_1000
  3667. copy_problem:       'march 18 2001
  3668.        xtemp = InputBox("file copy error=" + CStr(Err.Number) + " " + Err.Description, , , xx1 - offset1, yy1 - offset2) 'march 18 2001
  3669.        On Error GoTo Errors_31000    'march 18 2001
  3670.        Resume input_1000       'march 18 2001
  3671.        End If
  3672.         If Len(xtemp) < 3 And UCase(xtemp) <> "N" Then GoTo What_50
  3673.         GoTo input_1000
  3674.     End If          'march 17 2001
  3675. Photo_continue_prompt:              '27 july 2002
  3676.    '17 September 2004
  3677.    If Left(UCase(Cmd(69)), 8) = "HIT_STOP" And InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  3678.         GoTo End_32000 '17 September 2004
  3679.    End If          '17 September 2004
  3680. 'march 19 2001       tt1 = InputBox("E to exit " + tempss + " " + disp_file, "Photo continue Prompt", , xx1, yy1)
  3681. '            frmproj2.Caption = "testing pcp =" + App.EXEName + "*" + hold_sss1 + "*" + sscreen_saver + "*" + screen_saver_ww + "*" + interrupt_prompt2 '20 November 2004
  3682. '        frmproj2.Caption = hold_sss1 + "*" + interrupt_prompt2 + "*" + CStr(zzz_cnt) + "*" + interrupt_prompt2 '20 November 2004
  3683. '29 November 2006
  3684.        tt1 = ""        '29 November 2006
  3685.        If Left(UCase(disp_file), 5) = "HTTP:" Then
  3686.             If Mid(disp_file, 6, 1) <> "/" Then
  3687.                 disp_file = Right(disp_file, Len(disp_file) - 5)
  3688.             End If                          '29 January 2007
  3689.            'when xxx.http: and no / then take everything after it emails etc 29 January 2007
  3690.            Clipboard.SetText disp_file     '29 November 2006
  3691.            SendKeys "^c"                   '29 January 2007
  3692.            tt1 = disp_file                 '29 November 2006
  3693.            frmproj2.Caption = " Paste the URL: " + disp_file + "<<<" '29 November 2006
  3694.        End If                          '29 November 2006
  3695. '29 November 2006        tt1 = InputBox("P or J for previous E to exit or '.' " + ccc + " " + disp_file, "Photo continue Prompt #pcp" + CStr(zzz_cnt), , xx1 - ppoffset1, yy1 - ppoffset2)
  3696. '08 February 2008 add the if text_pause <> true then (below)
  3697. If text_pause <> True Then      '08 February 2008
  3698. tt1 = InputBox("P or J for previous E to exit or '.' " + ccc + " " + disp_file, "Photo continue Prompt #pcp" + CStr(zzz_cnt), tt1, xx1 - ppoffset1, yy1 - ppoffset2)
  3699.  
  3700.         If tt1 = disp_file Then
  3701.             tt1 = ""
  3702.         End If              '29 January 2007
  3703. Else
  3704. '    SetFocus            '08 February 2008
  3705.    tt1 = ""            '08 February 2008
  3706.    new_delay_sec = Val(Cmd(27))
  3707.     GoSub line_30300            '08 February 2008
  3708. '    GoTo line_3050             '08 February 2008
  3709. End If '08 February 2008
  3710. 'no    If Cmd(45) = App.EXEName Then Cmd(45) = ""  '07 december 2002 allow interrupt to come here and continue
  3711. '      xtemp = InputBox("ww test=" + sscreen_saver_ww + "*" + sscreen_saver + "*" + inin + "*" + tt1, , , xx1, yy1) 'march 18 2001
  3712. '    If mpg_file = "YES" Then
  3713. '        GoTo input_1000             '23 February 2004
  3714. '    End If
  3715. '20 November 2004 allow for auto run program to continue if return entered here
  3716.    If tt1 = "" And interrupt_prompt2 = "WW" Then  '20 November 2004
  3717.        sscreen_saver = "Y"
  3718.         prompt2 = "WW"      'this one seems to keep it going where before it stopped. now it gets wrong data
  3719.        prompt2 = "SS"      'testing this now
  3720. '        Test1_str = "P1"   'or maybe p2 find out later
  3721.        tt1 = "WW"
  3722.         sscreen_saver_ww = "YES"
  3723. '        prompt2 = interrupt_prompt2
  3724. '        frmproj2.Caption = SSS1 + SSS2 + "xxx*" + interrupt_prompt2 + CStr(zzz_cnt) '20 November 2004
  3725. '        prompt2 = Cmd(47)
  3726. '        inin = ""   '20 November 2004 test this
  3727. '        GoTo input_1000a
  3728.        GoTo input_1000
  3729.     End If                                      '20 November 2004
  3730.        
  3731.         If sscreen_saver_ww = "YES" Then
  3732.             sscreen_saver_ww = "NO"     '28 april 2002
  3733.            sscreen_saver = "N"         '28 april 2002
  3734.            inin = ""
  3735. '            GoTo What_50
  3736. '
  3737.        End If
  3738.         If tt1 = "." Then
  3739.                 ppoffset1 = 4500
  3740.                 ppoffset2 = 5000
  3741.                 GoTo Photo_continue_prompt
  3742.         End If          '27 july 2002
  3743.                        'allow for the photo details to be redisplayed
  3744.                        'so they can be view on the screen
  3745.                        
  3746. '03 August 2003        If img_ctrl = "YES" Then
  3747. '        If (img_ctrl = "YES" Or line_fit = "FIT") And line_fit <> "REG" Then
  3748.        If img_ctrl = "YES" Or line_fit = "FIT" Then
  3749.             Set Image1.Picture = LoadPicture        'february 21 2001
  3750. '        Else                                '03 August 2003
  3751.            Set Picture = LoadPicture() '03 August 2003 lp#4
  3752.        End If
  3753. '        Set Image1.Picture = LoadPicture        '03 August 2003
  3754.  
  3755.         If Left(UCase(tt1), 2) = "SS" Then
  3756.           If Len(tt1) > 2 Then
  3757.             Cmd(26) = " " + Right(tt1, Len(tt1) - 2) + " "
  3758.             GoSub line_29200  'set up new screen saver elements
  3759.          End If        'may 06 2001
  3760.            ttt = "P1"
  3761.             If stretch_img <> "NO" Then img_ctrl = "YES"        'march 31 2001
  3762.            sscreen_saver = "Y"
  3763.             SSS1 = ""
  3764.             SSS2 = ""
  3765.             SSS3 = ""
  3766.             SSS4 = ""   '09 JUNE 2002
  3767.            SSS5 = ""
  3768.             SSS6 = ""
  3769.             GoTo input_1000
  3770.         End If                  'february 09 2001
  3771.        
  3772.         If Len(tt1) > 2 Then
  3773.             ttt = tt1
  3774.             SSS1 = ttt
  3775.             SSS2 = ""
  3776.             SSS3 = ""
  3777.             SSS4 = ""   '09 JUNE 2002
  3778.            SSS5 = ""
  3779.             SSS6 = ""
  3780.             GoTo line_510
  3781.         End If                  'february 09 2001
  3782. line_2155:
  3783. '        Set Picture = LoadPicture() 'clear any picture
  3784.        tt1 = UCase(tt1)
  3785.         If tt1 = "PP" And ddemo <> "YES" Then
  3786.             Test1_str = "P"
  3787.             pp_entered = "YES"
  3788.             prompt2 = "P"
  3789.             GoTo line_2130
  3790.         End If              'november 6 2000
  3791.        
  3792. '19 December 2004        If tt1 = "P" And ddemo <> "YES" Then
  3793.        If (tt1 = "P" Or tt1 = "J") And ddemo <> "YES" Then
  3794.             tt1 = "P"       '19 December 2004
  3795.            rand = 0        '21 august 2002 keep this as we are backing up to previous picture...
  3796.            dsp_cnt = dsp_cnt - 1   'may 09 2001
  3797.            pp = previous_count - 1
  3798.             If pp < 1 Then
  3799.                 pp = 100
  3800.             End If
  3801.             Close #OutFile
  3802.             II = DoEvents
  3803.             OutFile = FreeFile
  3804.             Open TheFile For Input As #OutFile
  3805.             II = DoEvents       'yield to operating system
  3806.            
  3807.         tt = 3
  3808.         If yyy = "P" Then
  3809.             tt = MAX_CNT
  3810.             yyy = ""
  3811.         End If
  3812.         For bbb = 1 To previous_picture(pp) - tt
  3813.             Line Input #OutFile, aaa
  3814.         Next bbb
  3815.         Previous_line = aaa
  3816.         Line Input #OutFile, aaa
  3817.         zzz_cnt = bbb
  3818.         previous_count = pp - 1
  3819.        
  3820. 'testing may 07 2001
  3821. '        Print "previous_picture(previous_count)zzz_cnt,previous_count"; TheFile; previous_picture(previous_count); "="; zzz_cnt, previous_count
  3822. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  3823. '
  3824.        GoTo input_1000
  3825.         'read up to the previous picture appx cnt
  3826.        End If ' end if for tt1 = "P" And ddemo <> "YES"
  3827. '======================================================
  3828.  
  3829. 'maybe check for a for all here october 27 2000
  3830.    If tt1 = "A" Then
  3831.         SSS1 = "PHOTO"
  3832.         SSS = "PHOTO"
  3833.         SAVE_SSS = "PHOTO"
  3834.         inin = "A"
  3835.         SAVE_KEEPS1 = "PHOTO"
  3836.         SAVE_KEEPS2 = ""
  3837.         SAVE_KEEPS3 = ""
  3838.         SAVE_KEEPS4 = ""
  3839.         SAVE_KEEPS5 = ""
  3840.         SAVE_KEEPS6 = ""
  3841. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY 01 January 2005
  3842.        
  3843.         GoTo input_1000
  3844. '        SAVE_ttt = "S"
  3845.    End If
  3846.          
  3847.         If Len(tt1) = 1 And tt1 <> "P" Then
  3848.             Def_Fore = Hold_Fore        '27 July 2003
  3849.            GoTo Do_Search_110 'all chrs exit
  3850.        End If
  3851.         If UCase(tt1) = "E" Then
  3852.             GoTo Do_Search_110
  3853.         End If
  3854.         End If ' end if for InStr(1, UCase(Line_Search), "XXX.") <> 0
  3855.  
  3856. '20 August 2003        Cls
  3857. '        xtemp = InputBox(" testing doug#3  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  3858.        GoTo input_1000
  3859.     End If ' end if for Picture_Search = "YES"  see end of it above "end of if below"
  3860.  
  3861. '================================================================================
  3862.  
  3863. '        temptemp = InputBox(" 26 august step a9 ", "prompt2= " + prompt2 + p2p2 + " " + CStr(zzz_cnt), , 7000, 6000)
  3864.  
  3865.     'march 31/00
  3866.    
  3867.     GoTo line_3010
  3868.  
  3869. line_2200:
  3870.     Context_cnt = -1        'november 10 2000
  3871.    save_line = "2200"  'for error handling
  3872. '    Font.Size = 10
  3873. '    BackStyle = 1    MESS WITH THIS A BIT BACKGROUND COLOR ETC
  3874. '   Font.Charset = 2
  3875.    
  3876. '*********************************************************
  3877.    'main print to screen here
  3878.    'lots of monkeying around to be done here for
  3879.    'log type output extract files etc replace.txt files
  3880. '*********************************************************
  3881.                ' * * * P R I N T * * *
  3882. 'august 10/00 if line longer than 1 chop it
  3883. 'need to change any tabs to 4 characters
  3884. 'need to see if there is a valid end of line sequence
  3885. 'before the 72 chrs and print out that by itself.
  3886. 'so a bit more to be done before this will work correctly
  3887. 'need to strip any odd ball characters and check for
  3888. 'carriage return/linefeed sequences in the line also
  3889.    'replace any tabs with 4 spaces right here
  3890. line_2210:
  3891.     tt = InStr(ooo, Chr(9)) 'check for tabs
  3892.    If tt = 0 Then
  3893.         GoTo line_2220
  3894.     End If
  3895.     'change any tabs to 4 spaces
  3896.    ooo = Left(ooo, tt - 1) + "    " + Right(ooo, Len(ooo) - tt)
  3897.     GoTo line_2210
  3898.        
  3899. line_2220:
  3900.    
  3901.  'april 10 2001   If InStr(1, ooo, "append start") <> 0 Then
  3902.      
  3903. '     If InStr(1, ooo, append_start1) <> 0 Then
  3904.      If InStr(1, UCase(ooo), UCase(append_start1)) <> 0 Then
  3905.          append_start1 = Mid(ooo, InStr(1, UCase(ooo), UCase(append_start1)), Len(append_start1))
  3906.        
  3907.         tot_s1 = tot_s1 - 1         'january 06 2001
  3908.        new1 = SSS1
  3909.         new2 = SSS2
  3910.         new3 = SSS3
  3911.         new4 = SSS4 '09 june 2002
  3912.        new5 = SSS5
  3913.         new6 = SSS6
  3914. 'april 10 2001        SSS1 = "append start"
  3915.        SSS1 = append_start1
  3916.         SSS2 = ""
  3917.         SSS3 = ""
  3918.         SSS4 = ""   '09 june 2002
  3919.        SSS5 = ""
  3920.         SSS6 = ""
  3921.         temp_fore = Set_Fore
  3922.         Set_Fore = AltColor
  3923.         aaa = ooo + ""
  3924.         GoSub sub_12000
  3925.         SSS1 = new1
  3926.         SSS2 = new2
  3927.         SSS3 = new3
  3928.         SSS4 = new4 '09 JUNE 2002
  3929.        SSS5 = new5
  3930.         SSS6 = new6
  3931.         Set_Fore = temp_fore
  3932.         GoTo line_2300
  3933.     End If              'hilite any append lines i put in
  3934. 'april 10 2001    If InStr(1, ooo, "append end") <> 0 Then
  3935. '    If InStr(1, ooo, append_end1) <> 0 Then
  3936.      If InStr(1, UCase(ooo), UCase(append_end1)) <> 0 Then
  3937.          append_end1 = Mid(ooo, InStr(1, UCase(ooo), UCase(append_end1)), Len(append_end1))
  3938.         tot_s1 = tot_s1 - 1         'january 06 2001
  3939.        new1 = SSS1
  3940.         new2 = SSS2
  3941.         new3 = SSS3
  3942.         new4 = SSS4 '09 june 2002
  3943.        new5 = SSS5
  3944.         new6 = SSS6
  3945. 'april 10 2001        SSS1 = "append end"
  3946.        
  3947.         SSS1 = append_end1
  3948.         SSS2 = ""
  3949.         SSS3 = ""
  3950.         SSS4 = "" '09 june 2002
  3951.        SSS5 = ""
  3952.         SSS6 = ""
  3953.         temp_fore = Set_Fore
  3954.         Set_Fore = AltColor
  3955.         aaa = ooo + ""
  3956.         GoSub sub_12000
  3957.         SSS1 = new1
  3958.         SSS2 = new2
  3959.         SSS3 = new3
  3960.         SSS4 = new4 '09 june 2002
  3961.        SSS5 = new5
  3962.         SSS6 = new6
  3963.         Set_Fore = temp_fore
  3964.         GoTo line_2300
  3965.     End If              'hilite any append lines i put in
  3966.    ' with the ucase stuff below
  3967.    If (InStr(1, UCase(ooo), UCase(hilite_this)) <> 0 And _
  3968.        hilite_this <> "" And hilite_this <> "     ") Then
  3969.         hilite_this = Mid(ooo, InStr(1, UCase(ooo), UCase(hilite_this)), Len(hilite_this))
  3970.         tot_s1 = tot_s1 - 1         'january 06 2001
  3971.        new1 = SSS1
  3972.         new2 = SSS2
  3973.         new3 = SSS3
  3974.         new4 = SSS4 '09 june 2002
  3975.        new5 = SSS5
  3976.         new6 = SSS6
  3977.         If hilite_hh = "Y" Then
  3978.             GoSub hilite_25500
  3979.         End If              'april 22 2001
  3980.        SSS1 = hilite_this
  3981.         SSS2 = ""
  3982.         SSS3 = ""
  3983.         SSS4 = ""   '09 june 2002
  3984.        SSS5 = ""
  3985.         SSS6 = ""
  3986.         temp_fore = Set_Fore
  3987.         Set_Fore = AltColor
  3988.         aaa = ooo + ""
  3989.         GoSub sub_12000
  3990.         SSS1 = new1
  3991.         SSS2 = new2
  3992.         SSS3 = new3
  3993.         SSS4 = new4 '09 june 2002
  3994.        SSS5 = new5
  3995.         SSS6 = new6
  3996.         Set_Fore = temp_fore
  3997.         GoTo line_2300
  3998.     End If              'hilite control element Cmd(31) info only hilites data not on matching line
  3999.  
  4000.  
  4001. line_2225:
  4002.     'november 10 2000
  4003.        new1 = SSS1
  4004.         new2 = SSS2
  4005.         new3 = SSS3
  4006.         new4 = SSS4 '09 june 2002
  4007.        new5 = SSS5
  4008.         new6 = SSS6
  4009.        
  4010.         SSS1 = ""
  4011.         SSS2 = ""
  4012.         SSS3 = ""
  4013.         SSS4 = ""
  4014.         SSS5 = ""
  4015.         SSS6 = ""
  4016.         GoSub sub_12000
  4017.         SSS1 = new1
  4018.         SSS2 = new2
  4019.         SSS3 = new3
  4020.         SSS4 = new4
  4021.         SSS5 = new5
  4022.         SSS6 = new6
  4023.        
  4024. line_2300:
  4025.     'lots need to be done around here in the future.
  4026.    
  4027.  '   Print Left(ooo, 70)
  4028. '   Print Mid(ooo, 71, 70)
  4029. '   Print Mid(ooo, 141, 70)
  4030. '   Print Mid(ooo, 211, 70)
  4031. '   Print Mid(ooo, 281, 70)
  4032. '   Print Mid(ooo, 351, 70)
  4033. '   Print Mid(ooo, 421, 70)
  4034. '   Print Mid(ooo, 491, 70)
  4035. '   Print Mid(ooo, 561, 70)
  4036. '   Print Mid(ooo, 631, 70)
  4037.        
  4038.  
  4039. line_3010:
  4040.        
  4041.     save_line = "3010"    'for error handling
  4042.    If Picture_Search = "YES" And InStr(UCase(Next_line), "XXX.") <> 0 Then
  4043.         Next_line = ""
  4044.         aaa = Next_line_save
  4045.         GoTo line_1002
  4046.             'we read ahead looking at the next line
  4047.    End If              'march 31/00
  4048.    
  4049.     If cnt < MAX_CNT Then
  4050.         GoTo input_1000
  4051.     End If
  4052.     yyy = ""
  4053. line_3020:
  4054.     save_line = "3020"    'for error handling
  4055.    If ttt <> "F" Then
  4056.         II = DoEvents       'yield to operating system
  4057.    End If      'aug 24/99
  4058.  
  4059. ' placing the InputBox at position 10,000 x 10,000 puts it
  4060.   ' off the screen / thus hiding it...
  4061. '10 January 2005    If Not text_pause Then  '06 January 2005  just added the if statement around the print below
  4062.    If Not text_pause Or p2p2 = "F" Then  '10 January 2005  just added the if statement around the print below
  4063.        ForeColor = QBColor(Val(Cmd(5)))
  4064.         Print Format(zzz_cnt, "  #########");
  4065.     End If              '06 January 2005
  4066. 'january 05 2001 display "next match" or "next screen" here
  4067. '    Print " do you want to continue y/n <y> 'a' for all 'b' for back, '.' for new search"
  4068.    tt1 = "MATCH"                     'january 05 2001
  4069.    If inin = "A" Then tt1 = "SCREEN" 'january 05 2001
  4070.    Test1_str = ""
  4071.     If line_len > Val(Cmd(21)) And extract_yes <> "YES" Then
  4072.         line_len = Val(Cmd(21)) 'january 06 2001
  4073.        Test1_str = "NOWRAP"
  4074.     End If
  4075. '24 august 2002
  4076.    dblEnd = Timer      'get the end time
  4077. '    temptemp = InputBox("01 september 2002 " + p2p2 + CStr(zzz_cnt), "flash", , 2000, 2000)
  4078. 'what the hey ***vip*** todo why does the following fix need to be used as the
  4079. 'flash failed to work once the line was put in..... fix it when ever
  4080.    If p2p2 <> "F" Then yyy = " elap=" + Format(dblEnd - dblStart, "#####0.000") + " Chrs= " + CStr(zzz_chrs)
  4081. '01 september 2002    yyy = " elap=" + Format(dblEnd - dblStart, "###0.000") + " Chrs= " + CStr(zzz_chrs)
  4082. '    zzz_chrs = 0        '25 august 2002
  4083. '06 January 2005 move the text_pause code from below a few lines to here, no need to see this prompt
  4084. ' when the screen is going to continue on its own
  4085. '10 January 2005    If text_pause Then
  4086.    If text_pause And p2p2 <> "F" Then
  4087.         frmproj2.Caption = " #4 Pause at line= " + CStr(zzz_cnt) '06 January 2005
  4088.            new_delay_sec = Val(Cmd(27))    '03 September 2004
  4089.            GoSub line_30300            '03 September 2004
  4090. '03 September 2004        GoSub line_30000
  4091.            Cls '06 September 2004
  4092.        yyy = ""
  4093.         GoTo line_3050
  4094.     End If              '05 october 2002
  4095.    
  4096.     Print " prompt #4 Enter for next " + tt1 + " y/n <y> 'a' =all, 'b' =back, '.'" + yyy + Test1_str + " Hits="; tot_s1; " "; tot_s2; " "; tot_s3; " "; tot_s4; " "; tot_s5; " "; tot_s6
  4097.     ForeColor = QBColor(Def_Fore)
  4098.    
  4099.     If show_files_yn Then frmproj2.Caption = program_info + random_info + stretch_info + "  " + show_files '24 december 2002
  4100.  
  4101.     If SAVE_ttt = "F" And hi_lites <> "YES" Then
  4102.  
  4103. 'even with the following code the above " End of Screen" line only showed in about
  4104. ' 80% of the interrupts. It did noticably slow down the flash display february 20 2001
  4105. '        For III = 1 To 1000
  4106. '            DoEvents    'february 20 2001
  4107. '            II = InStr(ooo, "xxx")  'dummy line did a little bit to enable interrupt display but not much
  4108. '        Next III        'to allow for the interrupt to display above end of screen line
  4109.        GoTo line_3500
  4110.     End If
  4111.     If SAVE_ttt = "F" Then      '10 January 2005
  4112.        new_delay_sec = Val(Cmd(27))
  4113.         GoSub line_30300
  4114.         Cls
  4115.         GoTo line_3050
  4116.     End If              '10 January 2005
  4117. '06 January 2005
  4118. '    If text_pause Then
  4119. '            new_delay_sec = Val(Cmd(27))    '03 September 2004
  4120. '            GoSub line_30300            '03 September 2004
  4121. '03 September 2004        GoSub line_30000
  4122. '            Cls '06 September 2004
  4123. '        yyy = ""
  4124. '        GoTo line_3050
  4125. '    End If              '05 october 2002
  4126. '06 January 2005
  4127. '       * * * C O N T I N U E   D I S P L A Y   * * *
  4128. line_3030:              'november 14 2000
  4129.    If page_prompt = "NO" Then
  4130.         yyy = ""
  4131.         If prompt2 = "C" Then
  4132.             mess_cnt = mess_cnt + 1 'january 02 2001
  4133.            Print #ExtFile, "------------------- next message "; Format(mess_cnt, "#####0"); " ---------------------"
  4134.         End If
  4135.         GoTo line_3050
  4136.     End If          'december 31 2000
  4137.  
  4138. 'main end of screen prompt here----------------------------------------
  4139.    If screen_capture = "YES" Then
  4140. '03 September 2004        delay_sec = 5      'march 15 2001
  4141. '03 September 2004        GoSub line_30000
  4142.            new_delay_sec = 5    '03 September 2004
  4143.            GoSub line_30300            '03 September 2004
  4144.    End If
  4145. line_3040:
  4146.         If search_str = "CC" And p2p2 = "S" Then
  4147.             tt1 = "P"
  4148.             yyy = "P"
  4149.             p2p2 = "C"
  4150.             prompt2 = "C"
  4151.             SAVE_ttt = "C"
  4152.             GoTo skip_input_tt1
  4153.         'need to read to previous_count after a close and open
  4154.        End If                  '26 august 2002
  4155.    yyy = InputBox("Do you want to continue y/n <y>", "Continue Prompt", , 20000, 20000)
  4156.     dblStart = Timer      'get the start time 24 august 2002
  4157. skip_input_tt1:                 '26 august 2002
  4158. '    frmproj2.AutoRedraw = False      '04 January 2005
  4159.    Cls                             'november 10 needed with the autoredraw
  4160.    If auto_redraw = "YES" Then frmproj2.AutoRedraw = False      'november 10 2001 autoredraw pair-4
  4161.    yyy = UCase(yyy)
  4162.         'COULD DO THINGS WITH THIS PROMPT AS WELL (FUTURE)
  4163. 'april 22 2001 allow for any HH element to be displayed
  4164. line_3045:          'october 21 2001
  4165.    If hilite_hh = "Y" And yyy = "HH" And hilite_cnt > 0 Then
  4166.         For II = 1 To hilite_cnt
  4167.         Pict_file = cript2(II)       ' testing this area
  4168.        'pg328 the stretch property - if set to true, the picture loaded into
  4169.        '  the image control via the Picture property is stretched (see below)
  4170.    If debug_photo Then         '12 october 2002
  4171.            tt1 = InputBox("testing photo 6a", , , 4400, 4500)  'TESTING ONLY
  4172.    End If
  4173. '03 August 2003 do same here Meebee even allow for size to determine FIT or REG ???? another option ????
  4174.        
  4175.     line_fit = ""                '03 August 2003
  4176.    If InStr(1, UCase(aaa), "FIT==") <> 0 Then
  4177.             line_fit = "FIT"
  4178.     End If                  '03 August 2003
  4179.    
  4180.     If InStr(1, UCase(aaa), "REG==") <> 0 Then
  4181.             line_fit = "REG"
  4182.     End If                  '03 August 2003
  4183.    
  4184.     If (img_ctrl = "YES" Or line_fit = "FIT") And line_fit <> "REG" Then
  4185.         Set Image1.Picture = LoadPicture(Pict_file) 'Stretch Mode
  4186. '        xtemp = InputBox(" testing doug#2  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  4187.    End If              'february 21 2001
  4188.  
  4189.     If (img_ctrl <> "YES" And line_fit <> "FIT") Or line_fit = "REG" Then
  4190. '    If img_ctrl <> "YES" Or line_fit = "REG" Then
  4191.        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  4192. '        xtemp = InputBox(" testing doug#1  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  4193.    End If              'february 21 2001
  4194.  
  4195.        
  4196. '-------------
  4197. '03 August 2003        If img_ctrl = "YES" Then
  4198. '            Set Image1.Picture = LoadPicture(Pict_file)
  4199. '        Else
  4200. '            Set Picture = LoadPicture(Pict_file)
  4201. '        End If
  4202.        xtemp = InputBox("show picture and wait", "Continue Prompt", , 20000, 20000)
  4203.        
  4204. '03 august 2003        If img_ctrl = "YES" Then
  4205. '            Set Image1.Picture = LoadPicture()
  4206. '        Else
  4207. '            Set Picture = LoadPicture()
  4208. '        End If
  4209.    If (img_ctrl = "YES" Or line_fit = "FIT") And line_fit <> "REG" Then
  4210.         Set Image1.Picture = LoadPicture() 'Stretch Mode
  4211. '        xtemp = InputBox(" testing doug#4  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  4212.    End If              'february 21 2001
  4213.  
  4214.     If (img_ctrl <> "YES" And line_fit <> "FIT") Or line_fit = "REG" Then
  4215. '    If img_ctrl <> "YES" And line_fit <> "FIT" Then
  4216. '    If img_ctrl <> "YES" Or line_fit = "REG" Then
  4217.        Set Picture = LoadPicture()        'Normal Mode lp#5
  4218. '        xtemp = InputBox(" testing doug#5  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  4219.    End If              'february 21 2001
  4220.  
  4221.        
  4222.         Next II
  4223.         hh_cnt = zzz_cnt
  4224.         hilite_cnt = 0
  4225.         yyy = "B"       'may want to make this "V" todo **vip**
  4226. 'testing to see if I can get the screen re-displayed(text)
  4227. '        GoTo line_3040
  4228.    End If                              'april 22 2001
  4229.    hilite_cnt = 0                      'april 22 2001
  4230.  
  4231. '    If yyy = "A" Then
  4232.    If yyy = "A" Or (yyy = "" And inin = "A") Then 'january 04 2001
  4233.        inin = "A"
  4234.         SSS1 = KEEPS1
  4235.         SSS2 = KEEPS2
  4236.         SSS3 = KEEPS3
  4237.         SSS4 = KEEPS4
  4238.         SSS5 = KEEPS5
  4239.         SSS6 = KEEPS6
  4240.        
  4241.         hi_lites = "YES"
  4242. '        hi_lites = ""
  4243.        yyy = ""
  4244.         prompt2 = "C"
  4245.         SAVE_ttt = "C"
  4246.         line_match = ""    'this gets rid of the first one printing hilited
  4247.                            ' if the previous page had one hilited???
  4248.    End If                  'january 03a 2001 testing
  4249.    If inin <> "A" Then
  4250.         array_pos = 0
  4251.         array_prt = 0
  4252.     End If                  'january 21 2001
  4253. line_3050:
  4254.  '       Print "tt1="; tt1; "=previous_count ="; previous_count
  4255. '       tt1 = InputBox("testing only", , , 4400, 4500)  'TESTING ONLY
  4256. '       If tt1 = "x" Or tt1 = "X" Then
  4257. '           GoTo End_32000
  4258. '       End If          'testing
  4259.        tt1 = yyy
  4260.        
  4261.         If tt1 = "F" Then
  4262.             SAVE_ttt = "F"      'november 14 2000
  4263.            yyy = "."           'december 25 2000
  4264.            tt1 = "."           'december 25 2000
  4265. '            GoTo line_3030     'december 25 2000
  4266.        End If
  4267. '19 December 2004        If tt1 = "P" And ddemo <> "YES" Then
  4268.        If (tt1 = "P" Or tt1 = "J") And ddemo <> "YES" Then
  4269.             tt1 = "P"           '19 December 2004
  4270. '--------------------------------------------------------------
  4271. 'november 8 2000
  4272.            If prompt2 = "Q" Then
  4273.                 prompt2 = "C"
  4274.                 SAVE_ttt = "C"
  4275.                 SSS1 = UCase(SSS1)
  4276.                 SSS2 = UCase(SSS2)
  4277.                 SSS3 = UCase(SSS3)
  4278.                 SSS4 = UCase(SSS4)
  4279.                 SSS5 = UCase(SSS5)
  4280.                 SSS6 = UCase(SSS6)
  4281.             End If
  4282. '--------------------------------------------------------------
  4283. '26 august 2002            pp = previous_count - 1
  4284. '   this logic only does the "CC" search once could be reset for each new search
  4285. '   but once the search is half way thru the file there may be no time savings
  4286. '   at least on the first search if no match it will be much much quicker
  4287. '   26 august 2002
  4288. '        temptemp = InputBox(" 26 august at previous ", "prompt2= " + prompt2 + p2p2 + " " + CStr(zzz_cnt), , xx1 - offset1, yy1 - offset2)
  4289.            pp = previous_count     '26 august 2002
  4290.            If search_str <> "CC" Then pp = previous_count - 1
  4291.             'same logic for previous match as previous picture
  4292. line_3200:
  4293.             If pp < 1 Then
  4294.                 pp = 100
  4295.             End If
  4296.             Close #OutFile
  4297.             II = DoEvents
  4298.             OutFile = FreeFile
  4299.             Open TheFile For Input As #OutFile
  4300.             II = DoEvents       'yield to operating system
  4301. 'if previous_picture count is on the same page go 1 more back
  4302.        If previous_picture(pp) + MAX_CNT > zzz_cnt And previous_picture(pp - 1) <> 0 Then
  4303.             pp = pp - 1
  4304.             GoTo line_3200
  4305.         End If
  4306.        
  4307.         For bbb = 1 To previous_picture(pp) - MAX_CNT
  4308.             Line Input #OutFile, aaa
  4309.         Next bbb
  4310.         Previous_line = aaa
  4311.         Line Input #OutFile, aaa
  4312.         zzz_cnt = bbb
  4313.         previous_count = pp - 1
  4314. '        hi_lites = "NO"     'the only difference between text and photo
  4315. '19 August 2003        Cls
  4316.        yyy = ""
  4317. '        Print "previous_picture(previous_count)zzz_cnt,previous_count"; TheFile; previous_picture(previous_count); "="; zzz_cnt, previous_count
  4318. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  4319. '
  4320. '        GoTo input_1000
  4321.        'read up to the previous picture appx cnt
  4322.        End If
  4323.     hi_lites = "NO"     'flash display
  4324.    printed_cnt = 1         'may 10/00
  4325.    printed = "NO"
  4326.    
  4327.     If SAVE_ttt = "C" Then
  4328.     For temp1 = 1 To MAX_CNT
  4329.         Context_text(temp1) = ""     'aug 08/99
  4330.    Next temp1
  4331.     End If                      'aug 08/99
  4332.    
  4333.     'allow for full display if "A" entered at this prompt
  4334.    If yyy = "A" Then
  4335.         SSS1 = "A"
  4336.         SSS = "A"
  4337.         SAVE_SSS = "A"
  4338.         inin = "A"
  4339.         SAVE_KEEPS1 = "A"
  4340.         SAVE_KEEPS2 = ""
  4341.         SAVE_KEEPS3 = ""
  4342.         SAVE_KEEPS4 = ""
  4343.         SAVE_KEEPS5 = ""
  4344.         SAVE_KEEPS6 = ""
  4345.        
  4346.         yyy = ""
  4347. '        SAVE_ttt = "S"
  4348.        'december 22 2000
  4349.        prompt2 = "C"   'december 22 2000
  4350.        SAVE_ttt = "C"  'december 22 2000
  4351.    End If
  4352. 'allow them to back up 1 page or what ever number of lines in Cmd(23)
  4353. line_3300:
  4354. 'january 06 2001    If yyy = "B" Then
  4355.    If yyy = "B" Or yyy = "V" Then
  4356. '        Print "previous_picture(previous_count)zzz_cnt,previous_count"; TheFile; previous_picture(previous_count); "="; zzz_cnt, previous_count
  4357. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  4358.        If yyy = "V" Then
  4359.             line_len = 5000   'january 06 2001
  4360.            yyy = "B"
  4361.         End If
  4362.         If prompt2 = "Q" Then
  4363.             prompt2 = "C" 'october 22 2000
  4364.            If previous_picture(previous_count) <> 0 Then
  4365.                 zzz_cnt = previous_picture(previous_count)
  4366.             End If
  4367.         End If
  4368. '--------------------------------------------------------
  4369. 'january 04b 2001 to allow for the B to keep the hilites
  4370.        inin = "A"
  4371.         SSS1 = KEEPS1
  4372.         SSS2 = KEEPS2
  4373.         SSS3 = KEEPS3
  4374.         SSS4 = KEEPS4
  4375.         SSS5 = KEEPS5
  4376.         SSS6 = KEEPS6
  4377.         hi_lites = "YES"
  4378. '        hi_lites = ""
  4379.        yyy = ""
  4380.         prompt2 = "C"
  4381.         SAVE_ttt = "C"
  4382.         line_match = ""    'this gets rid of the first one printing hilited
  4383.  
  4384. '--------------------------------------------------------
  4385. 'january 04b 2001 to allow for the B to keep the hilites
  4386. '        SSS1 = "A"
  4387. '        SSS = "A"
  4388. '        SAVE_SSS = "A"
  4389. '        inin = "A"
  4390. '        SAVE_KEEPS1 = "A"
  4391. '        SAVE_KEEPS2 = ""
  4392. '        SAVE_KEEPS3 = ""
  4393. '        yyy = ""
  4394. '--------------------------------------------------------
  4395.        Close #OutFile
  4396.         DoEvents
  4397.         Open TheFile For Input As #OutFile
  4398.         II = DoEvents       'yield to operating system
  4399.        If cnt > MAX_CNT Then
  4400.             tt = cnt - MAX_CNT
  4401.             wrap_cnt = wrap_cnt - tt
  4402.             cnt = MAX_CNT 'january 08a 2001
  4403.        End If
  4404.   '     xtemp = InputBox("testing prompt_=" + CStr(zzz_cnt) + " " + CStr(wrap_cnt) + " " + CStr(cnt), "test", , 4400, 4500) '
  4405. '   xtemp = InputBox("testing prompt=" + AllSearch(1) + "*" + ttt + " " + SSS1 + " " + SSS2 + " " + SSS3 + " " + CStr(zzz_cnt), "test", , 4400, 4500) '
  4406. '     If UCase(xtemp) = "X" Then GoTo End_32000
  4407.    
  4408. '        For bbb = 1 To zzz_cnt - MAX_CNT - MAX_CNT + wrap_cnt - 1
  4409.        If hilite_hh = "Y" Then zzz_cnt = hh_cnt + MAX_CNT     'april 22 2001
  4410.        For bbb = 1 To zzz_cnt - MAX_CNT - MAX_CNT + wrap_cnt - MAX_CNT + cnt
  4411.             Line Input #OutFile, aaa
  4412.         Next bbb
  4413.         zzz_cnt = bbb - 1
  4414.     End If
  4415.     wrap_cnt = 0            'january 07 2001
  4416.    
  4417.     If yyy = "." Then
  4418.         TheSearch = "."
  4419.         ttt = "."
  4420.         GoSub Search_26000
  4421.         If prompt2 = "C" Then
  4422.             SSS = UCase(ttt)
  4423.         Else
  4424.             SSS = ttt
  4425.         End If          'december 29 2000
  4426.        If Len(SSS) < 2 Then GoTo What_50   'january 05 2001
  4427.        SSS2 = ""       'december 28 2000
  4428.        SSS3 = ""       'december 28 2000
  4429.        SSS4 = ""       '09 june 2002
  4430.        SSS5 = ""
  4431.         SSS6 = ""
  4432. 'december 22 2000
  4433.    If SSS = "A" Then
  4434.         SSS1 = "A"
  4435.         SSS = "A"
  4436.         SAVE_SSS = "A"
  4437.         inin = "A"
  4438.         SAVE_KEEPS1 = "A"
  4439.         SAVE_KEEPS2 = ""
  4440.         SAVE_KEEPS3 = ""
  4441.         SAVE_KEEPS4 = ""
  4442.         SAVE_KEEPS5 = ""
  4443.         SAVE_KEEPS6 = ""
  4444.         yyy = ""
  4445. '        SAVE_ttt = "S"
  4446.        'december 22 2000
  4447.        prompt2 = "C"   'december 22 2000
  4448.        SAVE_ttt = "C"  'december 22 2000
  4449.    End If
  4450.        
  4451.         'do the parse again
  4452.    'PARSE THE SSS STRING INTO PARTS SSS1 SSS2 AND SSS3
  4453. line_3350:
  4454.     i = InStr(SSS, "  ")
  4455.     If i <> 0 Then
  4456.         SSS = Left(SSS, i) + Mid(SSS, i + 2)
  4457.         GoTo line_3350
  4458.     End If
  4459.    
  4460.     i = InStr(SSS, sep)
  4461.     SSS1 = SSS + ""
  4462.     s1len = Len(SSS1)
  4463.     inin = SSS + ""         'june 13/99
  4464.    If i = 0 Then
  4465.         GoTo line_3400
  4466.     End If
  4467.     SSS1 = Left(SSS, i - 1)
  4468.     s1len = Len(SSS1)
  4469.     j = Len(SSS)
  4470.     SSS = Right(SSS, j - i)
  4471.  
  4472.     i = InStr(SSS, sep)
  4473.     SSS2 = SSS
  4474.     s2len = Len(SSS2)
  4475.     If i = 0 Then
  4476.         GoTo line_3400
  4477.     End If
  4478.     SSS2 = Left(SSS, i - 1)
  4479.     s2len = Len(SSS2)
  4480.     j = Len(SSS)
  4481.     SSS = Right(SSS, j - i)
  4482.  '=========================================
  4483.    i = InStr(SSS, sep)
  4484.     SSS3 = SSS
  4485.     s3len = Len(SSS3)
  4486.     If i = 0 Then
  4487.         GoTo line_3400
  4488.     End If
  4489.     SSS3 = Left(SSS, i - 1)
  4490.     s3len = Len(SSS3)
  4491.     j = Len(SSS)
  4492.     SSS = Right(SSS, j - i)
  4493.  '-----------------------------------------
  4494.     i = InStr(SSS, sep)
  4495.     SSS4 = SSS
  4496.     s4len = Len(SSS4)
  4497.     If i = 0 Then
  4498.         GoTo line_3400
  4499.     End If
  4500.     SSS4 = Left(SSS, i - 1)
  4501.     s4len = Len(SSS4)
  4502.     j = Len(SSS)
  4503.     SSS = Right(SSS, j - i)
  4504.  
  4505.  '-----------------------------------------
  4506.     i = InStr(SSS, sep)
  4507.     SSS5 = SSS
  4508.     s5len = Len(SSS5)
  4509.     If i = 0 Then
  4510.         GoTo line_3400
  4511.     End If
  4512.     SSS5 = Left(SSS, i - 1)
  4513.     s5len = Len(SSS5)
  4514.     j = Len(SSS)
  4515.     SSS = Right(SSS, j - i)
  4516.  
  4517. '------------------------------------------
  4518.    SSS6 = Right(SSS, j - i)
  4519.     s6len = Len(SSS6)
  4520.  
  4521.  
  4522. line_3400:
  4523.     GoSub line_14500        'check for imbedded spaces in search strings
  4524.                            'january 19 2001
  4525.  
  4526.         yyy = ""
  4527.  
  4528.     End If          'end if for "." search string recall
  4529.  
  4530.     'allow for a stop to see if screen remains
  4531.    If yyy = "S" Then
  4532.         Close #OutFile
  4533.         II = DoEvents
  4534.         GoTo End_32000
  4535.     End If
  4536. line_3500:
  4537.     save_line = "3500"
  4538.    
  4539. '17 September 2004 dougheredoughere
  4540.    If Left(UCase(Cmd(69)), 8) = "HIT_STOP" And InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  4541.         GoTo End_32000 '17 September 2004
  4542.    End If          '17 September 2004
  4543. line_4000:
  4544.     save_line = "4000"
  4545.     cnt = 0
  4546.     If yyy <> "Y" And yyy <> "" Then
  4547.  
  4548.         Close #OutFile
  4549.         Close #ExtFile          'november 14 2000
  4550.        line_len = Val(Cmd(21)) 'november 14 2000
  4551.        extract_yes = "NO"      'november 14 2000
  4552.        II = DoEvents       'yield to operating system
  4553.        GoTo Do_Search_110
  4554.  '       GoTo File_40      'january 01 2001
  4555.    End If
  4556. '20 August 2003 the cls was moved to the last_lines_1500 routine
  4557. '20 August 2003    Cls     'clear the current form
  4558.    If SAVE_ttt = "F" Then Cls     '20 august 2003a
  4559.  
  4560.     GoTo input_1000
  4561.    
  4562.    
  4563. 'Subroutines start here ----------------------------
  4564. sub_10000:
  4565.    sslen = 0
  4566.    s1 = 0
  4567.    s2 = 0
  4568.    s3 = 0
  4569.    s4 = 0       '23 june 2002
  4570.   s5 = 0
  4571.    s6 = 0
  4572.    ss = 1000
  4573.  
  4574.     If SSS1 <> "" Then
  4575.        s1 = InStr(aaa, SSS1)
  4576.     End If
  4577.     If SSS2 <> "" Then
  4578.         s2 = InStr(aaa, SSS2)
  4579.     End If
  4580.     If SSS3 <> "" Then
  4581.         s3 = InStr(aaa, SSS3)
  4582.     End If
  4583.     If SSS4 <> "" Then
  4584.         s4 = InStr(aaa, SSS4)   '23 june 2002
  4585.    End If
  4586.     If SSS5 <> "" Then
  4587.         s5 = InStr(aaa, SSS5)
  4588.     End If
  4589.     If SSS6 <> "" Then
  4590.         s6 = InStr(aaa, SSS6)
  4591.     End If
  4592.  
  4593.    If s1 < ss And s1 <> 0 Then
  4594.        ss = s1
  4595.        sslen = s1len
  4596.    End If
  4597.    If s2 < ss And s2 <> 0 Then
  4598.        ss = s2
  4599.        sslen = s2len
  4600.    End If
  4601.    If s3 < ss And s3 <> 0 Then
  4602.        ss = s3
  4603.        sslen = s3len
  4604.    End If
  4605.    If s4 < ss And s4 <> 0 Then
  4606.        ss = s4              '23 june 2002
  4607.       sslen = s4len
  4608.    End If
  4609.    If s5 < ss And s5 <> 0 Then
  4610.        ss = s5
  4611.        sslen = s5len
  4612.    End If
  4613.    If s6 < ss And s6 <> 0 Then
  4614.        ss = s6
  4615.        sslen = s6len
  4616.    End If
  4617.  
  4618. '    If ss = s1 Then
  4619. 'december 5 2000        SSS1 = ""
  4620. '    End If
  4621. '    If ss = s2 Then
  4622. 'december 5 2000        SSS2 = ""
  4623. '    End If
  4624. '    If ss = s3 Then
  4625. 'december 5 2000        SSS3 = ""
  4626. '    End If
  4627.  
  4628.     If ss = 1000 Then
  4629.             ss = 0
  4630.     End If
  4631.    
  4632. Return
  4633.  
  4634. sub_12000:         'hi-lite print subroutine here
  4635. 'need the tabs to spaces where it is. Spaces may be in the search for matches?
  4636. ' test to eliminate excess prints
  4637.    '20 May 2003 note I may want to de-activate the following change along with
  4638.    '            the other one for 20 May 2003 this data is now displayed in
  4639.    '            the detail display / caption option....
  4640. '    If sscreen_saver = "Y" Then GoTo line_13999      '20 May 2003
  4641. '        testprompt = InputBox("testing prompt 12050=" + sscreen_saver + " " + disp_file + " " + aaa, "test", , 4400, 4500)  '
  4642. line_12050:     'january 15 2001
  4643.    If array_pos <> 0 Then
  4644.         data_aaa = aaa + ""
  4645.         data_ooo = ooo + ""
  4646.         endstuff = "YES"
  4647.         array_prt = array_prt + 1
  4648.         aaa = array_aaa(array_prt)
  4649.         ooo = array_ooo(array_prt)
  4650.         SSS1 = KEEPS1       'january 24 2001
  4651.        If SSS1 = "A" Then SSS1 = ""    'january 25 2001
  4652.        SSS2 = KEEPS2
  4653.         SSS3 = KEEPS3       'january 24 2001
  4654.        SSS4 = KEEPS4       '09 june 2002
  4655.        SSS5 = KEEPS5
  4656.         SSS6 = KEEPS6
  4657. '        testprompt = InputBox("testing prompt 12050=" + CStr(array_prt) + " " + data_ooo + " " + CStr(array_pos) + " " + array_ooo(array_prt), "test", , 4400, 4500) '
  4658.        GoTo line_12120       'january 21 2001
  4659.    End If
  4660. line_12053:                     'january 21 2001
  4661.    endstuff = "NO"             'january 21 2001
  4662.    data_aaa = aaa + " "
  4663.     data_ooo = ooo + " "
  4664.     tot_print = 0
  4665. line_12055:
  4666.     'below reduce multiple trailing spaces to 1
  4667.    JJ = Len(data_aaa)
  4668.     If JJ < 2 Then GoTo line_12070
  4669.     If Right(data_aaa, 2) = "  " Then
  4670.         data_aaa = Left(data_aaa, JJ - 1)
  4671.         data_ooo = Left(data_ooo, JJ - 1)
  4672.         GoTo line_12055
  4673.     End If
  4674.  
  4675. line_12070:
  4676.     aaa = data_aaa + ""
  4677.     ooo = data_ooo + ""
  4678. line_12100:
  4679.    
  4680.     'now do a search for the match strings.
  4681.    match_flag = "YES"
  4682. 'is there a match of the 3 elements in this string YES or NO
  4683.    If SSS1 = "" Then match_flag = "NO"
  4684.     If SSS1 <> "" And InStr(aaa, SSS1) = 0 Then
  4685.         match_flag = "NO"
  4686.         GoTo line_12110
  4687.     End If
  4688.     If SSS2 <> "" And InStr(aaa, SSS2) = 0 Then
  4689.         match_flag = "NO"
  4690.         GoTo line_12110
  4691.     End If
  4692. '23 june 2002 add 4 5 and 6 below
  4693.    If SSS3 <> "" And InStr(aaa, SSS3) = 0 Then
  4694.         match_flag = "NO"
  4695.         GoTo line_12110
  4696.     End If
  4697.     If SSS4 <> "" And InStr(aaa, SSS4) = 0 Then
  4698.         match_flag = "NO"
  4699.         GoTo line_12110
  4700.     End If
  4701.     If SSS5 <> "" And InStr(aaa, SSS5) = 0 Then
  4702.         match_flag = "NO"
  4703.         GoTo line_12110
  4704.     End If
  4705.     If SSS6 <> "" And InStr(aaa, SSS6) = 0 Then match_flag = "NO"
  4706. line_12110:
  4707.     If Len(aaa) > line_len + over_lap Then
  4708.         GoTo line_13000     'do the line wrap inserts etc
  4709.    End If
  4710. line_12120:     'return from the wrap logic here if required.
  4711. '   If zzz_cnt > 43180 Then
  4712. '        testprompt = InputBox("testing prompt 12120=" + match_flag + "*" + SSS1 + "*" + SSS2 + "*" + SSS3 + "*" + SSS4 + "*" + SSS5 + "*" + SSS6, , , 4400, 4500) 'TESTING ONLY
  4713. '         If tt1 = "X" Or tt1 = "x" Then
  4714. '            GoTo End_32000
  4715. '        End If              'testing only
  4716. '   End If
  4717.    If match_flag = "YES" Then GoTo line_12500   '
  4718. line_12125:
  4719.    
  4720.     If Left(UCase(Cmd(77)), 16) = "CHARACTERPAUSE==" Then     '03 January 2005
  4721.            new_delay_sec = Val(Right(Cmd(77), Len(Cmd(77)) - 16))
  4722.             tempss = ooo                '03 January 2005
  4723.            For temp1 = 1 To Len(tempss)
  4724.              Print Left(tempss, 1);
  4725.              tempss = Right(tempss, Len(tempss) - 1)
  4726.             GoSub line_30300            '03 January 2005
  4727.            Next temp1
  4728.        
  4729.     Else
  4730.         Print ooo;
  4731.     End If                  '03 January 2005
  4732.    tot_print = tot_print + Len(ooo)
  4733.         If extract_yes = "YES" Then
  4734.             Print #ExtFile, ooo;
  4735.         End If
  4736.  '24 December 2004 put the timer in here???
  4737.    If Left(Cmd(76), 11) = "LINEPAUSE==" Then
  4738.             new_delay_sec = Val(Right(Cmd(76), Len(Cmd(76)) - 11))
  4739.             GoSub line_30300            '24 December 2004
  4740.    End If                      '24 December 2004
  4741.  
  4742. line_12130:
  4743.     If array_prt > 1 Then
  4744.         cnt = cnt + 1
  4745.         wrap_cnt = wrap_cnt + 1
  4746.     End If
  4747.              posstring = ""          'december 6 2000
  4748.             If showasc = "Y" Then
  4749.                  II = Len(ooo)
  4750.                  If II > 10 Then II = 10
  4751.                  ytemp = Right(ooo, II)
  4752.                  xtemp = ""
  4753.                  For III = 1 To II
  4754.                      xtemp = xtemp + CStr(Asc(Mid(ytemp, III, 1))) + " "
  4755.                  Next III
  4756.                  posstring = xtemp + "(" + ytemp + ")"
  4757.              End If              'december 11 2000
  4758.            If showpos = "Y" Then posstring = "*=" + CStr(tot_print) + " " + CStr(cnt)
  4759.     Print ; posstring
  4760.  '24 December 2004 put the timer in here???
  4761.    If Left(Cmd(76), 11) = "LINEPAUSE==" Then
  4762.             new_delay_sec = Val(Right(Cmd(76), Len(Cmd(76)) - 11))
  4763.             GoSub line_30300            '24 December 2004
  4764.    End If                      '24 December 2004
  4765.    tot_print = 0
  4766.         If extract_yes = "YES" Then
  4767.             Print #ExtFile,
  4768.         End If
  4769.     'check for screen full here 'to be done yet
  4770. 'at this point need to check for screen full and exit out if need be but do later
  4771. line_12135:                 'january 21 2001
  4772.    If cnt >= MAX_CNT Then
  4773.         If array_prt = array_pos Then
  4774.             array_prt = 0
  4775.             array_pos = 0
  4776.         End If
  4777.         GoTo line_14222
  4778.     End If
  4779. line_12140:
  4780.     If array_pos < 1 Then GoTo line_14222
  4781. line_12150:
  4782.     array_prt = array_prt + 1
  4783. line_12160:
  4784.     If array_prt > array_pos Then
  4785.         array_prt = 0
  4786.         array_pos = 0
  4787.         If endstuff = "YES" Then
  4788.             aaa = data_aaa + ""
  4789.             ooo = data_ooo + ""
  4790.             GoTo line_12053    'january 21 2001
  4791.        End If
  4792.         GoTo line_14222
  4793.     End If
  4794. line_12170:
  4795.     aaa = array_aaa(array_prt) + ""
  4796.     ooo = array_ooo(array_prt) + ""
  4797.     GoTo line_12120
  4798. line_12500:
  4799.     s1len = Len(SSS1)
  4800.     s2len = Len(SSS2)
  4801.     s3len = Len(SSS3)
  4802.     s4len = Len(SSS4)   '23 june 2002
  4803.    s5len = Len(SSS5)
  4804.     s6len = Len(SSS6)
  4805.  
  4806.     GoSub sub_10000 'check for match in string aaa
  4807.    If ss = 0 Then GoTo line_12125
  4808. line_12505:
  4809.     If ss > 1 Then
  4810.     If Left(UCase(Cmd(77)), 16) = "CHARACTERPAUSE==" Then     '03 January 2005
  4811.            new_delay_sec = Val(Right(Cmd(77), Len(Cmd(77)) - 16))
  4812.             tempss = Left(ooo, ss - 1)               '03 January 2005
  4813.            For temp1 = 1 To Len(tempss)
  4814.              Print Left(tempss, 1);
  4815.              tempss = Right(tempss, Len(tempss) - 1)
  4816.             GoSub line_30300            '03 January 2005
  4817.            Next temp1
  4818.        
  4819.     Else
  4820. '        Print ooo;
  4821.        Print Left(ooo, ss - 1);
  4822.              tot_print = tot_print + ss - 1
  4823.         If extract_yes = "YES" Then
  4824.             Print #ExtFile, Left(ooo, ss - 1);
  4825.         End If
  4826.     End If                  '03 January 2005
  4827.    End If
  4828. line_12510:
  4829.     II = 0
  4830.     If Mid(aaa, ss + sslen - 1, 1) <> " " Then GoTo line_12600
  4831.  
  4832.     'if last chr in match a space check if that is the start of another match? below
  4833.    If SSS1 = "" Then GoTo line_12600
  4834.     If Mid(aaa, ss + sslen - 1, s1len) = SSS1 Then GoTo line_12550
  4835.     If SSS2 = "" Then GoTo line_12600
  4836.     If Mid(aaa, ss + sslen - 1, s2len) = SSS2 Then GoTo line_12550
  4837.     If SSS3 = "" Then GoTo line_12600
  4838.     If Mid(aaa, ss + sslen - 1, s3len) = SSS3 Then GoTo line_12550
  4839.     If SSS4 = "" Then GoTo line_12600   '23 june 2002
  4840.    If Mid(aaa, ss + sslen - 1, s4len) = SSS4 Then GoTo line_12550
  4841.     If SSS5 = "" Then GoTo line_12600
  4842.     If Mid(aaa, ss + sslen - 1, s5len) = SSS5 Then GoTo line_12550
  4843.     If SSS6 = "" Then GoTo line_12600
  4844.     If Mid(aaa, ss + sslen - 1, s6len) = SSS6 Then GoTo line_12550
  4845.     GoTo line_12600
  4846. line_12550:
  4847.     'only going to hi-lite up to the next space by reducing count by 1 below
  4848. '    If zzz_cnt > 658 Then
  4849. '        tt1 = InputBox("testing prompt 12550" + CStr(ss + sslen - 1) + "*" + Mid(aaa, ss + sslen - 1, 4) + "*" + SSS1, , , 4400, 4500) 'TESTING ONLY
  4850. '        If tt1 = "X" Or tt1 = "x" Then
  4851. '            GoTo End_32000
  4852. '        End If              'testing only
  4853. '    End If
  4854.    sslen = sslen - 1
  4855.     II = 1      'so the match counts below will jive
  4856. line_12600:
  4857.    If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS1) Then tot_s1 = tot_s1 + 1 'january 01 2001
  4858.   If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS2) Then tot_s2 = tot_s2 + 1 'january 01 2001
  4859.   If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS3) Then tot_s3 = tot_s3 + 1 'january 01 2001
  4860.   If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS4) Then tot_s4 = tot_s4 + 1 '23 june 2002
  4861.   If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS5) Then tot_s5 = tot_s5 + 1 '23 june 2002
  4862.   If UCase(Mid(ooo, ss, sslen + II)) = UCase(SSS6) Then tot_s6 = tot_s6 + 1 '23 june 2002
  4863.    
  4864.     ForeColor = QBColor(Set_Fore)     'set color
  4865.    Font.Bold = True
  4866.     Font.Underline = True
  4867.  
  4868. '26 March 2003 try the below (seemed to work)    Print Mid(ooo, ss, sslen);
  4869. '    If Cmd(56) <> "PHOTO_DETAIL" Then Print Mid(ooo, ss, sslen);
  4870. '    needed the original display for "C" context hi-liting.... put back
  4871.    If Left(UCase(Cmd(77)), 16) = "CHARACTERPAUSE==" Then     '03 January 2005
  4872.            new_delay_sec = Val(Right(Cmd(77), Len(Cmd(77)) - 16))
  4873.             tempss = Mid(ooo, ss, sslen)              '03 January 2005
  4874.            For temp1 = 1 To Len(tempss)
  4875.              Print Left(tempss, 1);
  4876.              tempss = Right(tempss, Len(tempss) - 1)
  4877.             GoSub line_30300            '03 January 2005
  4878.            Next temp1
  4879.        
  4880.     Else
  4881. '        Print ooo;
  4882.    Print Mid(ooo, ss, sslen);
  4883.     End If                  '03 January 2005
  4884.    
  4885.     tot_print = tot_print + sslen
  4886.         If extract_yes = "YES" Then
  4887.             Print #ExtFile, Mid(ooo, ss, sslen);
  4888.          End If
  4889. '    If sscreen_saver = "Y" Then
  4890. '26 March 2003 deactivate the following if  part of version ver=1.02b fix required
  4891.    If sscreen_saver = "Y" And sscreen_saver = "N" Then
  4892.         Font.Size = 24
  4893.         ForeColor = QBColor(AltColor) 'make a different color here and below screen saver
  4894. '        dsp_cnt = dsp_cnt + 1       'may 09 2001
  4895. '26 March 2003 dump the display count for now (skip the whole routine)
  4896. '        with the dsp_cnt print and all what the hey anyway
  4897. '        Print Mid(ooo, ss, sslen); " "; CStr(dsp_cnt); " "; 'may 09 2001
  4898.        Print Mid(ooo, ss, sslen); " "; 'may 09 2001
  4899.        Font.Size = Val(Cmd(2))
  4900.     End If      'october 24 2000
  4901.    ForeColor = QBColor(Def_Fore)    'default color
  4902.    Font.Bold = False
  4903.     Font.Underline = False
  4904.    
  4905.     aaa = Mid(aaa, ss + sslen)
  4906.     ooo = Mid(ooo, ss + sslen)
  4907.  
  4908. 'midway2 thru the program appx'==================================================================================
  4909.  
  4910. line_12610:
  4911.     If Len(aaa) > 0 Then GoTo line_12500
  4912.     GoTo line_12130     'no more data
  4913.  
  4914.    
  4915.     GoTo line_14222
  4916.  
  4917. line_13000:          'january 18 2001
  4918.    'below get rid of all trailing spaces
  4919.    II = Len(aaa)
  4920.     If Right(aaa, 1) = " " Then
  4921.         aaa = Left(aaa, II - 1)
  4922.         ooo = Left(ooo, II - 1)
  4923.         GoTo line_13000
  4924.     End If
  4925. line_13010:         'january 19 2001 see imbedded spaces in search string and replace them in xxx string
  4926.    xxx = aaa + ""
  4927. '    If zzz_cnt > 20929 Then
  4928. '        tt1 = InputBox("testing prompt 13000c" + CStr(Len(aaa)) + " " + SSS1 + " " + match_flag, , , 4400, 4500) 'TESTING ONLY
  4929. '        If tt1 = "X" Or tt1 = "x" Then
  4930. '            GoTo End_32000
  4931. '        End If              'testing only
  4932. '    End If
  4933.    If match_flag <> "YES" Then GoTo line_13070 'only required if match in line
  4934.    If imbedded = "NO" Then GoTo line_13070 'only required if one has a imbedded space
  4935.    If s1_imbed = "" Then GoTo line_13020
  4936.     II = 1
  4937. line_13012:
  4938.     JJ = InStr(II, aaa, SSS1)
  4939.     If JJ = 0 Then GoTo line_13020
  4940.     xxx = Left(aaa, JJ - 1) + s1_imbed + Mid(aaa, JJ + Len(SSS1) - 1)
  4941.     II = JJ + 1
  4942.     GoTo line_13012
  4943. line_13020:
  4944.     If s2_imbed = "" Then GoTo line_13030
  4945.     II = 1
  4946. line_13022:
  4947.     JJ = InStr(II, aaa, SSS2)
  4948.     If JJ = 0 Then GoTo line_13030
  4949.     xxx = Left(aaa, JJ - 1) + s2_imbed + Mid(aaa, JJ + Len(SSS2) - 1)
  4950.     II = JJ + 1
  4951.     GoTo line_13022
  4952. line_13030:
  4953.     If s3_imbed = "" Then GoTo line_13040
  4954.     II = 1
  4955. line_13032:
  4956.     JJ = InStr(II, aaa, SSS3)
  4957.     If JJ = 0 Then GoTo line_13040
  4958.     xxx = Left(aaa, JJ - 1) + s3_imbed + Mid(aaa, JJ + Len(SSS3) - 1)
  4959.     II = JJ + 1
  4960.     GoTo line_13032
  4961. '23 june 2002 add 4 thru 6 below
  4962. line_13040:
  4963.     If s4_imbed = "" Then GoTo line_13050
  4964.     II = 1
  4965. line_13042:
  4966.     JJ = InStr(II, aaa, SSS4)
  4967.     If JJ = 0 Then GoTo line_13050
  4968.     xxx = Left(aaa, JJ - 1) + s4_imbed + Mid(aaa, JJ + Len(SSS4) - 1)
  4969.     II = JJ + 1
  4970.     GoTo line_13042
  4971. line_13050:
  4972.     If s5_imbed = "" Then GoTo line_13060
  4973.     II = 1
  4974. line_13052:
  4975.     JJ = InStr(II, aaa, SSS5)
  4976.     If JJ = 0 Then GoTo line_13060
  4977.     xxx = Left(aaa, JJ - 1) + s5_imbed + Mid(aaa, JJ + Len(SSS5) - 1)
  4978.     II = JJ + 1
  4979.     GoTo line_13052
  4980. line_13060:
  4981.     If s6_imbed = "" Then GoTo line_13070
  4982.     II = 1
  4983. line_13062:
  4984.     JJ = InStr(II, aaa, SSS6)
  4985.     If JJ = 0 Then GoTo line_13070
  4986.     xxx = Left(aaa, JJ - 1) + s6_imbed + Mid(aaa, JJ + Len(SSS6) - 1)
  4987.     II = JJ + 1
  4988.     GoTo line_13062
  4989. line_13070:
  4990.  
  4991. line_13620:
  4992.     II = Len(aaa)
  4993.     array_pos = array_pos + 1
  4994.     If array_pos > 55 Then
  4995. '22 October 2004    xtemp = InputBox("error 13620 line too long=" + CStr(array_pos), "test", , xx1 - offset1, yy1 - offset2) '
  4996.        frmproj2.Caption = "error 13620 line too long (use crop option) " + CStr(Len(aaa)) '22 October 2004
  4997.            new_delay_sec = 1    '22 October 2004
  4998.            GoSub line_30300            '22 October 2004
  4999.        Beep                     '22 October 2004
  5000.        II = 50 '22 October 2004
  5001.        aaa = Left(aaa, 50) '22 October 2004
  5002.        array_pos = 10  '22 October 2004   keep it from stopping on line too long errors
  5003.      GoTo line_13635
  5004.     End If
  5005. line_13625:
  5006.     If II <= line_len + over_lap Then GoTo line_13630
  5007. line_13626:
  5008.     tt = InStr(line_len, xxx, " ")
  5009.     'if a - is going to split a word make sure that there are no nearby spaces below
  5010. line_13627:
  5011.     If (tt = 0 Or tt > line_len + over_lap) And Mid(aaa, line_len - 1, 1) = " " Then tt = line_len - 1
  5012.     If (tt = 0 Or tt > line_len + over_lap) And Mid(aaa, line_len - 2, 1) = " " Then tt = line_len - 2
  5013.     If (tt = 0 Or tt > line_len + over_lap) And Mid(aaa, line_len - 3, 1) = " " Then tt = line_len - 3
  5014.     If (tt = 0 Or tt > line_len + over_lap) And Mid(aaa, line_len - 4, 1) = " " Then tt = line_len - 4
  5015. line_13627a:
  5016.     If tt = 0 Then GoTo line_13628
  5017. line_13627b:
  5018.     If tt > line_len + over_lap Then GoTo line_13628
  5019. line_13627c:
  5020.     array_aaa(array_pos) = " " + Left(aaa, tt - 1) + " "
  5021.     array_ooo(array_pos) = " " + Left(ooo, tt - 1) + " "
  5022.     aaa = Mid(aaa, tt)
  5023.     ooo = Mid(ooo, tt)
  5024.     xxx = Mid(xxx, tt)  'january 21 2001
  5025.    GoTo line_13620
  5026. line_13628:
  5027.     new_len = line_len
  5028.     If match_flag = "NO" Then GoTo line_13628m
  5029.     'ensure the break does not come in any of the hi-lite items...
  5030.    'for each of the 3 search elements make sure there is no break
  5031.    'in the middle use s1len s2len s3len values and the instr(?)
  5032.    'to check for overlap
  5033.    
  5034.     'if the hi-lite item less than 2 characters the break can never split it.
  5035. '    new_len = line_len
  5036.    If s1len < 2 Then GoTo line_13628d
  5037.     III = line_len - s1len + 2
  5038.     If III < 1 Then GoTo line_13628d        'should never happen
  5039.    JJ = InStr(III, aaa, SSS1)
  5040.     If JJ = 0 Then GoTo line_13628d         'no match found
  5041.    If JJ > line_len Then GoTo line_13628d  'match found after break
  5042. '    If JJ + s1len - 1 = line_len Then GoTo line_13628d '
  5043. '   the above line was used when III above was calculated using II = line_len-s1len+1
  5044.    new_len = JJ - 1
  5045.     GoTo line_13628m
  5046. line_13628d:
  5047.     If s2len < 2 Then GoTo line_13628h
  5048.     III = line_len - s2len + 2
  5049.     If III < 1 Then GoTo line_13628h        'should never happen
  5050.    JJ = InStr(III, aaa, SSS2)
  5051.     If JJ = 0 Then GoTo line_13628h         'no match found
  5052.    If JJ > line_len Then GoTo line_13628h  'match found after break
  5053.    new_len = JJ - 1
  5054.     GoTo line_13628m
  5055. line_13628h:
  5056.     If s3len < 2 Then GoTo line_13628i
  5057.     III = line_len - s3len + 2
  5058.     If III < 1 Then GoTo line_13628i        'should never happen
  5059.    JJ = InStr(III, aaa, SSS3)
  5060.     If JJ = 0 Then GoTo line_13628i         'no match found
  5061.    If JJ > line_len Then GoTo line_13628i  'match found after break
  5062.    new_len = JJ - 1
  5063.     GoTo line_13628m
  5064. '23 june 2002 do 4 thru 6 below
  5065. line_13628i:
  5066.     If s4len < 2 Then GoTo line_13628j
  5067.     III = line_len - s4len + 2
  5068.     If III < 1 Then GoTo line_13628j        'should never happen
  5069.    JJ = InStr(III, aaa, SSS4)
  5070.     If JJ = 0 Then GoTo line_13628j         'no match found
  5071.    If JJ > line_len Then GoTo line_13628j  'match found after break
  5072.    new_len = JJ - 1
  5073.     GoTo line_13628m
  5074. line_13628j:
  5075.     If s5len < 2 Then GoTo line_13628k
  5076.     III = line_len - s5len + 2
  5077.     If III < 1 Then GoTo line_13628k        'should never happen
  5078.    JJ = InStr(III, aaa, SSS5)
  5079.     If JJ = 0 Then GoTo line_13628k         'no match found
  5080.    If JJ > line_len Then GoTo line_13628k  'match found after break
  5081.    new_len = JJ - 1
  5082.     GoTo line_13628m
  5083. line_13628k:
  5084.     If s6len < 2 Then GoTo line_13628m
  5085.     III = line_len - s6len + 2
  5086.     If III < 1 Then GoTo line_13628m        'should never happen
  5087.    JJ = InStr(III, aaa, SSS6)
  5088.     If JJ = 0 Then GoTo line_13628m         'no match found
  5089.    If JJ > line_len Then GoTo line_13628m  'match found after break
  5090.    new_len = JJ - 1
  5091.  
  5092. line_13628m:
  5093.     array_aaa(array_pos) = " " + Left(aaa, new_len) + "-"
  5094.     array_ooo(array_pos) = " " + Left(ooo, new_len) + "-"
  5095.     aaa = Mid(aaa, new_len + 1)
  5096.     ooo = Mid(ooo, new_len + 1)
  5097.     xxx = Mid(xxx, new_len + 1)
  5098. '
  5099. '      xtemp = InputBox("testing prompt_=" + aaa + " " + CStr(new_len) + " " + CStr(cnt), "test", , 4400, 4500) '
  5100. '    xtemp = InputBox("testing prompt=" + AllSearch(1) + "*" + ttt + " " + SSS1 + " " + SSS2 + " " + SSS3 + " " + CStr(zzz_cnt), "test", , 4400, 4500) '
  5101. '     If UCase(xtemp) = "X" Then GoTo End_32000
  5102.    GoTo line_13620
  5103. 'line_13629:
  5104. '    Print #ExtFile, Left(aaa, line_len); "-"
  5105. '    temp2 = temp2 + 1
  5106. '    aaa = Mid(aaa, line_len + 1)
  5107. '    GoTo line_13620
  5108. line_13630:
  5109.     array_aaa(array_pos) = " " + aaa + " "
  5110.     array_ooo(array_pos) = " " + ooo + " "
  5111. line_13635:
  5112.     If Left(array_aaa(1), 2) = "  " Then
  5113.         array_aaa(1) = Mid(array_aaa(1), 2) 'remove the extra space line 1 only
  5114.        array_ooo(1) = Mid(array_ooo(1), 2) 'as 1 is already added at start
  5115.    aaa = array_aaa(1)  'line broken into multiple parts start printing with first part
  5116.    ooo = array_ooo(1)
  5117.     array_prt = 1
  5118.     End If
  5119. line_13640:
  5120.     'back to the logic after 12120 line
  5121.    GoTo line_12120
  5122. line_13999:
  5123. line_14222:                 'january 15 2001
  5124. Return
  5125.  
  5126. line_14500:         'january 19 2001 check for imbedded spaces in search strings
  5127.    s1_imbed = ""
  5128.     s2_imbed = ""
  5129.     s3_imbed = ""
  5130.     s4_imbed = ""       '23 june 2002
  5131.    s5_imbed = ""
  5132.     s6_imbed = ""
  5133.     imbedded = "NO"
  5134.     If Len(SSS1) < 2 Then GoTo line_14510
  5135.     III = 2
  5136. line_14505:
  5137.     II = InStr(III, SSS1, " ")
  5138.     If II = 0 Or II = Len(SSS1) Then GoTo line_14510
  5139.     s1_imbed = Left(SSS1, II - 1) + "x" + Mid(SSS1, II + 1)
  5140.     III = II + 1
  5141.     GoTo line_14505
  5142. line_14510:
  5143.     If Len(SSS2) < 2 Then GoTo line_14520
  5144.     III = 2
  5145. line_14515:
  5146.     II = InStr(III, SSS2, " ")
  5147.     If II = 0 Or II = Len(SSS2) Then GoTo line_14520
  5148.     s2_imbed = Left(SSS2, II - 1) + "x" + Mid(SSS2, II + 1)
  5149.     III = II + 1
  5150.     GoTo line_14515
  5151. line_14520:
  5152.     If Len(SSS3) < 2 Then GoTo line_14530
  5153.     III = 2
  5154. line_14525:
  5155.     II = InStr(III, SSS3, " ")
  5156.     If II = 0 Or II = Len(SSS3) Then GoTo line_14530
  5157.     s3_imbed = Left(SSS3, II - 1) + "x" + Mid(SSS3, II + 1)
  5158.     III = II + 1
  5159.     GoTo line_14525
  5160. line_14530:
  5161.     If Len(SSS4) < 2 Then GoTo line_14540
  5162.     III = 2
  5163. line_14535:
  5164.     II = InStr(III, SSS4, " ")
  5165.     If II = 0 Or II = Len(SSS4) Then GoTo line_14540
  5166.     s4_imbed = Left(SSS4, II - 1) + "x" + Mid(SSS4, II + 1)
  5167.     III = II + 1
  5168.     GoTo line_14535
  5169. line_14540:
  5170.     If Len(SSS5) < 2 Then GoTo line_14550
  5171.     III = 2
  5172. line_14545:
  5173.     II = InStr(III, SSS5, " ")
  5174.     If II = 0 Or II = Len(SSS5) Then GoTo line_14550
  5175.     s5_imbed = Left(SSS5, II - 1) + "x" + Mid(SSS5, II + 1)
  5176.     III = II + 1
  5177.     GoTo line_14545
  5178. line_14550:
  5179.     If Len(SSS6) < 2 Then GoTo line_14560
  5180.     III = 2
  5181. line_14555:
  5182.     II = InStr(III, SSS6, " ")
  5183.     If II = 0 Or II = Len(SSS6) Then GoTo line_14560
  5184.     s6_imbed = Left(SSS6, II - 1) + "x" + Mid(SSS6, II + 1)
  5185.     III = II + 1
  5186.     GoTo line_14555
  5187. line_14560:
  5188.     If s1_imbed + s2_imbed + s3_imbed + s4_imbed + s5_imbed + s6_imbed > "" Then imbedded = "YES"
  5189. Return
  5190.  
  5191. Last_lines_15000:
  5192.     save_line = "15000"     'aug 08/99
  5193.    Cls                     '18 august 2003
  5194. '---------------------------------------------------- part a
  5195. '18 March 2003 ver=1.01 v
  5196. '    If Clear_Context_lines = Context_lines Then
  5197.        'clear the context records here **note the spaces=50 other setting = ""
  5198.    If Clear_Context_lines > 0 Then
  5199. '            tt1 = InputBox("testing=" + CStr(Context_cnt) + " " + CStr(Context_lines) + " " + CStr(Context_lines - Clear_Context_lines) + "=", , , 4400, 4500) 'TESTING ONLY
  5200. '        For II = 1 To MAX_CNT
  5201.    If Context_cnt > Context_lines - 1 Then
  5202. '        For II = 1 To Context_cnt - 1
  5203.        For II = 1 To Context_cnt - (Context_lines - Clear_Context_lines)
  5204.             Context_text(II) = Space(20)
  5205.         Next II
  5206.     Else
  5207.         For II = 1 To Context_cnt - (Context_lines - Clear_Context_lines)
  5208.             Context_text(II) = Space(20)
  5209.         Next II             'active testing this logic
  5210.        For II = Context_cnt + 1 To MAX_CNT Step 1
  5211.             Context_text(II) = Space(20)
  5212.         Next II
  5213.     End If
  5214.     End If
  5215. '    End If
  5216. '18 March 2003 ver=1.01 ^
  5217. 'the above routine is handy when used in conjunction with a control file
  5218. 'command type situation where the font size and clear_context_string cmd(55)
  5219. 'element is used for display of text on top of existing photos
  5220. 'may want a blank line or two right after as program will temporarily be
  5221. 'switched to context display mode and may need to be swapped back???
  5222. '
  5223. 'use the ver=1.01 changes when doing the display of the searched text
  5224. 'on top of the picture on the screen in ver=1.02 "search criteria"
  5225. ' "photo_detail" display on screen large font with own delay etc
  5226. '
  5227. '&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  5228.    
  5229.     If Context_cnt < Context_lines Then
  5230.         For temp4 = MAX_CNT - Context_lines + Context_cnt To MAX_CNT
  5231.         If Context_text(temp4) = "" Then GoTo line_15115    'january 22 2001
  5232. 'april 10 2001       If InStr(1, Context_text(temp4), "append end") <> 0 Then
  5233. '       If InStr(1, Context_text(temp4), append_end1) <> 0 Then
  5234.      If InStr(1, UCase(Context_text(temp4)), UCase(append_end1)) <> 0 Then
  5235.          append_end1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_end1)), Len(append_end1))
  5236.        
  5237.         tot_s1 = tot_s1 - 1         'january 06 2001
  5238.        new1 = SSS1
  5239.         new2 = SSS2
  5240.         new3 = SSS3
  5241.         new4 = SSS4     '23 june 2002
  5242.        new5 = SSS5
  5243.         new6 = SSS6
  5244. 'april 10 2001        SSS1 = "append end"
  5245.        SSS1 = append_end1
  5246.         SSS2 = ""
  5247.         SSS3 = ""
  5248.         SSS4 = ""   '23 june 2002
  5249.        SSS5 = ""
  5250.         SSS6 = ""
  5251.         temp_fore = Set_Fore
  5252.         Set_Fore = AltColor
  5253.         keep_aaa = aaa + ""
  5254.         keep_ooo = ooo + ""
  5255.         aaa = Context_text(temp4)
  5256.         ooo = Context_text(temp4)
  5257.         If hilite_hh = "Y" Then
  5258.             GoSub hilite_25500
  5259.         End If              'april 22 2001
  5260.        GoSub sub_12000
  5261.         aaa = keep_aaa
  5262.         ooo = keep_ooo
  5263.         SSS1 = new1
  5264.         SSS2 = new2
  5265.         SSS3 = new3
  5266.         SSS4 = new4         '23 june 2002
  5267.        SSS5 = new5
  5268.         SSS6 = new6
  5269.        
  5270.         Set_Fore = temp_fore
  5271.         GoTo line_15110
  5272.        End If              'hilite any append lines i put in
  5273. 'april 10 2001       If InStr(1, Context_text(temp4), "append start") <> 0 Then
  5274.    ' with the ucase stuff below
  5275.    
  5276.       If InStr(1, UCase(Context_text(temp4)), UCase(append_start1)) <> 0 Then
  5277.          append_start1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_start1)), Len(append_start1))
  5278.         tot_s1 = tot_s1 - 1         'january 06 2001
  5279.        new1 = SSS1
  5280.         new2 = SSS2
  5281.         new3 = SSS3
  5282.         new4 = SSS4     '23 june 2002
  5283.        new5 = SSS5
  5284.         new6 = SSS6
  5285. 'april 10 2001        SSS1 = "append start"
  5286.        SSS1 = append_start1
  5287.         SSS2 = ""
  5288.         SSS3 = ""
  5289.         SSS4 = ""   '23 june 2002
  5290.        SSS5 = ""
  5291.         SSS6 = ""
  5292.         temp_fore = Set_Fore
  5293.         Set_Fore = AltColor
  5294.         keep_aaa = aaa + ""
  5295.         keep_ooo = ooo + ""
  5296.         aaa = Context_text(temp4)
  5297.         ooo = Context_text(temp4)
  5298.         GoSub sub_12000
  5299.         aaa = keep_aaa
  5300.         ooo = keep_ooo
  5301.         SSS1 = new1
  5302.         SSS2 = new2
  5303.         SSS3 = new3
  5304.         SSS4 = new4
  5305.         SSS5 = new5
  5306.         SSS6 = new6
  5307.         Set_Fore = temp_fore
  5308.         GoTo line_15110
  5309.        End If              'hilite any append lines i put in
  5310.      
  5311.        If InStr(1, Context_text(temp4), hilite_this) <> 0 And _
  5312.        (hilite_this <> "" And hilite_this <> "     ") Then
  5313.         tot_s1 = tot_s1 - 1         'january 06 2001
  5314.        new1 = SSS1
  5315.         new2 = SSS2
  5316.         new3 = SSS3
  5317.         new4 = SSS4     '23 june 2002
  5318.        new5 = SSS5
  5319.         new6 = SSS6
  5320.         SSS1 = hilite_this
  5321.         SSS2 = ""
  5322.         SSS3 = ""
  5323.         SSS4 = ""       '23 june 2002
  5324.        SSS5 = ""
  5325.         SSS6 = ""
  5326.         temp_fore = Set_Fore
  5327.         Set_Fore = AltColor
  5328.         keep_aaa = aaa + ""
  5329.         keep_ooo = ooo + ""
  5330.         aaa = Context_text(temp4)
  5331.         ooo = Context_text(temp4)
  5332.         If hilite_hh = "Y" Then
  5333.             GoSub hilite_25500
  5334.         End If              'april 22 2001 this one
  5335.        GoSub sub_12000
  5336.         aaa = keep_aaa
  5337.         ooo = keep_ooo
  5338.         SSS1 = new1
  5339.         SSS2 = new2
  5340.         SSS3 = new3
  5341.         SSS4 = new4     '23 june 2002
  5342.        SSS5 = new5
  5343.         SSS6 = new6
  5344.         Set_Fore = temp_fore
  5345.         GoTo line_15110
  5346.        End If              'hilite any append lines i put in
  5347.  
  5348. line_15100:
  5349.         new1 = SSS1
  5350.         new2 = SSS2
  5351.         new3 = SSS3
  5352.         new4 = SSS4     '23 june 2002
  5353.        new5 = SSS5
  5354.         new6 = SSS6
  5355.         SSS1 = ""
  5356.         SSS2 = ""
  5357.         SSS3 = ""
  5358.         SSS4 = ""       '23 june 2002
  5359.        SSS5 = ""
  5360.         SSS6 = ""
  5361.         keep_aaa = aaa + ""
  5362.         keep_ooo = ooo + ""
  5363.         aaa = Context_text(temp4)
  5364.         ooo = Context_text(temp4)
  5365.         GoSub sub_12000
  5366.         aaa = keep_aaa
  5367.         ooo = keep_ooo
  5368.         SSS1 = new1
  5369.         SSS2 = new2
  5370.         SSS3 = new3
  5371.         SSS4 = new4     '23 june 2002
  5372.        SSS5 = new5
  5373.         SSS6 = new6
  5374.  
  5375. line_15110:
  5376.         cnt = cnt + 1
  5377. line_15115:             'january 22 2001
  5378.        Next temp4
  5379. '-------------------------------------------------------
  5380.        For temp4 = 1 To Context_cnt
  5381.         If Context_text(temp4) = "" Then GoTo line_15525    'january 22 2001
  5382.  
  5383. line_15200:
  5384. 'april 10 2001       If InStr(1, Context_text(temp4), "append end") <> 0 Then
  5385. '       If InStr(1, Context_text(temp4), append_end1) <> 0 Then
  5386.      If InStr(1, UCase(Context_text(temp4)), UCase(append_end1)) <> 0 Then
  5387.          append_end1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_end1)), Len(append_end1))
  5388.        
  5389.         tot_s1 = tot_s1 - 1         'january 06 2001
  5390.        new1 = SSS1
  5391.         new2 = SSS2
  5392.         new3 = SSS3
  5393.         new4 = SSS4     '23 june 2002
  5394.        new5 = SSS5
  5395.         new6 = SSS6
  5396. 'april 10 2001        SSS1 = "append end"
  5397.        SSS1 = append_end1
  5398.         SSS2 = ""
  5399.         SSS3 = ""
  5400.         SSS4 = ""       '23 june 2002
  5401.        SSS5 = ""
  5402.         SSS6 = ""
  5403.         temp_fore = Set_Fore
  5404.         Set_Fore = AltColor
  5405.         keep_aaa = aaa + ""
  5406.         keep_ooo = ooo + ""
  5407.         aaa = Context_text(temp4)
  5408.         ooo = Context_text(temp4)
  5409.         If hilite_hh = "Y" Then
  5410.             GoSub hilite_25500
  5411.         End If              'april 22 2001
  5412.        GoSub sub_12000
  5413.         aaa = keep_aaa
  5414.         ooo = keep_ooo
  5415.         SSS1 = new1
  5416.         SSS2 = new2
  5417.         SSS3 = new3
  5418.         SSS4 = new4     '23 june 2002
  5419.        SSS5 = new5
  5420.         SSS6 = new6
  5421.         Set_Fore = temp_fore
  5422.         GoTo line_15520
  5423.        End If              'hilite any append lines i put in
  5424. 'april 10 2001       If InStr(1, Context_text(temp4), "append start") <> 0 Then
  5425. '       If InStr(1, Context_text(temp4), append_start1) <> 0 Then
  5426.      If InStr(1, UCase(Context_text(temp4)), UCase(append_start1)) <> 0 Then
  5427.          append_start1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_start1)), Len(append_start1))
  5428.        
  5429.         tot_s1 = tot_s1 - 1         'january 06 2001
  5430.        new1 = SSS1
  5431.         new2 = SSS2
  5432.         new3 = SSS3
  5433.         new4 = SSS4     '23 june 2002
  5434.        new5 = SSS5
  5435.         new6 = SSS6
  5436. 'april 10 2001        SSS1 = "append start"
  5437.        SSS1 = append_start1
  5438.         SSS2 = ""
  5439.         SSS3 = ""
  5440.         SSS4 = ""
  5441.         SSS5 = ""
  5442.         SSS6 = ""
  5443.         temp_fore = Set_Fore
  5444.         Set_Fore = AltColor
  5445.         keep_aaa = aaa + ""
  5446.         keep_ooo = ooo + ""
  5447.         aaa = Context_text(temp4)
  5448.         ooo = Context_text(temp4)
  5449.         GoSub sub_12000
  5450.         aaa = keep_aaa
  5451.         ooo = keep_ooo
  5452.         SSS1 = new1
  5453.         SSS2 = new2
  5454.         SSS3 = new3
  5455.         SSS4 = new4
  5456.         SSS5 = new5
  5457.         SSS6 = new6
  5458.         Set_Fore = temp_fore
  5459.         GoTo line_15520
  5460.        End If              'hilite any append lines i put in
  5461.      
  5462.        If InStr(1, Context_text(temp4), hilite_this) <> 0 And _
  5463.        (hilite_this <> "" And hilite_this <> "     ") Then
  5464.         tot_s1 = tot_s1 - 1         'january 06 2001
  5465.        new1 = SSS1
  5466.         new2 = SSS2
  5467.         new3 = SSS3
  5468.         new4 = SSS4         '23 june 2002
  5469.        new5 = SSS5
  5470.         new6 = SSS6
  5471.         SSS1 = hilite_this
  5472.         SSS2 = ""
  5473.         SSS3 = ""
  5474.         SSS4 = ""       '23 june 2002
  5475.        SSS5 = ""
  5476.         SSS6 = ""
  5477.         temp_fore = Set_Fore
  5478.         Set_Fore = AltColor
  5479.         keep_aaa = aaa + ""
  5480.         keep_ooo = ooo + ""
  5481.         aaa = Context_text(temp4)
  5482.         ooo = Context_text(temp4)
  5483.         If hilite_hh = "Y" Then
  5484.             GoSub hilite_25500
  5485.         End If              'april 22 2001 this one
  5486.        GoSub sub_12000
  5487.         aaa = keep_aaa
  5488.         ooo = keep_ooo
  5489.         SSS1 = new1
  5490.         SSS2 = new2
  5491.         SSS3 = new3
  5492.         SSS4 = new4     '23 june 2002
  5493.        SSS5 = new5
  5494.         SSS6 = new6
  5495.         Set_Fore = temp_fore
  5496.         GoTo line_15520
  5497.        End If              'hilite any append lines i put in
  5498.        
  5499.         new1 = SSS1
  5500.         new2 = SSS2
  5501.         new3 = SSS3
  5502.         new4 = SSS4         '23 june 2002
  5503.        new5 = SSS5
  5504.         new6 = SSS6
  5505.         SSS1 = ""
  5506.         SSS2 = ""
  5507.         SSS3 = ""
  5508.         SSS4 = ""           '23 june 2002
  5509.        SSS5 = ""
  5510.         SSS6 = ""
  5511.         keep_aaa = aaa + ""
  5512.         keep_ooo = ooo + ""
  5513.         aaa = Context_text(temp4)
  5514.         ooo = Context_text(temp4)
  5515.         GoSub sub_12000
  5516.         aaa = keep_aaa
  5517.         ooo = keep_ooo
  5518.         SSS1 = new1
  5519.         SSS2 = new2
  5520.         SSS3 = new3
  5521.         SSS4 = new4         '23 june 2002
  5522.        SSS5 = new5
  5523.         SSS6 = new6
  5524.  
  5525. line_15520:
  5526.         cnt = cnt + 1
  5527. line_15525:             'january 22 2001
  5528.        Next temp4
  5529.     End If
  5530.    
  5531. '&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  5532.  
  5533.     If Context_cnt > Context_lines - 1 Then
  5534.         For temp4 = Context_cnt - Context_lines + 1 To Context_cnt
  5535.         If Context_text(temp4) = "" Then GoTo line_15553    'january 22 2001
  5536. ' get the context_text stuff to wrap vip
  5537. 'april 10 2001       If InStr(1, Context_text(temp4), "append end") <> 0 Then
  5538. '      If InStr(1, Context_text(temp4), append_end1) <> 0 Then
  5539.      If InStr(1, UCase(Context_text(temp4)), UCase(append_end1)) <> 0 Then
  5540.          append_end1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_end1)), Len(append_end1))
  5541.         tot_s1 = tot_s1 - 1         'january 06 2001
  5542.        new1 = SSS1
  5543.         new2 = SSS2
  5544.         new3 = SSS3
  5545.         new4 = SSS4         '23 june 2002
  5546.        new5 = SSS5
  5547.         new6 = SSS6
  5548. 'april 10 2001        SSS1 = "append end"
  5549.        SSS1 = append_end1
  5550.         SSS2 = ""
  5551.         SSS3 = ""
  5552.         SSS4 = ""       '23 june 2002
  5553.        SSS5 = ""
  5554.         SSS6 = ""
  5555.         temp_fore = Set_Fore
  5556.         Set_Fore = AltColor
  5557.         keep_aaa = aaa + ""
  5558.         keep_ooo = ooo + ""
  5559.         aaa = Context_text(temp4)
  5560.         ooo = Context_text(temp4)
  5561.         If hilite_hh = "Y" Then
  5562.             GoSub hilite_25500
  5563.         End If              'april 22 2001
  5564.        GoSub sub_12000
  5565.         aaa = keep_aaa
  5566.         ooo = keep_ooo
  5567.         SSS1 = new1
  5568.         SSS2 = new2
  5569.         SSS3 = new3
  5570.         SSS4 = new4         '23 june 2002
  5571.        SSS5 = new5
  5572.         SSS6 = new6
  5573.         Set_Fore = temp_fore
  5574.         GoTo line_15550
  5575.        End If              'hilite any append lines i put in
  5576. 'april 10 2001       If InStr(1, Context_text(temp4), "append start") <> 0 Then
  5577. '       If InStr(1, Context_text(temp4), append_start1) <> 0 Then
  5578.      If InStr(1, UCase(Context_text(temp4)), UCase(append_start1)) <> 0 Then
  5579.          append_start1 = Mid(Context_text(temp4), InStr(1, UCase(Context_text(temp4)), UCase(append_start1)), Len(append_start1))
  5580.        
  5581.         tot_s1 = tot_s1 - 1         'january 06 2001
  5582.        new1 = SSS1
  5583.         new2 = SSS2
  5584.         new3 = SSS3
  5585.         new4 = SSS4             '23 june 2002
  5586.        new5 = SSS5
  5587.         new6 = SSS6
  5588. 'april 10 2001        SSS1 = "append start"
  5589.        SSS1 = append_start1
  5590.         SSS2 = ""
  5591.         SSS3 = ""
  5592.         SSS4 = ""       '23 june 2002
  5593.        SSS5 = ""
  5594.         SSS6 = ""
  5595.         temp_fore = Set_Fore
  5596.         Set_Fore = AltColor
  5597.         keep_aaa = aaa + ""
  5598.         keep_ooo = ooo + ""
  5599.         aaa = Context_text(temp4)
  5600.         ooo = Context_text(temp4)
  5601.         GoSub sub_12000
  5602.         aaa = keep_aaa
  5603.         ooo = keep_ooo
  5604.         SSS1 = new1
  5605.         SSS2 = new2
  5606.         SSS3 = new3
  5607.         SSS4 = new4         '23 june 2002
  5608.        SSS5 = new5
  5609.         SSS6 = new6
  5610.         Set_Fore = temp_fore
  5611.         GoTo line_15550
  5612.        End If              'hilite any append lines i put in
  5613.      
  5614.        If InStr(1, Context_text(temp4), hilite_this) <> 0 And _
  5615.        (hilite_this <> "" And hilite_this <> "     ") Then
  5616.         tot_s1 = tot_s1 - 1         'january 06 2001
  5617.        new1 = SSS1
  5618.         new2 = SSS2
  5619.         new3 = SSS3
  5620.         new4 = SSS4         '23 june 2002
  5621.        new5 = SSS5
  5622.         new6 = SSS6
  5623.         SSS1 = hilite_this
  5624.         SSS2 = ""
  5625.         SSS3 = ""
  5626.         SSS4 = ""           '23 june 2002
  5627.        SSS5 = ""
  5628.         SSS6 = ""
  5629.         temp_fore = Set_Fore
  5630.         Set_Fore = AltColor
  5631.         keep_aaa = aaa + ""
  5632.         keep_ooo = ooo + ""
  5633.         aaa = Context_text(temp4)
  5634.         ooo = Context_text(temp4)
  5635.         If hilite_hh = "Y" Then
  5636.             GoSub hilite_25500
  5637.         End If              'april 22 2001 this one
  5638.        GoSub sub_12000
  5639.         aaa = keep_aaa
  5640.         ooo = keep_ooo
  5641.         SSS1 = new1
  5642.         SSS2 = new2
  5643.         SSS3 = new3
  5644.         SSS4 = new4         '23 june 2002
  5645.        SSS5 = new5
  5646.         SSS6 = new6
  5647.         Set_Fore = temp_fore
  5648.         GoTo line_15550
  5649.        End If              'hilite any append lines i put in
  5650.  
  5651. line_15500:
  5652.         new1 = SSS1
  5653.         new2 = SSS2
  5654.         new3 = SSS3
  5655.         new4 = SSS4         '23 june 2002
  5656.        new5 = SSS5
  5657.         new6 = SSS6
  5658.         SSS1 = ""
  5659.         SSS2 = ""
  5660.         SSS3 = ""
  5661.         SSS4 = ""           '23 june 2002
  5662.        SSS5 = ""
  5663.         SSS6 = ""
  5664.         keep_aaa = aaa + ""
  5665.         keep_ooo = ooo + ""
  5666.         aaa = Context_text(temp4)
  5667.         ooo = Context_text(temp4)
  5668.         GoSub sub_12000
  5669.         aaa = keep_aaa
  5670.         ooo = keep_ooo
  5671.         SSS1 = new1
  5672.         SSS2 = new2
  5673.         SSS3 = new3
  5674.         SSS4 = new4         '23 june 2002
  5675.        SSS5 = new5
  5676.         SSS6 = new6
  5677.        
  5678. line_15550:
  5679.         cnt = cnt + 1
  5680. line_15553:             'january 22 2001
  5681.        Next temp4
  5682.     End If              'aug 08/99
  5683. line_15555:             'november 10 2000
  5684. '    Print Context_cnt   'november 10 2000 testing
  5685.    Context_cnt = -1     'november 10 2000
  5686. Return
  5687.  
  5688. line_16000:         'november 17 2000
  5689.    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  5690. '            xtemp = InputBox("27 october 2004 TESTING 3 " + ttt, , , 4400, 4500) 'TESTING ONLY
  5691. '        tt1 = "replace.txt"         '27 October 2004 testing only reactivate line below
  5692.        Line Input #BatchFile, tt1
  5693. '            xtemp = InputBox("27 october 2004 TESTING 3a =" + tt1, , , 4400, 4500) 'TESTING ONLY
  5694.        GoTo skip_file
  5695.     End If                                              '27 October 2004
  5696.    Test1_str = "File name Prompt"              'april 01 2001
  5697.    If filereason <> "" Then Test1_str = filereason 'april 01 2001
  5698.    tt1 = InputBox("enter file name", Test1_str, xtemp, xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  5699. skip_file:          '27 October 2004
  5700.    tt1 = UCase(tt1)
  5701.     If tt1 = "" Then
  5702.         FileExt = UCase(xtemp)
  5703.     Else
  5704.         FileExt = tt1
  5705.     End If
  5706.     If Right(FileExt, 4) <> ".TXT" Then
  5707.         GoTo line_16000
  5708.     End If
  5709. '            xtemp = InputBox("27 october 2004 TESTING 3b =" + tt1, , , 4400, 4500) 'TESTING ONLY
  5710. Return
  5711. line_16100:         'january 01 2001
  5712. '            save_line = "16100"
  5713.            save_line = "16100"
  5714.             Close ExtFile
  5715. '            Kill FileExt        'january 01 2001  january 22 2001
  5716.            DoEvents
  5717.             ExtFile = FreeFile
  5718.             ExtFile = ExtFile + 1   'maybe this will fix the problem?????
  5719.            DoEvents
  5720. '          save_line = "16100a"                '18 March 2007
  5721.    If oopen <> "APPEND" Then
  5722.      Open FileExt For Output Access Write As #ExtFile
  5723.     Else
  5724.      Open FileExt For Append Access Write As #ExtFile   'september 02 2001
  5725.    End If
  5726.    
  5727. '            save_line = "16100b"    '18 March 2007
  5728.            DoEvents
  5729.             line_len = 5000 'on extract do not do any wraps???
  5730.    'see the fix above re the adding of 1 to the file count with this prompt
  5731. Return
  5732.  
  5733. Display_pict_17000:
  5734. '        tt1 = InputBox("doug testing pics1", , , 4400, 4500)  'testing
  5735.  
  5736.     save_line = "17000"     'march 31/00
  5737.    If pp_entered = "YES" Then
  5738.         GoTo line_17045
  5739.     End If      'november 6 2000
  5740.    Line Input #OutFile, Next_line
  5741.     zzz_cnt = zzz_cnt + 1
  5742.     Next_line_save = Next_line
  5743.     Previous_line_save = Previous_line
  5744.     This_line = ooo
  5745.  
  5746. Line_17020:
  5747. '        Print "PICTURE FOUND="; This_line
  5748. '       tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  5749. '       leave above as example for testing display and prompt
  5750. '    If InStr(UCase(Previous_line + This_line + Next_line), "XXX.")
  5751.    If InStr(UCase(Previous_line + Next_line), "XXX.") _
  5752.         = 0 Then
  5753.         GoTo Line_17090
  5754.     End If      'no more xxx. to display
  5755.    'get the next line for searching for XXX.
  5756.    'Next_line_save = Next_line
  5757.    'clear Next_line if XXX. found there
  5758.    'Previous_line_save = Previous_line
  5759.    'clear Previous_line if XXX. found there
  5760.    'do logic that calls up to two paint program displays
  5761.    'here and check at end for Next_line
  5762. 'switched the order here so that only 1 line of text
  5763. 'will work ie photo bla bla bal then xxx.
  5764. 'before it was picking up the one before it
  5765.    If InStr(UCase(Next_line), "XXX.") <> 0 Then
  5766.         Line_Search = Next_line
  5767.    '     tt1 = InputBox("next_line" + SSS1 + Next_line, , , 4400, 4500) 'TESTING ONLY
  5768.    '    tt1 = InputBox("Previous_line" + SSS2 + Previous_line, , , 4400, 4500) 'TESTING ONLY
  5769.        Next_line = "" 'so we don't do it again
  5770.        Previous_line = ""      'line added
  5771.        GoTo Line_17025         'line added
  5772.    End If      'no more xxx. to display
  5773.    If InStr(UCase(Previous_line), "XXX.") <> 0 Then
  5774.         Line_Search = Previous_line
  5775.         Previous_line = "" 'so we don't do it again
  5776.        'goto Line_17025        'line removed
  5777.    End If      'no more xxx. to display
  5778.  
  5779. Line_17025:
  5780.     String_Position = InStr(UCase(Line_Search), "XXX.")
  5781.     If String_Position = 0 Then
  5782.         GoTo Line_17090:
  5783.     End If
  5784.         Pict_file = Right(Line_Search, Len(Line_Search) - String_Position - 3)
  5785.         Save_file = Pict_file   '15 January 2004
  5786. '30 May 2003 allow for cmd(58) DEFAULT_TO_CD to over-ride path... ver=1.06
  5787.    If UCase(Left(Cmd(58), 13)) = "DEFAULT_TO_CD" And Left(App.Path, 3) <> "C:\" Then
  5788.         Pict_file = Left(App.Path, 3) + Right(Pict_file, Len(Pict_file) - 3)
  5789.     End If          'change any C:\ to D:\ or E:\ etc 30 May 2003 ver=1.06
  5790.    
  5791.     If auto_exe = "YES" And Left(App.Path, 3) <> "C:\" Then
  5792.         Pict_file = Left(App.Path, 3) + Right(Pict_file, Len(Pict_file) - 3)
  5793.     End If          'change any C:\ to D:\ or E:\ etc 07 december 2002
  5794. line_17030:
  5795.     tt = InStr(Pict_file, Chr(9)) 'check for tabs
  5796.    If tt = 0 Then
  5797.         GoTo line_17035
  5798.     End If
  5799.     'change any tabs to 4 spaces
  5800.    Pict_file = Left(Pict_file, tt - 1) + "    " + Right(Pict_file, Len(Pict_file) - tt)
  5801.     GoTo line_17030
  5802. line_17035:
  5803.     If Left(Pict_file, 1) <> " " Then
  5804.         GoTo line_17040     'STRIP OUT LEADING SPACES
  5805.    End If
  5806.     Pict_file = Right(Pict_file, Len(Pict_file) - 1)
  5807.     GoTo line_17035
  5808. line_17040:
  5809.     'check the file exists before going anywhere
  5810.    save_line = "17040"
  5811.     FileFile = FreeFile
  5812. '13 December 2004 had to comment out the following 2 lines to get the error trap on mcisendstring open to work
  5813. '13 December 2004    Open Pict_file For Input As #FileFile
  5814. '13 December 2004    Close FileFile
  5815. '13 December 2004 maybe check to see what it would take to just check mpg or some such above ***vip*** todo
  5816.    DoEvents
  5817.     save_line = "17040a"        '13 December 2004
  5818. '        tt1 = InputBox("doug testing pics2 " + Line_Search, , , 4400, 4500) 'testing 29 november 2006
  5819. ' aug 08/00
  5820.    
  5821.     If InStr(UCase(Line_Search), ".BMP") <> 0 And _
  5822.        Test1_str = "P1" Then
  5823.         GoTo line_17045
  5824.     End If
  5825.     avi_file = "NO"             '01 february 2003
  5826.    mpg_file = "NO"             '11 May 2003 ver=1.05
  5827.    wav_file = "NO"             '10 June 2003 ver=1.07
  5828.    mid_file = "NO"             '10 June 2003 ver=1.07
  5829.    If InStr(UCase(Line_Search), ".AVI") <> 0 Then
  5830.         avi_file = "YES"
  5831.         GoTo line_17045         '01 february 2003
  5832.    End If                      '01 february 2003
  5833.    
  5834.     If Mid(UCase(Line_Search), 5, Len(Line_Search) - 4) = "HTTP:" Then
  5835. '        tt1 = InputBox("doug testing pics2 " + Line_Search, , , 4400, 4500) 'testing 29 november 2006
  5836.        GoTo Line_17080         '
  5837.    End If                      '29 November 2006
  5838.  
  5839.    
  5840. '10 June 2003 ver=1.07    If InStr(UCase(Line_Search), ".MPG") <> 0 Then
  5841. '16 August 2004    If InStr(UCase(Line_Search), ".MPG") <> 0 Or InStr(UCase(Line_Search), ".MP3") Then
  5842.    If InStr(UCase(Line_Search), ".MPG") <> 0 Or InStr(UCase(Line_Search), ".MP3") Or InStr(UCase(Line_Search), ".WMV") Or InStr(UCase(Line_Search), ".VOB") Then
  5843.         mpg_file = "YES"
  5844.         GoTo line_17045         '11 May 2003
  5845.    End If
  5846.    
  5847.     'ver=1.07
  5848.    If InStr(UCase(Line_Search), ".WAV") <> 0 Then
  5849.         wav_file = "YES"
  5850.         GoTo line_17045         '10 June 2003
  5851.    End If
  5852.    
  5853.     'ver=1.07
  5854.    If InStr(UCase(Line_Search), ".MID") <> 0 Then
  5855.         mid_file = "YES"
  5856.         GoTo line_17045         '10 June 2003
  5857.    End If
  5858.    
  5859.  
  5860. '28 November 2004    If InStr(UCase(Line_Search), ".JPG") = 0 Then
  5861.    If InStr(UCase(Line_Search), ".JPG") = 0 And InStr(UCase(Line_Search), ".GIF") = 0 Then
  5862.         GoTo Line_17080
  5863.     End If
  5864.    
  5865. line_17045:
  5866. '28 November 2004 gif here too along with the jpg
  5867. '        tt1 = InputBox("doug testing pics2a " + Pict_file, , , 4400, 4500) 'testing
  5868. '            frmproj2.Caption = " testing=" + Pict_file + "=" 'testing
  5869. 'only .JPG files below see line_17080 and gif now  28 november 2004
  5870.        LastFile = Pict_file
  5871.     'check the program exists before going anywhere
  5872.    save_line = "17041"
  5873.     FileFile = FreeFile
  5874. line_17050:
  5875.     save_line = "17050"
  5876.     Close FileFile
  5877.     DoEvents
  5878. '        tt1 = InputBox("doug testing pics2.1", , , 4400, 4500)  'TESTING ONLY
  5879. 'january 03 2002 the nt computer at work failed on the following open
  5880. 'why oh why are we doing the open cmd(8) below ***vip*** todo check this out
  5881. 'they should all have explorer anyway...
  5882.    If debug_photo Then         '12 october 2002
  5883.            tt1 = InputBox("testing photo 6b-1", , , 4400, 4500)  'TESTING ONLY
  5884.    End If
  5885. '09 september 2003    If Left(os_ver, 10) = "Windows 20" And Len(os_ver) > 15 Then
  5886.    If Left(os_ver, 10) = "Windows 20" Then
  5887. '09 september 2003        Open Cmd(43) For Input As #FileFile
  5888. '09 september 2003    Else
  5889. '10 September 2003        Open Cmd(8) For Input As #FileFile
  5890.    End If          '30 november 2002
  5891.    
  5892. '10 September 2003    Close FileFile
  5893.    save_line = "17055"
  5894.         ' testing below explorer
  5895. 'the P1 option should work for .bmp .jpg and .tif
  5896. '        tt1 = InputBox("doug testing pics2.2", , , 4400, 4500)  'TESTING ONLY
  5897.    'iffy 17050
  5898.    If (InStr(UCase(Cmd(8)), "EXPLORER") <> 0 Or InStr(UCase(Cmd(8)), "NETSCAPE") <> 0) And Test1_str = "P1" Then
  5899. '        Print "file name="; Pict_file; "="
  5900. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  5901. 'question? why the reference to explorer only to make
  5902. 'question? the above p1 option work.
  5903. '        tt1 = InputBox("doug testing pics2.3", , , 4400, 4500)  'TESTING ONLY
  5904. '20 May 2003        Print Pict_file      'there was no need for this meebee
  5905. '    Heightnew = 10000   'february 16 2001 the new has no effect
  5906. '    Widthnew = 12000     'february 16 2001
  5907. '    Height = 9000       'february 16 2001 this changes the size of the form
  5908. '    Width = 10500        'february 16 2001
  5909. 'demo the above using the p1 option and any picture
  5910.  
  5911. 'february 21 2001        Set Picture = LoadPicture(Pict_file)
  5912.  
  5913. '  P I C T U R E S   D I S P L A Y E D   B E L O W
  5914.  
  5915. 'most of the picture displays take place right below here with the load picture **vip**
  5916. '        tt1 = InputBox("doug testing pics3", , , 4400, 4500)  'TESTING ONLY
  5917.    If debug_photo Then         '12 october 2002
  5918.            tt1 = InputBox("testing photo 6b " + Pict_file, , , 4400, 4500) 'TESTING ONLY
  5919.    End If
  5920.    
  5921. '29 March 2003      ver=1.04
  5922.    motion_yn = "NO"        '29 March 2003
  5923.    
  5924. '28 february 2003       skip dups if there
  5925. 'handy to see the duplicates if a visual inventory otherwise skip em for most part
  5926. '19 September 2004 do Command== stuff here
  5927. '21 September 2004 might want to check for command== right after the input line.****************
  5928. 'might need to keep the zzz_cnt number and on return read 1 past that count ie reopen...
  5929. '19 November allow for switch of control files...
  5930. '***vip*** todo maybe allow it to change input files here too
  5931. '          to whatever is in the corresponding fields in cmd(46) cmd(47) cmd(48) etc
  5932. eof_entry:                                  '26 November 2004
  5933. '            tt1 = InputBox("testingy " + aaa + " " + Cmd(73) + " " + TheFile, , , 4400, 4500) 'TESTING ONLY 26 NOvember 2004
  5934.    III = InStr(UCase(aaa), "CONTROL==")    '19 November 2004
  5935.    If III <> 0 Then
  5936. '            tt1 = InputBox("testingA " + control_file + " " + aaa + " " + Cmd(73), , , 4400, 4500) 'TESTING ONLY 26 NOvember 2004
  5937.        control_file = Trim(Right(aaa, Len(aaa) - III - 8)) '19 November 2004
  5938.            tempdata = Cmd(73)                      '22 November 2004  the fileswitch info
  5939. '        control_file = "chgfile.txt"           '26 November 2004 testing with this
  5940. '            frmproj2.Caption = " testing=" + control_file + "=" '26 November 2004
  5941.        GoSub Control_28000     'change the control file from in a *.txt file
  5942.        DoEvents
  5943.         If Left(UCase(tempdata), 10) = "FILESWITCH" Then
  5944.             Close #OutFile          '22 November 2004
  5945.            DoEvents
  5946.             OutFile = FreeFile
  5947.             DoEvents
  5948.             TheFile = Trim(Cmd(46))  'Must be a file name here not a number
  5949. '            SSS1 = "A"          '26 November 2004 testing this
  5950. '            frmproj2.Caption = " testing=" + TheFile + "=" + SSS1 '26 November 2004
  5951. '            tt1 = InputBox("testingx " + control_file + " " + Cmd(46) + " " + TheFile, , , 4400, 4500) 'TESTING ONLY 26 NOvember 2004
  5952.            Open TheFile For Input As #OutFile
  5953. '            tt1 = InputBox("testingx " + control_file + " " + Cmd(46) + " " + TheFile, , , 4400, 4500) 'TESTING ONLY 26 NOvember 2004
  5954.            DoEvents
  5955. '===========================
  5956. '            frmproj2.Caption = " testingx=" + TheFile + "=" + Test2_str
  5957.            
  5958. '            tt1 = InputBox("testingX " + control_file + " " + Cmd(47) + " " + TheFile + " " + Cmd(48), , , 4400, 4500) 'TESTING ONLY 26 NOvember 2004
  5959.            tempdata = "CONTROL"         '26 November 2004       allow for skip of prompt three with this
  5960.            multi_prompt2 = RTrim(Cmd(47))       '26 NOVEMBER 2004
  5961.            '18 December 2004 the following line did a fix for the file switching...
  5962.            Cmd(73) = "noFILESWITCH"        '18 December 2004 if the new file had FILESWITCH set it would go wild
  5963.            temptemp = Cmd(48)              '26 November 2004  the search string ie "A" or "PHOTO"
  5964.            If eofsw = "YES" Then
  5965.                 eofsw = ""
  5966.                 ttt = multi_prompt2
  5967.             End If
  5968.             GoTo Get_no2                        '26 November 2004
  5969. '===========================
  5970.        End If                      '22 November 2004
  5971. '            frmproj2.Caption = " testing1x=" + control_file + "=" '26 November 2004
  5972.        GoTo input_1000a        '19 November 2004  so the pause does not take place etc etc.
  5973.    End If                                      '19 November 2004
  5974.    If Len(command_line) < 1 Then
  5975.         command_line = ""
  5976.         III = InStr(UCase(aaa), " COMMAND==")
  5977.         If III <> 0 Then
  5978.             II = InStr(III + 9, aaa + " ", " ") 'make sure there is a trailing space here
  5979.            command_line = Mid(aaa, III + 10, II - III - 10)
  5980.             multi_prompt2 = command_line
  5981.             hold_zzz = zzz_cnt          '21 September 2004
  5982. '            aaa = Left(aaa, III + 1) + Right(aaa, Len(aaa) - II - 1) '21 September 2004
  5983.            If SSS1 <> "" Then temptemp = SSS1  '02 January 2005
  5984.            If SSS2 <> "" Then temptemp = temptemp + sep + SSS2 '02 January 2005
  5985.            If SSS3 <> "" Then temptemp = temptemp + sep + SSS3 '02 January 2005
  5986.            If SSS4 <> "" Then temptemp = temptemp + sep + SSS4 '02 January 2005
  5987.            If SSS5 <> "" Then temptemp = temptemp + sep + SSS5 '02 January 2005
  5988.            If SSS6 <> "" Then temptemp = temptemp + sep + SSS6 '02 January 2005
  5989. '        tempdata = InputBox("02 January 2005 test=" + temptemp + " " + SSS1 + " " + SSS2 + " " + SSS3, CStr(zzz_cnt), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  5990.            tempdata = "COMMAND"         '26 November 2004       allow for skip of prompt three with this
  5991.            
  5992. '02 January 2005            temptemp = Cmd(48)           '26 November 2004
  5993. '01 January 2005 the above line results in the search prompt being "photo" change this to keep the old prompt
  5994. 'ie screen/saver  etc etc
  5995.            GoTo Get_no2
  5996.         End If                      '19 September 2004
  5997.    Else                    '21 September 2004
  5998. '            command_line = ""   '21 September 2004
  5999.    End If                      '21 September 2004
  6000. If Pict_file = last_pict And Cmd(54) <> "SHOWDUPS" Then
  6001.     GoTo Line_17055         '28 february 2003
  6002. End If                      '28 february 2003
  6003. '12 September 2004 check if "backgrd==" in the line here and fire up the background job...
  6004. '12 September 2004
  6005.        back_job = ""
  6006.         III = InStr(UCase(aaa), " BACKGRD==")
  6007.         If III <> 0 Then
  6008.             II = InStr(III + 9, aaa + " ", " ") 'make sure there is a trailing space here
  6009.            back_job = Mid(aaa, III + 10, II - III - 10)
  6010. '        xtemp = InputBox("12 Sept test=" + App.Path + "\" + back_job, CStr(delay_sec), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  6011.            If InStr(1, back_job, ":") = 0 Then
  6012.                 back_job = App.Path + "\" + back_job
  6013.             End If
  6014. '02 October 2004 check the back_job here
  6015. '    frmproj2.Caption = "before test " + back_job     '02 October 2004 testing
  6016. '            new_delay_sec = 2    '02 October 2004
  6017. '            GoSub line_30300            '02 October 2004
  6018.         MyAppID = Shell(back_job, 3)
  6019.          SendKeys "^o", True
  6020.         End If                      '12 September 2004
  6021.  
  6022. '05 march 2003              do a mp3 play
  6023. '    Pict_file = "E:\Dan\mp3_0001.mp3"  'testing only 20 march 2003 commented it out
  6024. '11 June 2003 ver=1.07 If InStr(1, UCase(Pict_file), ".MP3") <> 0 Then
  6025. If InStr(1, UCase(Pict_file), ".MP3") <> 0 And motion_yn = "xxxx" Then '11 June 2003 deactivated this logic for now
  6026.    motion_yn = "YES"       '29 March 2003
  6027. Last$ = frmproj2.hWnd & " Style " & &H40000000
  6028. ' ToDo$ = "open e:\cottonwood\101-0186_mvi.avi Type avivideo Alias video1 parent " & Last$
  6029. todo$ = "open " + Pict_file + " Type MPEGVideo Alias video1 , vbnullstring, 0& ,0& "
  6030.             tt1 = InputBox("testing mp3 " + Pict_file, , , 4400, 4500) 'TESTING ONLY
  6031. i = mciSendString("close video1", 0&, 0, 0)
  6032.  i = mciSendString(todo$, 0&, 0&, 0&)
  6033. ' i = mciSendString("put video1 window at -1 -1 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6034. ' i = mciSendString("play video1 wait", 0&, 0, 0)
  6035.            tt1 = InputBox("testing mp3 a" + Pict_file, , , 4400, 4500) 'TESTING ONLY
  6036. i = mciSendString("play video1", vbNullString, 0, 0)
  6037.  i = mciSendString("close video1", 0&, 0, 0)
  6038.             tt1 = InputBox("testing mp3 b" + Pict_file, , , 4400, 4500) 'TESTING ONLY
  6039.    GoTo Line_17055
  6040. End If                      '05 March 2003
  6041.  
  6042.  
  6043. '19 january 2003            avi file display here
  6044. If avi_file = "YES" Then
  6045.     motion_yn = "YES"       '29 March 2003
  6046.    If videoyn = "SHOWVIDEO" Then       '10 february 2003
  6047. Last$ = frmproj2.hWnd & " Style " & &H40000000
  6048. ' ToDo$ = "open e:\cottonwood\101-0186_mvi.avi Type avivideo Alias video1 parent " & Last$
  6049. todo$ = "open " + Pict_file + " Type avivideo Alias video1 parent " & Last$
  6050.  i = mciSendString(todo$, 0&, 0, 0)
  6051. ' i = mciSendString("put video1 window at 16 10 124 120", 0&, 0, 0)
  6052. ' i = mciSendString("put video1 window at 16 10 800 600", 0&, 0, 0)
  6053. ' i = mciSendString("put video1 window at 16 10 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6054. i = mciSendString("put video1 window at -1 -1 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6055. ' i = mciSendString("put video1 window at 16 10 1084 800", 0&, 0, 0)    'for 17 inch screen
  6056. i = mciSendString("play video1 wait", 0&, 0, 0)
  6057.  i = mciSendString("close video1", 0&, 0, 0)
  6058. '19 january 2003 commented out till ready
  6059.    End If                  '10 february 2003
  6060.    GoTo Line_17055         '01 february 2003
  6061. End If                      '01 february 2003 end of avi_file = "YES"
  6062.    
  6063. '11 May 2003            mpg file display here ver=1.05
  6064. If mpg_file = "YES" Then
  6065.     motion_yn = "YES"
  6066.     slomo = False       '08 January 2004
  6067.  
  6068.   If videoyn = "SHOWVIDEO" Then
  6069. Last$ = frmproj2.hWnd & " Style " & &H40000000
  6070. ' ToDo$ = "open e:\cottonwood\101-0186_mvi.avi Type avivideo Alias video1 parent " & Last$
  6071.    '18 june 2003 re use short name as long ones with spaces cause a problem
  6072.    'might need to use this elsewhere ***vip*** todo
  6073.    lresult = getshortpathname(Pict_file, sshortfile, Len(sshortfile))
  6074.     long_pict_file = Pict_file + ""            '22 November 2006
  6075.    Pict_file = Left$(sshortfile, lresult)  '18 june 2003 needed the short file name
  6076.    If elapse_yn = "YES" Then elapse_start = Timer            '13 July 2003
  6077. ' todo$ = "open " + Pict_file + " Type MPEGVideo Alias video1 parent " & Last$
  6078. todo$ = "open " + Pict_file + " Type MPEGVideo Alias video1 wait parent " & Last$
  6079.     DoEvents
  6080. '18 March 2004 i = mciSendString("close all", 0&, 0, 0)      '17 March 2004 make sure nothing is there.
  6081.  
  6082.     '12 December 2004 this does not seem to trap any error but microsoft can check out the open command
  6083.        frmproj2.Caption = "(Error Opening Video File)1 " + Save_file '12 December 2004 bad files stop here....
  6084. '    Timer1.Enabled = True '13 December 2004
  6085. '    Timer1.Enabled = False '13 December 2004
  6086. '    Timer1_Timer          '13 December 2004 all the timer
  6087. ' i = mciSendString(todo$, 0&, 0, 0)         'open command
  6088. result1 = mciSendString(todo$, returnstring1, 1024, 0)   '12 December 2004a
  6089. '        frmproj2.Caption = "check the alias =" + video1 '12 December 2004
  6090. '            new_delay_sec = 2
  6091. '            GoSub line_30300        '13 December 2004
  6092. '    Timer1.Enabled = False '13 December 2004
  6093. '    Timer1.Enabled = True '13 December 2004
  6094. '    On Error GoTo 0             '12 December 2004a
  6095.    DoEvents
  6096. '13 December 2004 try and put the following command in a timer
  6097. '13 December 2004 result = mciSendString(todo$, ByVal 0&, 0, 0)   '12 December 2004a
  6098. '        xtemp = InputBox("13 December 2004 test erro test=", CStr(delay_sec), , xx1 - offset1, yy1 - offset2)   '29 February 2004 test
  6099.        frmproj2.Caption = "error opening video file2 ="  '12 December 2004
  6100.    DoEvents
  6101.  If Not result1 = 0 Then
  6102.     errormsg1 = mciGetErrorString(result1, errorstring1, 1024) '12 December 2004a
  6103.        frmproj2.Caption = " err=" + CStr(result1) + " opening video file 3" + Save_file + " " + errorstring1 '12 December 2004
  6104.            new_delay_sec = 2
  6105.             GoSub line_30300        '13 December 2004
  6106.        GoTo input_1000             '12 December 2004
  6107. End If                         '12 December 2004
  6108. '            On Error GoTo Errors_31000      '12 December 2004a
  6109.        frmproj2.Caption = "(Placing Video Image)"  '12 December 2004
  6110. i = mciSendString("put video1 window at -1 -1 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6111.  
  6112. '26 April 2004 try and start getting output data
  6113. ' i = mciSendString("set video2 channels 1 ", 0&, 0, 0)  'new
  6114. 'todo$ = "open new c:\search\outmpg.mpg" + " Type MPEGVideo Alias video2 parent " & Last$
  6115. 'i = mciSendString(todo$, 0&, 0, 0)
  6116. ' i = mciSendString("video2 video record", 0&, 0, 0) '26 February 2004
  6117. '26 April 2004
  6118.  
  6119.  '26 February 2004  find the length of the video file here
  6120. '01 April 2004 i = mciSendString("status video1 length", mssg, 255, 0) '26 February 2004
  6121. '19 August 2004 try and mute the video if not full speed
  6122. 'the following mute made no difference.
  6123. 'the slow speed seems to mute it somewhat by itself.
  6124. If slomo = True Then
  6125.  i = mciSendString("set video1 audio all off", 0&, 0, 0)
  6126. '             SendKeys "^c"                   '01 March 2007 check this out more
  6127. ' i = mciSendString("set video1 audio right off", 0&, 0, 0)
  6128. ' i = mciSendString("set video1 audio left off", 0&, 0, 0)
  6129. End If          '19 August 2004 try to mute video if slomo
  6130.            
  6131. '12 December 2004 maybe the video stops here...
  6132.        frmproj2.Caption = "(Finding Video length)"  '12 December 2004
  6133. i = mciSendString("status video1 length wait", mssg, 255, 0) '26 February 2004
  6134. DoEvents
  6135.  temp3 = InStr(mssg, Chr$(0)) '26 February 2004
  6136. video_length = Val(Left(mssg, temp3 - 1)) '26 February 2004
  6137. '23 March 2004      do random start point here
  6138.    '28 March 2004 some files have bad size data ie demo76_pict6.mpg
  6139.    If video_length > 50000000 Then '28 March 2004 ie the value is 19431083 ??
  6140.        frmproj2.Caption = "(Bad Video length=" + CStr(video_length) + ")" '28 March 2004
  6141.            new_delay_sec = 4
  6142.             GoSub line_30300        '28 March 2004
  6143.        video_length = 10000        'on a bad number set to 10 seconds long
  6144.    End If                          '28 March 2004
  6145.    If rand1 Then
  6146.         rand_cnt1 = video_length - (hold_sec * 1000)    '23 March 2004
  6147.        rand_no1 = Int(rand_cnt1 * Rnd + 1)   '23 March 2004
  6148.        line_start_point = rand_no1             '23 March 2004
  6149. check_l_s_p:                    '27 March 2004
  6150.        If line_start_point > 300000 Then
  6151.             line_start_point = line_start_point - 300000
  6152.             GoTo check_l_s_p
  6153.         End If                  '27 March 2004
  6154.                    '27 March 2004 jumping to the middle of large files takes too line
  6155.                    'this limits that to the first 5 minutes and that is plenty.
  6156.                    
  6157.     End If                                      '23 March 2004
  6158. '29 February 2004 leap year extra day
  6159. '14 March 2004 do not allow the delay to be longer than the file below ie 83/3/7 example
  6160. '        xtemp = InputBox("24 March 2004 test length=" + CStr(video_length) + " " + CStr(line_delay_sec) + " " + CStr(line_start_point), CStr(delay_sec), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  6161.    If thumb_nail = "YES" Then line_delay_sec = hold_sec       '22 March 2004
  6162. '25 October 2004 remove the link from line_delay_sec below add new command element
  6163. 'so the short small tiny video file length will now display (ie tt.01) FIXES
  6164. 'how did line_start_point below ever go negative ????
  6165.    If line_start_point < 0.0001 Then line_start_point = 0     '25 October 2004 this did the fix on the short ones.
  6166.    If line_start_point < 9.0001 Then line_start_point = 10    '11 March 2007
  6167. '        xtemp = InputBox("25 oct test video_length=" + CStr(video_length), CStr(line_delay_sec), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  6168. '11 March 2007    If start_point <> 0 And rand1 <> -1 Then
  6169.    If start_point <> 10 And rand1 <> -1 Then
  6170.         line_start_point = start_point                  '20 August 2005
  6171.    End If
  6172.     If line_delay_sec * 1000 + line_start_point > video_length - 100 Then
  6173. '20 August 2005        line_delay_sec = 0              '14 March 2004
  6174.        line_start_point = video_length - line_delay_sec * 1000 '20 August 2005
  6175. '        xtemp = InputBox("20 August 2005 line_delay_sec=" + CStr(line_delay_sec) + " " + CStr(line_start_point), CStr(delay_sec), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  6176.    End If
  6177.     If line_delay_sec < 0.0001 Then
  6178.         line_delay_sec = (video_length - line_start_point) / 1000
  6179. '        xtemp = InputBox("25 oct line_delay_sec=" + CStr(line_delay_sec) + " " + CStr(line_start_point), CStr(delay_sec), , xx1 - offset1, yy1 - offset2) '29 February 2004 test
  6180.        delay_sec = line_delay_sec
  6181.     End If          '29 February 2004 now that I have the length use it.
  6182.    If line_delay_sec > delay_sec Then
  6183.         delay_sec = line_delay_sec
  6184.     End If
  6185.     last_vs = 0             '25 March 2004
  6186. '        xtemp = InputBox("length=", CStr(video_length), , xx1 - offset1, yy1 - offset2)  '26 February 2004 test
  6187.  
  6188. '    start_point = 5000      'testing 16 july 2003 see if it works here first
  6189. '16 July 2003 (why just mp3 do both) -deactivated- If InStr(UCase(Line_Search), ".MP3") <> 0 Then
  6190. If InStr(UCase(Line_Search), ".MPx") <> 0 Then
  6191.     i = mciSendString("set mp3 time format trnsf", 0&, 0, 0)
  6192.     '18 june 2003 testing
  6193. '    i = mciSendString("play " & Pict_file, 0&, 0&, 0&)
  6194. '16 July 2003    i = mciSendString("play video1 to 10000000", 0&, 0&, 0&)
  6195.    i = mciSendString("play video1 from " + CStr(start_point), 0&, 0&, 0&)
  6196.         'see about changing the above with start= and end= data
  6197. '    mediaplayer1.Open Pict_file
  6198. '    i = mciSendString("play video1 from 0 to 111111", 0&, 0&, 0&)
  6199. End If             '11 june 2003 ver=1.07
  6200.  
  6201. '********************
  6202. '14 July 2003 this is where a wait nowait check needs to be done below (see notify / wait options)
  6203. ' i = mciSendString("play video1 wait", 0&, 0, 0)    'this is where the display happens
  6204.    temp_double = start_point           '19 July 2003 Ver=1.07T
  6205. '    play_speed = 150         '29 October 2003        (move this later)
  6206. '30 October de-activate the speed command below It seems to work on the laptop
  6207. '   but freezes the other two big screens set it to 500 for half and 1000 for full speed
  6208. '   The search.txt file gets corrupted and needs replacing  30 October 2003
  6209. '   the control.txt file gets corrupted needs some additional spaces? 30 October 2003
  6210.    slomo = False       '08 January 2004
  6211. '    frmproj2.Caption = program_info + " Video File= " + Save_file '15 January 2004
  6212. '    frmproj2.Caption = program_info + " Video info= " + vvv '16 January 2004
  6213. '20 January 2004 minor changes here
  6214.    II = InStr(1, vvv, "PHOTO ")
  6215.     temptemp = vvv
  6216.     If II <> 0 Then
  6217.         temptemp = Left(vvv, II - 1) + Right(vvv, Len(vvv) - (II + 6 - 1)) 'strip off "photo "
  6218.    End If
  6219. '
  6220. '16 August 2004    frmproj2.Caption = LCase(temptemp) + " (Replay by Spectate Swamp)" '17 January 2004
  6221.    frmproj2.Caption = LCase(temptemp) + " (Replay by Spectate Swamp) length=" + CStr(video_length / 1000) + " seconds" '16 August 2004
  6222.    If Left(Cmd(72), 11) = "RESULTS.TXT" Then                   '08 November 2004
  6223.        frmproj2.Caption = LCase(temptemp) + " (Logging to RESULTS.TXT Spectate Swamp) length=" + CStr(video_length / 1000) + " seconds" '16 August 2004
  6224.    End If          '08 November 2004
  6225. '    frmproj2.Caption = " Line_Search=" + Line_Search '08 November 2004 is the xxx. stuff for output
  6226.    If Left(UCase(Cmd(61)), 8) = "SETSPEED" Then
  6227.         If play_speed <> 1000 Then
  6228. '08 January 2004            delay_sec = delay_sec * ((1000 / play_speed) + 1)      '04 November 2003 if slower make dalay longer
  6229.            slomo = True        '08 January 2004 14 January 2004 moved 1 line up inside of the if ??
  6230. '            i = mci_setaudio(video1, 0, 0)  '29 February 2004
  6231. '           might need a combination of mci_setaudio and mcisendcommand todo ***vip***
  6232.        End If                              'add the 1 above just to extend the play a bit
  6233. '08 January 2004 set speed slow motion removed       i = mciSendString("set video1 speed " & play_speed, 0&, 0, 0)   '29 October 2003
  6234.    End If          '30 October 2003 switch on and off
  6235. '16 November 2003 set play_speed back to command file value
  6236. '14 January 2004 what is with the resetting here maybe too early..
  6237. 'moved down    play_speed = save_play_speed        '16 November 2003
  6238. '
  6239. '08 November 2004 open access append then immediately close the file. here. results.txt open for output
  6240. 'as well make a change to the heading above re the results.txt file logging info.
  6241. '    frmproj2.Caption = " TheFile=" + TheFile '08 November 2004 testing Just need "xxx." put in front here.
  6242. '    it sort of hangs if the logging is on and i am using it as input. this just makes sure. i did it first time
  6243.    If UCase(Left(Cmd(72), 11)) = "RESULTS.TXT" And UCase(Trim(TheFile)) <> "RESULTS.TXT" Then                   '08 November 2004
  6244. '    frmproj2.Caption = " ooo1=" + ooo '08 November 2004 testing Just need "xxx." put in front here.
  6245.       ResultFile = FreeFile        '08 November 2004
  6246.       Open "RESULTS.TXT" For Append Access Write As #ResultFile   '08 November 2004 do this if RESULTS.TXT IN Cmd(72)
  6247.        Print #ResultFile, LTrim(ccc)      '08 November 2004   this is the PHOTO stuff
  6248.        Print #ResultFile, Line_Search        '08 November 2004 this is the xxx. stuff
  6249.        Close ResultFile                            '08 November 2004
  6250. 'then do a print / write then a close on that file
  6251.    End If                                                      '08 November 2004
  6252. '11 March 2007    If line_start_point <> 0 Then temp_double = line_start_point        '19 July 2003 Ver=1.07T
  6253.    If line_start_point <> 10 Then temp_double = line_start_point        '19 July 2003 Ver=1.07T
  6254. '19 July 2003    If Left(UCase(Cmd(59)), 4) <> "WAIT" Or thumb_nail = "YES" Then
  6255. '18 August 2003    If thumb_nail = "YES" Or line_delay_sec > 0 Then
  6256.    If thumb_nail = "YES" Or InStr(aaa, "THUMB==") <> 0 Or line_delay_sec > 0 Then
  6257. '    If thumb_nail = "YES" Then
  6258. '        i = mciSendString("close video1", 0&, 0, 0)         '14 july 2003 moved from a few lines below
  6259.      If temp_double > 1 Then
  6260.  '12 december 2004 test only           frmproj2.Caption = " Video to Start at " + CStr(temp_double) + " delay=" + CStr(line_delay_sec) '12 December 2004 testing
  6261. 'testing to see what happens on the DVD with no read maybe a wait will fix it.????
  6262. '12 December 2004        i = mciSendString("play video1 from " + CStr(temp_double), 0&, 0, 0)  'this is where the display happens
  6263.        If Left(Cmd(75), 9) = "VIDEOSTOP" Then      '12 December 2004
  6264.            i = mciSendString("play video1 from " + CStr(temp_double), 0&, 0, 0) 'this is where the display happens
  6265.            Else
  6266.             i = mciSendString("play video1 from " + CStr(temp_double) + " wait", 0&, 0, 0) 'this is where the display happens
  6267.        End If                                      '12 December 2004
  6268.      Else
  6269.         i = mciSendString("play video1", 0&, 0, 0)   'this is where the display happens
  6270.      End If
  6271. '        xtemp = InputBox(" 24 March 2004 nowait test", "testing Prompt   " + CStr(line_start_point) + " " + CStr(delay_sec) + " " + CStr(line_delay_sec), , xx1 - offset1, yy1 - offset2) '14 july 2003 test
  6272.      
  6273.         GoSub line_30000                    'do a delay test
  6274.    Else
  6275. '        xtemp = InputBox(" nowait test", "testing Prompt   ", , xx1 - offset1, yy1 - offset2)  '14 july 2003 test
  6276. '18 March 2004 need to trap any errors on the start of videos here
  6277. ' i = mciSendString("close all wait", 0&, 0, 0)      '17 March 2004 make sure nothing is there..
  6278. ' i = mciSendString(todo$, 0&, 0, 0)
  6279.    On Error GoTo trap2         '18 March 2004
  6280.    DoEvents                    '18 March 2004
  6281.      If temp_double > 1 Then
  6282. '16 March 2004        i = mciSendString("play video1 from " + CStr(temp_double) + " wait", 0&, 0, 0) 'this is where the display happens (noWAIT)
  6283. '16 March 2004 This is where the video plays displays shows etc
  6284.    i = mciSendString("play video1 from " + CStr(temp_double), 0&, 0, 0)  'this is where the display happens (noWAIT)
  6285. '    i = mciSendString("play video1 from " + CStr(temp_double) + " wait", 0&, 0, 0) 'this is where the display happens (noWAIT)
  6286.       End If               '18 March 2004
  6287. '14 March 2004 I think the wait change above was a major factor in getting the video playback not to bomb out
  6288. '14 March 2004        i = mciSendString("play video1 from " + CStr(temp_double), 0&, 0, 0)  '08 March 2004
  6289. '18 March 2004      Else
  6290. '09 september 2003 windows 2000 service pack 1 / windows xp has problems here
  6291. '        xtemp = InputBox(" test 6bb", "testing Prompt   ", , xx1 - offset1, yy1 - offset2)  '09 september 2003 test
  6292.  
  6293. '***the following logic never seems to get executed the start is always 10 or greater
  6294.     If temp_double <= 1 Then
  6295. '        i = mciSendString("play video1 wait", 0&, 0, 0) 'this is where the display happens (noWAIT)
  6296.        i = mciSendString("play video1", 0&, 0, 0) 'this is where the display happens (noWAIT)
  6297. '        xtemp = InputBox(" test 6bbb", "testing Prompt   ", , xx1 - offset1, yy1 - offset2)  '09 september 2003 test
  6298.      End If
  6299.     GoTo past_trap2             '17 March 2004
  6300. trap2:                          '17 March 2004
  6301.    Resume past_trap2
  6302.         xtemp = InputBox("trap2 error", CStr(video_length), , xx1 - offset1, yy1 - offset2)  '17 March 2004
  6303.            new_delay_sec = 5.5
  6304.             GoSub line_30300        '18 March 2004
  6305. past_trap2:     '18 March 2004
  6306.    DoEvents                    '18 March 2004
  6307.    On Error GoTo Errors_31000  '18 March 2004
  6308.    DoEvents                    '18 March 2004
  6309. '18 March 2004
  6310.      
  6311.     End If                  '14 July 2003
  6312.    play_speed = save_play_speed        '16 November 2003 14 January 2004 moved down to here
  6313. '24 September 2003
  6314. '    GoSub line_30000        '24 September 2003 test this
  6315.    '24 September 2003 freeze
  6316.    
  6317.     '26 February 2004 for the freeze of a video do not use the line_30000 routine???
  6318.    '   because we are doing stops and starts that surely won"t work
  6319.    
  6320.         i = mciSendString("pause video1", 0&, 0, 0)  '14 March 2004
  6321.        DoEvents                                        '14 March 2004
  6322.    If Line_freeze_sec <> 0 Then
  6323.         new_delay_sec = Line_freeze_sec
  6324.     'need a mcisendstring that will do a stop eg below
  6325.        DoEvents        '05 March 2004
  6326. '29 February 2004
  6327. '17 March 2004 activate the lines below re the position
  6328. '19 March 2004 get the position anyway
  6329. '20 March 2004
  6330.    If slomo = False Then                          '20 March 2004
  6331. '20 March 2004        If Len(Trim(tempdata)) < 1 Then
  6332.            i = mciSendString("status video1 position", vs, 255, 0) '29 February 2004
  6333.            temp3 = InStr(vs, Chr$(0)) '19 March 2004
  6334.            temp11 = Val(Left(vs, temp3 - 1)) '19 March 2004
  6335.            tempdata = CStr(temp11)     '19 March 2004
  6336.    End If      '19 March 2004
  6337.        DoEvents            '09 March 2004
  6338. '14 March 2004        i = mciSendString("stop video1", 0&, 0, 0)  '09 March 2004
  6339. '        i = mciSendString("pause video1", 0&, 0, 0)  '05 March 2004
  6340.        DoEvents        '06 March 2004
  6341.        If Len(tempdata) < 1 Then
  6342.             frmproj2.Caption = LCase(temptemp) + "(Video length=" + CStr(video_length) + ")" '29 Fe
  6343.            Else
  6344.             frmproj2.Caption = LCase(temptemp) + "(Freeze at " + tempdata + " of " + CStr(video_length) + ")" '29 February 2004
  6345.        End If              '17 March 2004
  6346.            tempdata = ""   '18 March 2004
  6347. '17 March 2004            frmproj2.Caption = LCase(temptemp) + "(Freeze)" '15 March 2004
  6348. '26 February 2004        GoSub line_30000            '24 September 2003
  6349.        GoSub line_30300            '26 February
  6350.        DoEvents            '09 March 2004
  6351. 'dougdoughere maybe comment out below
  6352. '11 March 2004        i = mciSendString("resume video1", 0&, 0, 0)  '09 March 2004
  6353.        DoEvents            '09 March 2004
  6354.        GoTo line_17053         '01 October 2003
  6355.    End If             '24 September 2003
  6356. '01 October 2003
  6357.    If freeze_sec <> 0 Then
  6358.         new_delay_sec = freeze_sec
  6359.     'need a mcisendstring that will do a stop eg below
  6360.        DoEvents            '09 March 2004
  6361. '15 March 2004 somehow by removing the position call below seems to eliminate a major crash
  6362. '17 March 2004  activate the position stuff below
  6363. '17 March 2004 temp            i = mciSendString("status video1 position", vs, 255, 0) '29 February 2004
  6364. '17 March 2004 temp            tempdata = CStr(Val(vs))     '26 February 2004
  6365. '20 March 2004
  6366.    If slomo = False Then                          '20 March 2004
  6367. '20 March 2004        If Len(Trim(tempdata)) < 1 Then
  6368.            i = mciSendString("status video1 position", vs, 255, 0) '29 February 2004
  6369.            temp3 = InStr(vs, Chr$(0)) '19 March 2004
  6370.            temp11 = Val(Left(vs, temp3 - 1)) '19 March 2004
  6371.            tempdata = CStr(temp11)     '19 March 2004
  6372.    End If      '19 March 2004
  6373.        DoEvents        '06 March 2004
  6374. '14 March 2004        i = mciSendString("stop video1", 0&, 0, 0)  '09 March 2004
  6375. '        i = mciSendString("pause video1", 0&, 0, 0)  '05 March 2004
  6376.        If tempdata = "" Then
  6377.             frmproj2.Caption = LCase(temptemp) + "(Video length=" + CStr(video_length) + ")" '29 Fe
  6378.            Else
  6379.             frmproj2.Caption = LCase(temptemp) + "(Freeze at " + tempdata + " of " + CStr(video_length) + ")" '29 February 2004
  6380.        End If              '17 March 2004
  6381. '            frmproj2.Caption = LCase(temptemp) + "(Freeze)" '15 March 2004
  6382. '26 February 2004        GoSub line_30000            '24 September 2003
  6383.        GoSub line_30300            '26 February
  6384. '        xtemp = InputBox(" test freeze=  " + Format(Line_freeze_sec, "###0.000"), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6385.        DoEvents            '09 March 2004
  6386. '        GoTo line_17053         '01 October 2003
  6387. 'dougdoughere       maybe comment out below
  6388. '11 March 2004        i = mciSendString("resume video1", 0&, 0, 0)  '09 March 2004
  6389.        DoEvents            '09 March 2004
  6390.    End If             '01 October 2003
  6391.  
  6392. line_17053:             '01 October 2003
  6393.        i = mciSendString("stop all", 0&, 0, 0)  '14 March 2004
  6394.        DoEvents                                        '14 March 2004
  6395.  
  6396. '01 March 2004 check status here before continuing...
  6397. '            i = mciSendString("status video1 position", vs, 255, 0) '01 March 2004
  6398. '            i = mciSendString("status video1 length", mssg, 255, 0) '01 March 2004
  6399. '06 March 2004 check out the ready status here first..
  6400.            DoEvents        '06 March 2004
  6401.            i = mciSendString("status video1 ready", temps, 12, 0) '06 March 2004
  6402.            DoEvents        '06 March 2004
  6403.            i = mciSendString("status video1 mode", mssg, 255, 0) '01 March 2004
  6404.            DoEvents        '06 March 2004
  6405.            frmproj2.Caption = "hey 2 " + Left(temps, 4) + " " + Left(mssg, 5) '09 March 2004
  6406.            DoEvents        '06 March 2004
  6407. '              End If
  6408. 'dougheredoughere
  6409.        If Left(UCase(mssg), 7) = "STOPPED" Then
  6410.             DoEvents                                    '05 March 2004
  6411.            frmproj2.Caption = "hey 2a " + Left(temps, 4) + " " + Left(mssg, 5) '09 March 2004
  6412.            DoEvents        '06 March 2004
  6413.            GoTo line_17054                     '11 March 2004
  6414.       End If              '05 March 2004
  6415.        
  6416.         If Left(UCase(mssg), 7) = "PLAYING" Then
  6417.             DoEvents                                    '05 March 2004
  6418. 'dougheredoughere
  6419. '11 March 2003            i = mciSendString("pause video1", 0&, 0, 0) '05 March 2004
  6420. '            i = mciSendString("stop video1", 0&, 0, 0) '09 March 2004
  6421.            DoEvents                                    '05 March 2004
  6422. '            i = mciSendString("close video1", 0&, 0, 0)         '14 july 2003 moved from a few lines below
  6423.            DoEvents                            '11 March 2004
  6424.            frmproj2.Caption = "hey 3 " + Left(temps, 4) + " " + Left(mssg, 5) '11 March 2004
  6425.            DoEvents                            '11 March 2004
  6426.            GoTo line_17054                     '11 March 2004
  6427.        End If              '02 March 2004 added the if statement around the mcisendstring above
  6428.        
  6429.         If Left(UCase(mssg), 6) = "PAUSED" Then
  6430. '            i = mciSendString("close video1", 0&, 0, 0)         '06 March 2004
  6431.            frmproj2.Caption = "hey 4 " + Left(temps, 4) + " " + Left(mssg, 5) '11 March 2004
  6432.            DoEvents                            '11 March 2004
  6433.            GoTo line_17054                     '11 March 2004
  6434.        End If              '06 March 2004
  6435.        
  6436.             frmproj2.Caption = "hey 5 " + Left(mssg, 5) + " " + Left(temps, 5) '11 March 2004
  6437.            GoTo line_17054a    '11 March 2004
  6438. line_17054:                 '11 March 2004
  6439.            frmproj2.Caption = "hey 6 " + Left(mssg, 5) + " " + Left(temps, 5) '11 March 2004
  6440. line_17054a:                '11 March 2004
  6441. 'dougdoughere uncomment out below
  6442. '            i = mciSendString("close video1", 0&, 0, 0)         '09 March 2004
  6443.            i = mciSendString("close video1", 0&, 0, 0)         '05 April 2004
  6444. '16 March 2004            i = mciSendString("close all wait", 0&, 0, 0)         '14 March 2004
  6445.        On Error GoTo close_error
  6446. next_close_error:            '16 March 2004
  6447.            DoEvents
  6448. '            new_delay_sec = 0.1     '18 March 2004
  6449. '            GoSub line_30300        '18 March 2004 maybe the delay will fix the problem
  6450.            'do a pause here         18 March 2004
  6451. '04 April 2004            i = mciSendString("close all", 0&, 0, 0)         '14 March 2004
  6452.            frmproj2.Caption = "hey 6a " + Left(mssg, 5) + " " + Left(temps, 5) '11 March 2004
  6453. '            new_delay_sec = 0.1     '18 March 2004
  6454. '            GoSub line_30300        '18 March 2004 maybe the delay will fix the problem
  6455.            'do a pause here         18 March 2004
  6456.            DoEvents                '11 March 2004
  6457.        On Error GoTo Errors_31000        '16 March 2004
  6458. '           Set colReminderPages = Nothing  'release memory?? 16 March 2004
  6459.        GoTo past_close_error           '16 March 2004
  6460. close_error:                            '16 March 2004
  6461. '        On Error GoTo Errors_31000      '16 March 2004
  6462. '        i = mciSendString("status video1 mode", mssg, 255, 0) '16 March 2004
  6463.        Resume close_error_1       '16 March 2004   clear the error raised by the close
  6464. close_error_1:
  6465.         DoEvents                    '16 March 2004
  6466.            new_delay_sec = 5.5
  6467.             GoSub line_30300        '16 March 2004 maybe the delay will fix the problem
  6468.        frmproj2.Caption = LCase(temptemp) + Left(mssg, 4) + " (Close Error)" + CStr(line_start_point + (line_delay_sec * 1000)) + " > " + CStr(vs) '26 February 2004
  6469.            new_delay_sec = 5.5
  6470.             GoSub line_30300        '16 March 2004 maybe the delay will fix the problem
  6471.            'do a pause here
  6472.            GoTo next_close_error           '16 March 2004
  6473. past_close_error:
  6474. '            new_delay_sec = 0.1     '16 March 2004 it may still be over-running here and maybe not
  6475. '                                    '16 March 2004 may want to test without some time.
  6476. '            GoSub line_30300        '16 March 2004 maybe the delay will fix the problem
  6477.            DoEvents        '11 March 2004
  6478.            frmproj2.Caption = "hey 7 " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '11 March 2004
  6479. '            old_line = temptemp + ""        '31 March 2004
  6480.            On Error GoTo Errors_31000      '18 March 2004 just to make sure it is set back...
  6481. '           xtemp = InputBox(" 05 March 2004 test  ", "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6482. '14 july 2003 i = mciSendString("close video1", 0&, 0, 0)
  6483.    If elapse_yn = "YES" Then
  6484.         elapse_end = Timer            '13 July 2003
  6485.        xtemp = InputBox(" elapse=  " + Format(elapse_end - elapse_start, "###0.000"), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6486.  
  6487.     End If                            '13 July 2003
  6488.    slomo = False                       '08 January 2004
  6489.  End If
  6490.     GoTo Line_17055
  6491. End If                      '11 May 2003 ver=1.05
  6492.        
  6493. '   **** this is a very long if statement ****
  6494.        'end of if statement "If mpg_file = "YES" Then"
  6495.        
  6496. '10 June 2003            wav file display here ver=1.07
  6497. If wav_file = "YES" Then
  6498.     motion_yn = "YES"
  6499.     If videoyn = "SHOWVIDEO" Then
  6500. Last$ = frmproj2.hWnd & " Style " & &H40000000
  6501. ' ToDo$ = "open e:\cottonwood\101-0186_mvi.avi Type avivideo Alias video1 parent " & Last$
  6502. todo$ = "open " + Pict_file + " Type waveaudio Alias video1 parent " & Last$
  6503.  i = mciSendString(todo$, 0&, 0, 0)
  6504.  i = mciSendString("put video1 window at -1 -1 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6505.  i = mciSendString("play video1 wait", 0&, 0, 0)
  6506.  i = mciSendString("close video1", 0&, 0, 0)
  6507.     End If
  6508.     GoTo Line_17055
  6509. End If                      '10 June 2003 ver=1.05
  6510.    
  6511. '10 June 2003            midi file display here ver=1.07
  6512. If mid_file = "YES" Then
  6513.     motion_yn = "YES"
  6514.     If videoyn = "SHOWVIDEO" Then
  6515. Last$ = frmproj2.hWnd & " Style " & &H40000000
  6516. ' ToDo$ = "open e:\cottonwood\101-0186_mvi.avi Type avivideo Alias video1 parent " & Last$
  6517. todo$ = "open " + Pict_file + " Type sequencer Alias video1 parent " & Last$
  6518.  i = mciSendString(todo$, 0&, 0, 0)
  6519.  i = mciSendString("put video1 window at -1 -1 " + Cmd(51) + " " + Cmd(52), 0&, 0, 0)
  6520.  i = mciSendString("play video1 wait", 0&, 0, 0)
  6521.  i = mciSendString("close video1", 0&, 0, 0)
  6522.     End If
  6523.     GoTo Line_17055
  6524. End If                      '10 June 2003 ver=1.05
  6525.    
  6526.      
  6527.      
  6528. '    If Cmd(56) = "PHOTO_DETAIL" Then        '22 March 2003 ver=1.02
  6529. '        Cls
  6530. '    End If                                  '22 March 2003 ver=1.02 just clear screen
  6531.    
  6532. '03 August 2003
  6533. '        tt1 = InputBox("doug testing " + aaa, , , 4400, 4500) 'TESTING ONLY 03 August 2003
  6534.    line_fit = ""                '03 August 2003
  6535.    If InStr(1, UCase(aaa), "FIT==") <> 0 Then
  6536.             line_fit = "FIT"
  6537.     End If                  '03 August 2003
  6538.    
  6539.     If InStr(1, UCase(aaa), "REG==") <> 0 Then
  6540.             line_fit = "REG"
  6541.     End If                  '03 August 2003
  6542.    
  6543. '03 August 2003    If img_ctrl = "YES" Then
  6544. '        Set Image1.Picture = LoadPicture(Pict_file) 'Stretch Mode
  6545. '    Else
  6546. '        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  6547. '    End If              'february 21 2001
  6548. '        xtemp = InputBox(" testing doug#77  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6549.  
  6550.     If (img_ctrl = "YES" Or line_fit = "FIT") And line_fit <> "REG" Then
  6551. '===========================================================
  6552.    '28 November 2004 this trap fixed the problem with the bad .gif files
  6553.    '   but it does not trap the problem associated with the "malletc031.jpg" file that I was having.
  6554.    '   the sequence would not go to the text display when I was using the control== sequence somehow I will keep the file for later
  6555.        On Error GoTo first_problem  '28 November 2004
  6556.            DoEvents                    'march 18 2001
  6557.        Set Image1.Picture = LoadPicture(Pict_file) 'Stretch Mode
  6558.            On Error GoTo Errors_31000      '28 November 2004
  6559.            GoTo frst_17055
  6560. first_problem:       '28 November 2004
  6561.            frmproj2.Caption = "bad file= " + Pict_file '28 November 2004
  6562. '        xtemp = InputBox("file display problem=" + CStr(Err.Number) + " " + Err.Description, , , xx1 - offset1, yy1 - offset2) 'march 18 2001
  6563.        On Error GoTo Errors_31000    '28 November 2004
  6564.        Resume input_1000      '28 November 2004
  6565. frst_17055:                      '28 November 2004
  6566. '===========================================================
  6567. '28 November 2004 original was here        Set Image1.Picture = LoadPicture(Pict_file) 'Stretch Mode
  6568.        line_fit = "FIT"                '08 August 2003
  6569. '        xtemp = InputBox(" testing doug#6  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6570.    End If              'february 21 2001
  6571.  
  6572.     If (img_ctrl <> "YES" And line_fit <> "FIT") Or line_fit = "REG" Then
  6573. '    If img_ctrl <> "YES" And line_fit <> "FIT" Then
  6574. '    save_line = "17055xxy"            '28 November 2004 testing for bug
  6575. '===========================================================
  6576.        On Error GoTo display_problem  '28 November 2004
  6577.            DoEvents                    'march 18 2001
  6578.        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  6579.            On Error GoTo Errors_31000      '28 November 2004
  6580.            GoTo bef_17055
  6581. display_problem:       '28 November 2004
  6582.            frmproj2.Caption = "bad file= " + Pict_file '28 November 2004
  6583. '        xtemp = InputBox("file display problem=" + CStr(Err.Number) + " " + Err.Description, , , xx1 - offset1, yy1 - offset2) 'march 18 2001
  6584.        On Error GoTo Errors_31000    '28 November 2004
  6585.        Resume input_1000      '28 November 2004
  6586. bef_17055:                      '28 November 2004
  6587. '===========================================================
  6588. 'original was here 28 November 2004        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  6589. '        xtemp = InputBox(" testing doug#7  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6590.    End If              'february 21 2001
  6591.  
  6592. Line_17055:                 '01 february 2003
  6593. '            frmproj2.Caption = "hey 7a " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6594.  
  6595. '20 march 2003 ver=1.02 testing of call to last_lines_15000
  6596. '
  6597.    
  6598. '   See the Logic for post photo text ie day and time at line_2130
  6599. '        xtemp = InputBox(" 08 August 2003 test  " + sscreen_saver + " " + Left(Cmd(56), 12), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6600.  
  6601. '18 November 2004    If UCase(Left(Cmd(56), 12)) = "PHOTO_DETAIL" Then       '22 March 2003 ver=1.02
  6602.    If detailyn = "PHOTO_DETAIL" Then       '18 November 2004
  6603. '21 March 2004        If sscreen_saver = "Y" Then GoSub line_30000    'do a extra pause again on "weekday dd Month" display
  6604.  
  6605.             new_delay_sec = Val(Cmd(27))    '03 September 2004
  6606.        If sscreen_saver = "Y" And motion_yn <> "YES" Then GoSub line_30300    '21 March 2004 do not do a pause if video
  6607. '03 September 2004        If sscreen_saver = "Y" And mpg_file <> "YES" Then GoSub line_30300    '21 March 2004 do not do a pause if video
  6608. '03 September 2004        If sscreen_saver = "Y" And mpg_file <> "YES" Then GoSub line_30000    '21 March 2004 do not do a pause if video
  6609.        If line_fit = "FIT" Then            '08 August 2003 testing only
  6610.            Set Image1.Picture = LoadPicture() '08 August 2003 testing only
  6611.            Set Picture = LoadPicture(Pict_file)        'Normal Mode 08 august 2003
  6612.        End If                              '08 August 2003 testing only
  6613.        
  6614.         If stretch_image = "YES" Then
  6615.             line_fit = "FIT"
  6616.         Else
  6617.             line_fit = "REG"
  6618.         End If              '08 august 2003
  6619.  
  6620. '        GoSub line_30000        'pause for the wait time before text display....
  6621.                            'will want to make this optional... or cut the time in half??
  6622.  
  6623.     '   maybe resetting the stuff below will allow for hi-liting in the displayed characters
  6624.    '   Not needed the values in SSS1 etc were fine?
  6625. '        SSS1 = SAVE_KEEPS1
  6626. '        SSS2 = SAVE_KEEPS2
  6627. '        SSS3 = SAVE_KEEPS3
  6628. '        SSS4 = SAVE_KEEPS4
  6629. '        SSS5 = SAVE_KEEPS5
  6630. '        SSS6 = SAVE_KEEPS6
  6631.    
  6632. '        SSS1 = KEEPS1
  6633. '        SSS2 = KEEPS2
  6634. '        SSS3 = KEEPS3
  6635. '        SSS4 = KEEPS4
  6636. '        SSS5 = KEEPS5
  6637. '        SSS6 = KEEPS6
  6638.    
  6639. '            tt1 = InputBox("testing SSS1...=" + SSS1 + SSS2 + SSS3 + SSS4 + SSS5 + SSS6, , , 4400, 4500) 'TESTING ONLY
  6640.    lll = old_line          'use this one in stead non capitalized ???
  6641. '31 March 2004    ooo = lll               '*** make this optional later *** and probably remove "photo " now
  6642.    
  6643.      '31 March 2004
  6644.                'only problem so far is that lll is all uppercase (create and use old_line) instead
  6645. '31 March 2004 ooo should be the original data.
  6646.    array_pos = 0       '31 March 2004 this one caused a bit of grief
  6647.    ooo = lll   '31 March 2004
  6648.    aaa = UCase(ooo) + "" 'seems aaa needs to have info for prints
  6649.    
  6650. '31 March 2004 if a double quote " found and an end quote with it use just that for display
  6651.    
  6652.     II = InStr(1, ooo, Chr$(34))   '31 March 2004 check for info contained in quotes
  6653.    If II <> 0 Then
  6654.         tt = InStr(II + 1, ooo, Chr$(34))
  6655.         If tt <> 0 Then
  6656.             ooo = Mid(ooo, II + 1, tt - II - 1)
  6657.             GoTo line_17070
  6658.         End If
  6659.     End If
  6660. '31 March 2004 above logic added
  6661.    
  6662.    
  6663.    
  6664.     II = InStr(1, UCase(ooo), "PHOTO ")
  6665.     If II <> 0 Then
  6666.         ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - (II + 6 - 1)) 'strip off "photo "
  6667.    End If
  6668. '29 March 2004
  6669.    II = InStr(1, UCase(ooo), "START==")
  6670.     If II <> 0 Then
  6671.         tt = InStr(II + 7, ooo, " ")
  6672.         If tt <> 0 Then
  6673.             ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - tt)
  6674.         End If
  6675.     End If      '29 March 2004
  6676.    
  6677. '29 March 2004
  6678.    II = InStr(1, UCase(ooo), "SPEED=")
  6679.     If II <> 0 Then
  6680.         tt = InStr(II + 6, ooo, " ")
  6681.         If tt <> 0 Then
  6682.             ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - tt)
  6683.         End If
  6684.     End If      '29 March 2004
  6685.    
  6686. '29 March 2004
  6687.    II = InStr(1, UCase(ooo), "WAIT=")
  6688.     If II <> 0 Then
  6689.         tt = InStr(II + 5, ooo, " ")
  6690.         If tt <> 0 Then
  6691.             ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - tt)
  6692.         End If
  6693.     End If      '29 March 2004
  6694.    
  6695. '29 March 2004
  6696.    II = InStr(1, UCase(ooo), "FREEZE=")
  6697.     If II <> 0 Then
  6698.         tt = InStr(II + 7, ooo, " ")
  6699.         If tt <> 0 Then
  6700.             ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - tt)
  6701.         End If
  6702.     End If      '29 March 2004
  6703.    
  6704. '29 March 2004
  6705.    II = InStr(1, UCase(ooo), "LENGTH=")
  6706.     If II <> 0 Then
  6707.         tt = InStr(II + 7, ooo, " ")
  6708.         If tt <> 0 Then
  6709.             ooo = Left(ooo, II - 1) + Right(ooo, Len(ooo) - tt)
  6710.         End If
  6711.     End If      '29 March 2004
  6712.    
  6713.    
  6714.    
  6715. line_17070:             '31 March 2004
  6716.    
  6717. '    aaa = "dummydummydummydummydummydummydummydummy"
  6718.    'over-riding the statement below makes for a better display for now...
  6719.    'should test with the following active just so it can be used ie hi-liting searched string
  6720.    'text where the other when no matches found shows whole line in one color. that is all
  6721.    'it works fine now the logic at has been deactivated.... at line_12600 "screen_saver = "N""
  6722.    'maybe works better than fine.....
  6723.    aaa = UCase(ooo) '+ "============================================"          'last change here 26 March 2003 10:00 am
  6724.  
  6725. '    ooo = ccc + ""          'to display full line *** make this optional later ***
  6726.    Font.Size = 48
  6727.     Font.Bold = True
  6728. '            frmproj2.Caption = "hey 7b " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6729.  
  6730. '    Font.Italic = True 'jff just for fun
  6731. '    SetFocus
  6732. '    Set Picture = LoadPicture("c:\search\Sparrow.jpg")
  6733.    Cls                 'just to clear anything
  6734. '    Def_Fore = 14       'make the text yellow
  6735. '    Def_Fore = 10       'make the text lime green instead of yellow???
  6736. '20 May 2003 (use what is in control file)    Def_Fore = 13       'make the text light purple pink???
  6737.  
  6738. '    Def_Fore = 7        'try grey
  6739.    ForeColor = QBColor(Def_Fore)
  6740.     Context_lines = 7   '28 March 2003 change from 7 to 8
  6741.    line_len = 30       'have it wrap after 20 characters
  6742.    'a lot of messing around just to set above to 60 for now on display
  6743.    
  6744. '30 March 2004    Clear_Context_lines = Context_lines
  6745. '30 March 2004    Context_cnt = Context_lines 'need a dummy context fields set up here
  6746. '30 March 2004    For II = 1 To Context_cnt
  6747. '30 March 2004    For II = 1 To 40        '30 March 2004
  6748. '30 March 2004        Context_text(II) = Space(20)
  6749. '30 March 2004    Next II
  6750.    
  6751.     '     endstuff testing
  6752.    '        endstuff = "NO"     '27 March 2003 test getting it all out with this...
  6753.            
  6754. '            tt1 = InputBox("testing array_ooo(array_prt)=" + endstuff + CStr(array_pos) + CStr(array_prt) + array_ooo(array_prt), , , 4400, 4500) 'TESTING ONLY
  6755.  
  6756. '        If array_pos <> 0 And array_prt > 0 Then
  6757. '            tt1 = InputBox("testing array_ooo(array_prt)=" + endstuff + CStr(array_pos) + CStr(array_prt) + array_ooo(array_prt), , , 4400, 4500) 'TESTING ONLY
  6758. '        End If
  6759.  
  6760. '            tt1 = InputBox("testing ooo=" + endstuff + CStr(array_pos) + CStr(array_prt) + ooo, , , 4400, 4500) 'TESTING ONLY
  6761. '            tt1 = InputBox("testing endstuff data_ooo=" + endstuff + data_ooo, , , 4400, 4500) 'TESTING ONLY
  6762. '            tt1 = InputBox("testing SSS1=" + SSS1 + SSS2 + SSS3 + SSS4, , , 4400, 4500) 'TESTING ONLY
  6763. '            tt1 = InputBox("testing keeps1=" + KEEPS1 + KEEPS2 + KEEPS3 + KEEPS4, , , 4400, 4500) 'TESTING ONLY
  6764. 'the following lines of info should print right on top of the photo but
  6765. 'somehow it is not. see the smg emulation where a bmp file is displayed as a pict
  6766. 'then the text is written and re-written over that image??? langaliers where are you
  6767. '*** note seems that the text can only be displayed if "normal" mode ie see normal above
  6768. '    the "Set Image1.Picture = LoadPicture(Pict_file) from above won't do it... ie image control..
  6769.  
  6770. 'was code here related to 1.02b but was moved
  6771. '29 March 2003 test change for ver=1.04 below
  6772.    '03 August 2003
  6773. '03 August 2003    If img_ctrl = "YES" And motion_yn <> "YES" Then
  6774. '    If (img_ctrl = "YES" Or line_fit = "FIT") And motion_yn <> "YES" Then
  6775. '    If img_ctrl = "YES" And motion_yn <> "YES" And line_fit <> "REG" Then
  6776. '03 August 2003    If img_ctrl = "YES" And motion_yn <> "YES" And line_fit <> "FIT" Then
  6777. '03 August 2003 test 1    If img_ctrl <> "xxxx" And motion_yn <> "YES" Then          '03 August 2003 just try and override
  6778.    If img_ctrl = "xxxx" And motion_yn <> "YES" Then          '03 August 2003 just try and override
  6779. '        xtemp = InputBox(" testing doug#8-  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6780.        Set Image1.Picture = LoadPicture() 'Stretch Mode clear away here
  6781.        Set Picture = LoadPicture(Pict_file)        'Normal Mode
  6782. 'dougheredoughere
  6783. '03 August 2003 remove this stay with above        Set Picture = LoadPicture()        'Normal Mode lp#6
  6784. '        xtemp = InputBox(" testing doug#8  " + aaa + "*line_fit=" + line_fit + "*img_ctrl=" + img_ctrl, "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  6785.    End If              'february 21 2001
  6786. '03 August 2003 test 1
  6787.    If img_ctrl = "YES" And motion_yn <> "YES" And line_fit = "REG" Then
  6788.         Set Picture = LoadPicture(Pict_file)
  6789.     End If          '03 August 2003 test 1
  6790.    
  6791.     If img_ctrl <> "YES" And line_fit = "FIT" Then
  6792.         Set Image1.Picture = LoadPicture() 'Stretch Mode clear away here
  6793.    End If          '03 August 2003 test 1
  6794.    
  6795. '        Set Image1.Picture = LoadPicture() '08 August 2003 testing
  6796. '30 March 2004    GoSub Last_lines_15000
  6797.    Cls                 '30 March 2004
  6798.    Print               '30 March 2004
  6799.    Print               '30 March 2004
  6800.    Print               '30 March 2004
  6801.    Print               '30 March 2004
  6802.    Print               '30 March 2004
  6803.    Print       '30 March 2004
  6804.    Print       '30 March 2004
  6805. '            tt1 = InputBox("30 March 2004 " + CStr(Context_lines), , , 4400, 4500) 'TESTING ONLY
  6806.    GoSub sub_12000     'do the bolding and high-liting hi-liting here
  6807. '            tt1 = InputBox("31 March 2004 " + Left(ooo, 20), , , 4400, 4500) 'TESTING ONLY
  6808.    Font.Size = Val(Cmd(2))     'reset it back from 48 above
  6809. '13 April 2004    new_delay_sec = Val(Cmd(27))  '30 March 2004
  6810.    new_delay_sec = Val(Cmd(60))  '13 April 2004
  6811. '30 March 2004    If mpg_file = "YES" Then GoSub line_30300    '30 March 2004
  6812.    GoSub line_30300    '30 March 2004
  6813.    
  6814.     End If      'end of PHOTO_DETAIL check pretty well ver=1.02 to here
  6815. '            frmproj2.Caption = "hey 7c " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6816.    
  6817.  
  6818. '    Print "what the hey"        '21 march 2003
  6819. '            tt1 = InputBox("testing b=" + endstuff + "=" + vvv + " tot_print=" + CStr(tot_print), , , 4400, 4500) 'TESTING ONLY
  6820. '            tt1 = InputBox("testing b=" + CStr(Clear_Context_lines) + "=", , , 4400, 4500) 'TESTING ONLY
  6821. '20 march 2003 ver=1.02 ^
  6822.        
  6823.         last_pict = Pict_file   '28 february 2003
  6824.        
  6825.         dsp_cnt = dsp_cnt + 1           'may 12 2001
  6826.        previous_count = previous_count + 1   'october 9 2000
  6827.        If previous_count > 100 Then
  6828.             previous_count = 1
  6829.         End If
  6830. '        previous_picture(previous_count) = 0
  6831.        previous_picture(previous_count) = zzz_cnt
  6832.               'save line number of previous picture display
  6833. '        Print "b previous_picture(previous_count)zzz_cnt,previous_count"; previous_picture(previous_count); "="; zzz_cnt, previous_count
  6834. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  6835. '
  6836. '        MyAppID = Shell(Cmd(8), 3)
  6837. '        AppActivate MyAppID
  6838. 'here try and do a pause or wait as follows
  6839. '           For temp1 = 1 To 100000000
  6840. '           DoEvents
  6841. '           Next temp1
  6842. '           SendKeys "^o", True
  6843. '           SendKeys Pict_file, True
  6844. '           SendKeys "~", True    'FORCE AN "ENTER"
  6845.    End If
  6846.     'endiffy 17050
  6847. '            frmproj2.Caption = "hey 7d " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6848.    
  6849.     save_line = "17056"
  6850.       If InStr(UCase(Cmd(8)), "EXPLORER") <> 0 And Test1_str = "P2" Then
  6851.          MyAppID = Shell(Cmd(8) + " / select, " + Pict_file, 3)
  6852.          SendKeys "^o", True
  6853.       End If
  6854.     save_line = "17057"
  6855.        If InStr(UCase(Cmd(8)), "EXPLORER") <> 0 And Test1_str = "P3" Then
  6856.  
  6857.  '          MyAppID = Shell(Cmd(8) + " / select, " + Pict_file, 3)
  6858.  '      Print "Cmd(8)"; Cmd(8); " Pict_file="; Pict_file
  6859.   '     tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  6860.          
  6861.            MyAppID = Shell("command.com /c " + Cmd(8) + " / select, " + Pict_file, 3)
  6862. '         AppActivate MyAppID
  6863. '           SendKeys Pict_file, True
  6864. '           SendKeys "^v", True
  6865.       End If
  6866.     save_line = "17058"
  6867.       If InStr(UCase(Cmd(8)), "EXPLORER") <> 0 And Test1_str = "P" Then
  6868.          MyAppID = Shell(Cmd(8) + " / select, " + Pict_file, 3)
  6869.          SendKeys "^o", True
  6870.       End If
  6871.         'here testing below netscape.exe
  6872. 'the P1 option should work for .bmp .jpg and .tif
  6873.    save_line = "17059"
  6874.     If InStr(UCase(Cmd(8)), "NETSCAPE") <> 0 And Test1_str = "P1" Then
  6875.  
  6876.    
  6877.         Set Picture = LoadPicture(Pict_file)
  6878.     End If
  6879.     save_line = "17059a"
  6880. '            Print "Cmd(8)="; Cmd(8); "="; Test1_str
  6881. '       tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  6882.  
  6883.       If InStr(UCase(Cmd(8)), "NETSCAPE") <> 0 And Test1_str = "P" Then
  6884.         MyAppID = Shell(Cmd(8) + " " + Pict_file, 3)
  6885.         SendKeys "^v", True
  6886.       End If
  6887. Line_17080:
  6888.  '       AppActivate MyAppID
  6889. '            frmproj2.Caption = "hey 7e " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6890.      
  6891. '   SendKeys "^F", True
  6892. '    SendKeys Pict_file, True
  6893. '   SendKeys LastFile, True
  6894. '   SendKeys "", True
  6895. 'added the Test1_str check below aug 08/00
  6896.    If InStr(UCase(Line_Search), ".BMP") <> 0 And Test1_str = "P" Then
  6897. '    If InStr(UCase(Line_Search), ".BMP") <> 0 Then
  6898.    'check the program exists before going anywhere
  6899.    save_line = "17080"
  6900.     FileFile = FreeFile
  6901.     Close FileFile
  6902.     Open Cmd(9) For Input As #FileFile
  6903.     Close FileFile
  6904. '        Print "file name="; Pict_file; "="; Test1_str
  6905. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  6906.        
  6907.         MyAppID = Shell(Cmd(9), 1)
  6908.         SendKeys "^o", True
  6909.         SendKeys Pict_file, True
  6910.         SendKeys "~", True    'FORCE AN "ENTER"
  6911.    End If
  6912.     save_line = "17059b"
  6913. '            Set Picture = LoadPicture() 'clear any picture
  6914.    If InStr(UCase(Line_Search), ".TIF") <> 0 Then
  6915.     'check the program exists before going anywhere
  6916.    save_line = "17085"
  6917.     FileFile = FreeFile
  6918.     Close FileFile
  6919.     DoEvents
  6920.     Open Cmd(16) For Input As #FileFile
  6921.     Close FileFile
  6922.  
  6923.         LastFile = Pict_file
  6924.         MyAppID = Shell(Cmd(16) + " / select, " + Pict_file, 1)
  6925.  
  6926.     SendKeys "^o", True
  6927.     SendKeys "^v", True
  6928.     End If
  6929.  
  6930.          
  6931. Line_17090:
  6932. '    TheFile = ""
  6933. '            frmproj2.Caption = "hey 7f " + Left(mssg, 5) + " " + CStr(array_pos) ' + Left(temptemp, 15) '01 September 2004
  6934. Return          'end of display_pict_17000
  6935.  
  6936. line_17200:     'February 24 2002 do the append of the file here
  6937.    
  6938.     'skip the file if the output file is the same as the one to append....
  6939.    If InStr(UCase(Test1_str), UCase(FileExt)) <> 0 Then
  6940. '        tt1 = InputBox("testing merge logic " & Test1_str, , , 4400, 4500) 'TESTING ONLY
  6941. '        If tt1 = "X" Or tt1 = "x" Then
  6942. '            GoTo End_32000
  6943. '        End If              'testing only
  6944. '            Print "doug testing "; Test1_str, FileExt
  6945.            GoTo line_17230
  6946.     End If
  6947.     f = f + 1
  6948.     Print "File merging "; Test1_str, FileExt
  6949.     DoEvents
  6950.     If f > 20 Then
  6951.         f = 1
  6952.         Cls
  6953.     End If
  6954.     save_line = "17200"
  6955.             Open Test1_str For Input As FileFile
  6956. line_17210:
  6957.             Line Input #FileFile, aaa
  6958.                 Print #ExtFile, aaa
  6959.             GoTo line_17210
  6960. line_17220:
  6961.         Print #ExtFile, Test1_str; " append end"
  6962.         Close #FileFile
  6963. line_17230:
  6964. Return              'february 24 2002
  6965.  
  6966. Do_Change_18000:
  6967.     save_line = "18000"
  6968.         'DO NOT PASS THE FIRST CHR AS A BLANK BELOW
  6969.        'THE SEARCH DOESN'T LIKE A STARTING SPACE ??
  6970.        'IN WORDPAD I WAS USING THE SEARCH AND CTRL/V
  6971.    'do not allow changes to valid e-mail files below
  6972.    If InStr(1, UCase(TheFile), "\SENT") <> 0 Then
  6973.         Print "no changes to file with \SENT*"
  6974.         GoTo line_18100
  6975.     End If
  6976.     If InStr(1, UCase(TheFile), "\INBOX") <> 0 Then
  6977.         Print "no changes to file with \INBOX*"
  6978.         GoTo line_18100
  6979.     End If
  6980.        
  6981. '    Clipboard.SetText Mid(Last_match, 2, 14)
  6982. 'disabled oct 18/2000 when going back and forth it was
  6983. 'nothing but a hassle maybe use elsewhere in another element.
  6984.    'put the last line of match in the clipboard
  6985. 'at the office nt has "service pack 3" as well use the len below
  6986. '29 September 2003 comment out the logic below
  6987. '    If Left(os_ver, 10) = "Windows 20" And Len(os_ver) > 15 Then
  6988. '      MyAppID = Shell(Cmd(44), 3)
  6989. '    Else
  6990.      MyAppID = Shell(Cmd(10), 3)
  6991. '    End If          '30 november 2002
  6992. '29 September 2003 the above commented out
  6993.  
  6994.  '       AppActivate MyAppID
  6995.    SendKeys "^o", True
  6996. '    SendKeys TheFile, True 'december 3 2000
  6997.    If InStr(1, TheFile, ":") <> 0 Then
  6998.         SendKeys TheFile, True
  6999.     Else
  7000.         SendKeys App.Path + "\" + TheFile, True 'december 3 2000
  7001.    End If
  7002.     SendKeys "~", True    'FORCE AN "ENTER"
  7003.    AppActivate MyAppID 'december 27 2000
  7004. '    SendKeys (DOWN), True 'december 27 2000
  7005. '    SendKeys (Insert), True 'december 27 2000
  7006. '    SendKeys (PGDN), True 'december 27 2000
  7007. '    SendKeys "%{TAB}", True  'december 27 2000
  7008. line_18100:
  7009.     Cls         'december 27 2000
  7010. Return
  7011. Do_Append_19000:
  7012.     save_line = "19000"
  7013.     'don't allow user to append to any e-mail file below
  7014.    If InStr(1, UCase(TheFile), "\SENT") <> 0 Then
  7015.         Print "no APPENDS to file with \SENT*"
  7016.         GoTo line_19100
  7017.     End If
  7018.     If InStr(1, UCase(TheFile), "\INBOX") <> 0 Then
  7019.         Print "no APPENDS to file with \INBOX*"
  7020.         GoTo line_19100
  7021.     End If
  7022.     Open TheFile For Append As #OutFile
  7023.     If Clipboard.GetFormat(vbCFText) Then
  7024.         Clip_data = Clipboard.GetText(vbCFText)
  7025.             temps = Format(Now, "ddddd ttttt") + "       "
  7026.             temps = Left(temps, 23)     'all must be 23 long incld space
  7027.        Print #OutFile, temps, "-------------append start ---------- "
  7028. line_19005:
  7029. '
  7030.        Print #OutFile, Clip_data
  7031.        
  7032.         Print #OutFile, temps, "-------------append end   ---------- "
  7033.         Print Clip_data
  7034.         Print "Clipboard data added to "; TheFile
  7035.         Print "  === append complete ==="
  7036.         Close #OutFile
  7037.     End If
  7038. line_19100:
  7039.  
  7040. Return
  7041. '********************************************************
  7042.    '  * * *   E N T E R   D A T A   * * * N O T E S
  7043. '********************************************************
  7044. ' enter notes data input
  7045.  
  7046. Do_Enter_20000:
  7047.     save_line = "20000"    'for error handling
  7048.    entered_notes = "NO"    'allow for date exitdateyes
  7049.    Enter_Count = 0
  7050.  
  7051. Close #OutFile
  7052. Open TheFile For Append As #OutFile
  7053. ' jj logic for date here next
  7054. More_Notes_22000:
  7055.     save_line = "22000"    'for error handling
  7056.    ttt = InputBox("enter notes", "Notes Prompt   " + TheFile, , xx1 - offset1 - 2000, yy1 - offset2) '
  7057. 'any 2 characters will do a paste function Ctrl/V
  7058.    'vv option will put what is in clipboard
  7059.    If InStr(1, UCase(ttt), "VVV") <> 0 Then
  7060.         ttt1 = InStr(1, UCase(ttt), "VVV")
  7061.         ttt = Left(ttt, ttt1 - 1) + ppaste + Right(ttt, Len(ttt) - (ttt1 + 2))
  7062.     End If
  7063.     If InStr(1, UCase(ttt), "GGG") <> 0 Then
  7064.         ttt1 = InStr(1, UCase(ttt), "GGG")
  7065.         ttt = Left(ttt, ttt1 - 1) + gpaste + Right(ttt, Len(ttt) - (ttt1 + 2))
  7066.     End If
  7067. 'midway3 thru the program appx'==================================================================================
  7068.    
  7069.     If InStr(1, UCase(ttt), "VV") <> 0 Then
  7070.         ttt1 = InStr(1, UCase(ttt), "VV")
  7071.         ttt = Left(ttt, ttt1 - 1) + Clipboard.GetText(vbCFText) + Right(ttt, Len(ttt) - (ttt1 + 1))
  7072.     End If
  7073.     If Len(ttt) = 2 And Left(ttt, 1) = Mid(ttt, 2, 1) And UCase(ttt) <> "JJ" Then
  7074.         ttt = Clipboard.GetText(vbCFText)
  7075.   '      Print ttt 'testing only
  7076.    End If
  7077.    
  7078.     If ttt = "" And entered_notes = "YES" And _
  7079.             Cmd(7) <> "dateyes" And _
  7080.             UCase(Cmd(15)) = "EXITDATEYES" Then
  7081.             temps = Format(Now, "ddddd ttttt") + "       "
  7082.             temps = Left(temps, 23)     'all must be 23 long incld space
  7083.            Print #OutFile, temps
  7084.             Print temps
  7085.     End If
  7086.    
  7087.     If ttt = "" Then GoTo End_Notes_23000
  7088.             entered_notes = "YES"
  7089.             Enter_Count = Enter_Count + 1
  7090.             'see programmers guide page 606 for date formats below
  7091.    temps = Format(Now, "ddddd ttttt") + "       "
  7092.     temps = Left(temps, 23)     'all must be 23 long incld space
  7093.    If Cmd(7) <> "dateyes" And UCase(Cmd(14)) = "ENTERDATEYES" Then
  7094.         Cmd(14) = ""        'only do fore each new entry
  7095.        Print #OutFile, temps
  7096.         '     include "c:\dummy.txt"
  7097.   ' Insert "C:\DUMMY.BAS"
  7098.    
  7099.        Print temps
  7100.     End If
  7101.    
  7102.     If Cmd(7) <> "dateyes" Then temps = ""
  7103.     If Cmd(7) <> "dateyes" And UCase(Left(ttt, 2)) = "JJ" Then
  7104.             ttt = Right(ttt, Len(ttt) - 2)
  7105.             temps = Format(Now, "ddddd ttttt") + "       "
  7106.             temps = Left(temps, 23)     'all must be 23 long incld space
  7107.    End If
  7108.    
  7109.    
  7110.     Print #OutFile, temps & ttt
  7111.     Print temps & ttt
  7112.     GoTo More_Notes_22000
  7113. End_Notes_23000:
  7114.     If Enter_Count <> 0 Then
  7115.         Print Enter_Count; " Records added to "; TheFile
  7116.     End If
  7117.     save_line = "23000"    'for error handling
  7118.    Close #OutFile
  7119.     II = DoEvents       'yield to operating system
  7120.    
  7121.    
  7122.     GoTo What_50        'october 26 2000
  7123. '    GoTo End_32000
  7124.  
  7125. InputFile_24000:        'march 20/00
  7126.    Cls                 'refresh clear screen
  7127.    GoSub OpenFile_25000 'open files.txt for selection
  7128.    If auto_redraw = "YES" Then frmproj2.AutoRedraw = True      'november 08 2001 Autoredraw pair-1
  7129.    save_line = "24000"
  7130.     For f = 1 To 20
  7131.     ttt = ""
  7132.     Line Input #FileFile, FFF
  7133.         If f = 1 Then ForeColor = QBColor(Val(Cmd(5)))
  7134.         If f = 1 Then ttt = App.EXEName + " -- Version " + vvversion + " -- " + App.Title
  7135.         If Len(FFF) > 50 Then
  7136.             Print f, "*"; Right(FFF, 50); "   "; ttt 'december 22 2000
  7137.            Else
  7138.             Print f, FFF; "                            "; ttt
  7139.         End If
  7140.         If f = 1 Then ForeColor = QBColor(Def_Fore)
  7141.     AllFiles(f) = FFF + ""
  7142.     Next f
  7143.     Close #FileFile
  7144. line_24005:
  7145. '*********************************************************
  7146. 'main file name selection done here
  7147. '*********************************************************
  7148.    Print "Enter selection 1-20 e-xit or file name Option Prompt #1"
  7149.     tt1 = ""    'december 7 2000
  7150.    If screen_capture = "YES" Then
  7151. '03 September 2004        delay_sec = 5      'march 15 2001
  7152. '03 September 2004        GoSub line_30000
  7153.            new_delay_sec = 5    '03 September 2004
  7154.            GoSub line_30300            '03 September 2004
  7155.    End If
  7156.     'test the getformat logic for the clipboard january 27 2002
  7157. '    If Clipboard.GetFormat(vbCFBitmap) Then
  7158. '        tt1 = InputBox("clipboard has a bitmap", , tt1, xx1 - offset1, yy1 - offset2) '
  7159. '    End If
  7160.    today_date = Format(Now, "ddddd ttttt")    'february 16 2001
  7161. '12 September 2004    If UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\" Then
  7162. '    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  7163. '    frmproj2.Caption = "before test " + tt1     '02 October 2004 testing
  7164. '            new_delay_sec = 2    '02 October 2004
  7165. '            GoSub line_30300            '02 October 2004
  7166.    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.EXEName), "BACKGRD") <> 0 Then
  7167.         tt1 = RTrim(Cmd(46))       'the command file prompt usually 1
  7168. '-------------------------------
  7169. '02 October 2004
  7170.    If UCase(Left(Cmd(58), 13)) = "DEFAULT_TO_CD" And Left(App.Path, 3) <> "C:\" And Len(tt1) > 2 And InStr(1, tt1, ":") <> 0 Then
  7171.         tt1 = Left(App.Path, 3) + Right(tt1, Len(tt1) - 3)
  7172.     End If          'change any C:\ to D:\ or E:\ etc 02 October 2004
  7173.    
  7174. '    frmproj2.Caption = "after test " + tt1    '02 October 2004 testing
  7175. '            new_delay_sec = 2    '02 October 2004
  7176. '            GoSub line_30300            '02 October 2004
  7177. '-------------------------------
  7178. '            xtemp = InputBox(" backgrd test1", " testing Prompt #1*   ", , xx1 - offset1, yy1 - offset2)
  7179.        If debug_photo Then     '12 october 2002
  7180.            xtemp = InputBox("DOUG TESTING AUTO PROMPTS" + ttt, , , 4400, 4500) 'TESTING ONLY
  7181.        End If
  7182.         GoTo auto_p1
  7183.     End If                  '07 december 2002
  7184.    If SAVE_ttt = "in" Then tt1 = AllFiles(1)   'december 7 2000
  7185.    tt1 = InputBox("File Selection:", "File Prompt #1   " + today_date, tt1, xx1 - offset1, yy1 - offset2) '
  7186.    If Len(tt1) > 0 And Len(tt1) < 3 Then       '19 December 2004
  7187.        xtemp = tt1
  7188.         GoSub keypad_27500
  7189.         tt1 = xtemp
  7190.     End If                                      '19 December 2004
  7191. auto_p1:
  7192.     tt1 = UCase(tt1)
  7193.     frmproj2.Caption = program_info + stretch_info       '25 november 2002
  7194. '22 december 2002
  7195. '    random_info = ""                '21 december 2002
  7196.    If Cmd(49) = "RANDOM" Then
  7197. '        random_info = " (RANDOM)"           '21 december 2002
  7198.        frmproj2.Caption = program_info + random_info + stretch_info '09 december 2002
  7199.    End If
  7200.     If auto_redraw = "YES" Then frmproj2.AutoRedraw = False     'november 08 2001 Autoredraw pair-1
  7201.    If tt1 = "X" Or tt1 = "E" Or (tt1 = "" And SAVE_ttt <> "in") Then
  7202.         GoTo End_32000
  7203.     End If              'exit if x or e entered
  7204.    'the following 2 if statements are left in as example
  7205.    If tt1 = "25" Then
  7206.         MAX_CNT = 25
  7207.         GoTo line_24005
  7208.     End If              'internal fix till control file
  7209.    If tt1 = "20" Then
  7210.         MAX_CNT = 20
  7211.         GoTo line_24005
  7212.     End If              'internal fix till control file
  7213. 'october 26 2000 the SAVE_ttt below
  7214.    If tt1 = "" And SAVE_ttt = "in" Then
  7215.         TheFile = AllFiles(1)
  7216.         tt1 = TheFile
  7217.         GoTo line_24010
  7218.     End If              'no entry default to first listed
  7219.    If tt1 = "0" Or tt1 = "1" Then
  7220.         TheFile = AllFiles(1)
  7221.         tt1 = TheFile
  7222.         SAVE_ttt = "in"     'november 03 2000 after file selected continue with defaults
  7223.        TheSearch = "."     'november 03 2000
  7224.        search_prompt = "in" 'november 03 2000
  7225.        GoTo line_24010
  7226.     End If              'no entry default to first listed
  7227. 'allow for number of characters select file number KKK is 3
  7228.    If tt1 = "11" Then GoTo line_24007
  7229.     If Len(tt1) = 1 Then GoTo line_24007
  7230.     If Len(tt1) = 2 And Left(tt1, 1) <> Mid(tt1, 2, 1) Then GoTo line_24007
  7231. 'need a "dbcs string manipulation function" to do following
  7232. 'same as the num1$ function on the vax numeric to string
  7233.    If Left(tt1, 1) = Mid(tt1, 2, 1) Then
  7234.         tt1 = CStr(Len(tt1))
  7235.     End If
  7236.  
  7237. line_24007:
  7238.  
  7239. If Val(tt1) < 2 Or Val(tt1) > 20 Then
  7240.         GoTo line_24010
  7241.     End If
  7242.     TheFile = AllFiles(Val(tt1))
  7243.     tt1 = TheFile
  7244.     SAVE_ttt = "in"     'november 03 2000 after file selected continue with defaults
  7245.    TheSearch = "."     'november 03 2000
  7246.    search_prompt = "in" 'november 03 2000
  7247. line_24010:
  7248.     'check all file existance
  7249.    'they may have been deleted etc
  7250.    'Following line allows update if change made to control
  7251. '    If TheFile = "C:\CONTROL.TXT" Then GoSub Control_28000
  7252.    If UCase(TheFile) = "CONTROL.TXT" Then GoSub Control_28000  'december 3 2000
  7253.    save_line = "24010"
  7254.     TheFile = tt1
  7255.     LastFile = TheFile
  7256.     FileFile = FreeFile
  7257.     Open tt1 For Input As #FileFile
  7258. 'november 3 2000 use to switch between p1 and c depending on file
  7259.    xxx_found = "NO"
  7260. line_24015:
  7261.     save_line = "24015"
  7262.     For f = 1 To 10
  7263.         Line Input #FileFile, aaa
  7264.         If Left(aaa, 4) = "xxx." Then
  7265.             xxx_found = "YES"
  7266.         End If
  7267.     Next f
  7268.     Close FileFile
  7269.  
  7270. line_24020:     'store new file in file.txt
  7271.    save_line = "24020"
  7272.     FileFound = 0
  7273.     For f = 1 To 20
  7274. 'december 8 2000    If TheFile = AllFiles(F) Then
  7275.    If UCase(TheFile) = UCase(AllFiles(f)) Then
  7276.         FileFound = f       'save location where file is
  7277.    End If
  7278.     Next f
  7279.     If FileFound = 0 Then
  7280.         For f = 19 To 1 Step -1
  7281.         AllFiles(f + 1) = AllFiles(f)
  7282.         Next f
  7283.         AllFiles(1) = TheFile
  7284.         GoTo line_24050
  7285.     End If              'new one add it to top of list
  7286.    If FileFound > 1 Then
  7287.         For f = FileFound - 1 To 1 Step -1
  7288.         AllFiles(f + 1) = AllFiles(f)
  7289.         Next f
  7290.         AllFiles(1) = TheFile
  7291.         GoTo line_24050
  7292.     End If
  7293. line_24050:
  7294. '20 july 2002 skip the update below if cmd(40) not in file name
  7295.  
  7296.     If auto_exe = "YES" Then GoTo line_24080    '04 September 2004
  7297.    If InStr(Cmd(40), Left(App.Path, 3)) = 0 And Trim(Cmd(40)) <> "" Then
  7298.         Print " no file update cmd(40)"
  7299.         GoTo line_24080         '20 july 2002
  7300.    End If
  7301.     save_line = "24050"
  7302.     Kill Cmd(11)        'list of files last accessed
  7303.    FileFile = FreeFile
  7304.     Open Cmd(11) For Output As FileFile
  7305.     For f = 1 To 20
  7306.         Print #FileFile, AllFiles(f)
  7307.     Next f
  7308. line_24080:
  7309.     Close FileFile
  7310. line_24090: 'return exit line
  7311.    If InStr(UCase(TheFile), ".MBX") <> 0 And SAVE_ttt = "in" Then mbxyes = "Y" 'december 17 2000
  7312.  
  7313. Return
  7314.  
  7315. OpenFile_25000:         'march 20/00
  7316. 'files.txt is the last 20 opened files
  7317. 'for display and selection
  7318.    save_line = "25000"
  7319.         FileFile = FreeFile
  7320.         Open Cmd(11) For Input As #FileFile
  7321.    
  7322. Return
  7323. hilite_25500:
  7324. '        xtemp = InputBox(CStr(hilite_cnt) + yyy + hilite_hh + ooo, "Continue Prompt", , 2000, 2000)
  7325.  
  7326.     If InStr(1, UCase(ooo), "XXX.") <> 0 Then
  7327.     hilite_cnt = hilite_cnt + 1
  7328.     cript2(hilite_cnt) = Mid(ooo, InStr(1, UCase(ooo), UCase(hilite_this)) + Len(hilite_this))
  7329. '        tt1 = InputBox("testing prompt" + cript2(hilite_cnt), , , 4400, 4500) 'TESTING ONLY
  7330.    End If
  7331. Return              'april 22 2001
  7332.  
  7333. Search_26000:        'march 20/00
  7334. '        xtemp = InputBox("(A) testing prompt 02 January 2005" + sscreen_saver_ww + inin, , , 4400, 4500) '02 January 2005
  7335.    If tempdata = "COMMAND" Then GoTo line_26002a           '02 January 2005
  7336.    If sscreen_saver_ww = "YES" And inin <> "" Then GoTo line_26090 '28 april 2002
  7337.    Cls                 'refresh clear screen
  7338.    If auto_redraw = "YES" Then frmproj2.AutoRedraw = True      'november 08 2001 autoredraw pair-3
  7339.  
  7340.     Set Picture = LoadPicture() 'clear any picture lp#7
  7341.    If debug_photo Then         '12 october 2002
  7342.        tt1 = InputBox("testing photo 3.3", , , 4400, 4500)  'TESTING ONLY
  7343.    End If
  7344.     GoSub OpenFile_27000 'open search.txt for selection
  7345.    save_line = "26000"
  7346.     For f = 1 To 20
  7347.    
  7348.     Line Input #FileFile, FFF
  7349.     If TheSearch = "." Then
  7350. 'december 7 2000        If F = 1 Then ForeColor = QBColor(Val(Cmd(5)))
  7351.        Print f, FFF        'DISP OPTIONS IF "." ENTERED
  7352. 'december 7 2000        If F = 1 Then ForeColor = QBColor(Def_Fore)
  7353.    End If
  7354.     AllSearch(f) = FFF + ""
  7355.     Next f
  7356.     Close #FileFile
  7357.     If TheSearch <> "." Then
  7358.         GoTo line_26020
  7359.     End If
  7360. '*************************************************
  7361. ' the search selection 1-20 made here
  7362. '*************************************************
  7363.    Print "Enter selection 1-20 e-xit a for all or new search"
  7364. line_26002:
  7365.     If ttt = "." Then   'january 05 2001
  7366.        ttt = AllSearch(1)
  7367.     Else
  7368.         ttt = ""            'december 7 2000
  7369.    End If          'january 05 2001
  7370.    If search_prompt = "in" Then ttt = Cmd(33)  'december 7 2000
  7371.    If emailsea = "Y" And search_prompt = "in" Then ttt = "a"        'december 11 2000
  7372.    Cmd(33) = ""    'december 7 2000
  7373.    If screen_capture = "YES" Then
  7374. '03 September 2004        delay_sec = 5      'march 15 2001
  7375. '03 September 2004        GoSub line_30000
  7376.            new_delay_sec = 5    '03 September 2004
  7377.            GoSub line_30300            '03 September 2004
  7378.    End If
  7379. 'option prompt #3
  7380. '12 September 2004    If UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\" Then
  7381. '    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  7382.    If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.EXEName), "BACKGRD") <> 0 Then
  7383. '            xtemp = InputBox(" backgrd test3", " testing Prompt #3*   ", , xx1 - offset1, yy1 - offset2)
  7384.        ttt = RTrim(Cmd(48))       'the search string prompt usually photo
  7385.        GoTo auto_p3        'make sure that cd search file does not have "C:\"
  7386.                            'it should be "D:\" anything but "C:\" to work
  7387.    End If                  '07 december 2002
  7388. '19 September 2004  command== stuff
  7389.    If Len(command_line) > 1 Then
  7390.         'i do not think the file is open here it should be 1 line past the match for now...
  7391.        'maybe skip the multiple reads below if random is on...????
  7392. '        temptemp = InputBox("DOUG TESTING command_linea==" + CStr(zzz_cnt) + " " + aaa, , , 4400, 4500) 'TESTING ONLY
  7393.        command_line = ""
  7394. '        temptemp = InputBox("DOUG TESTING command_lineb==" + command_line, , , 4400, 4500) 'TESTING ONLY
  7395.        multi_prompt2 = ""  '20 September 2004
  7396. '        aaa = ""            '20 September 2004
  7397. '        GoTo input_1000a     '20 September 2004
  7398.        For zzz_cnt = 1 To hold_zzz
  7399.         Line Input #OutFile, aaa '21 September 2004
  7400.        Next zzz_cnt                '21 September 2004
  7401.            ooo = aaa           '21 September 2004
  7402. '        temptemp = InputBox("DOUG TESTING command_lineaa==" + CStr(hold_zzz) + " " + aaa, , , 4400, 4500) 'TESTING ONLY
  7403.        GoTo input_1000b     '21 September 2004
  7404. '        ttt = RTrim(Cmd(48))       '20 September 2004  this changed things a bit???
  7405. '        GoTo Line_17055
  7406. '        GoTo auto_p3         '21 September 2004
  7407.    End If                  '19 September 2004
  7408.        If debug_photo Then     '12 october 2002
  7409. '            xtemp = InputBox("DOUG TESTING auto prompt #3" + ttt, , , 4400, 4500) 'TESTING ONLY
  7410.        End If
  7411. '26 November 2004 skip around this prompt is a control file switch took place last
  7412. '            xtemp = InputBox("DOUG TESTING auto prompt #3 search=" + temptemp + " tempdata=" + tempdata + " " + eofsw, , , 4400, 4500) 'TESTING ONLY
  7413.    If eofsw = "YES" Then
  7414.         eofsw = ""              '26 November 2004
  7415.        ttt = Trim(temptemp)
  7416.         GoTo auto_p3
  7417.     End If                      '26 November 2004
  7418. '            xtemp = InputBox("testing 02 January 2005=" + temptemp + " tempdata=" + tempdata + " " + eofsw, , , 4400, 4500) 'TESTING ONLY
  7419. line_26002a:                        '02 January 2005
  7420.    If tempdata = "CONTROL" Or tempdata = "COMMAND" Then         '26 November 2004
  7421. '            xtemp = InputBox("(B) testing 02 January 2005=" + temptemp + " tempdata=" + tempdata + " " + eofsw, , , 4400, 4500) 'TESTING ONLY
  7422.        ttt = Trim(temptemp)               '26 November 2004 this will change to something photo or "a" etc
  7423.        tempdata = ""
  7424.         GoTo auto_p3
  7425.     End If                          '26 November 2004
  7426.    ttt = InputBox("<" + UCase(prompt2) + "> Search Selection:", "Search Prompt #3    " + TheFile, ttt, xx1 - offset1, yy1 - offset2) '
  7427. '19 December 2004
  7428.    If Len(tt1) > 0 And Len(tt1) < 3 Then       '19 December 2004
  7429.        xtemp = ttt
  7430.         GoSub keypad_27500
  7431.         ttt = xtemp
  7432.     End If                                      '19 December 2004
  7433.    If show_files_yn Then frmproj2.Caption = program_info + random_info + stretch_info '24 december 2002
  7434. auto_p3:
  7435.     Cls                             'november 10 2001 needed with autoredraw
  7436. '        temptemp = InputBox("DOUG TESTING command_lineb==" + ttt, , , 4400, 4500) 'TESTING ONLY
  7437.    If auto_redraw = "YES" Then frmproj2.AutoRedraw = False      'november 08 2001 autoredraw pair-3
  7438. '        xtemp = InputBox("TESTING DOUG" + ttt + "*" + search_prompt, , , 4400, 4500) 'TESTING ONLY
  7439. 'november 6 2000
  7440. '    Me.MousePointer = vbHourglass       '18 august 2002
  7441. parsez:      'january 12 2001
  7442.    If Left(ttt, 2) = "  " Then
  7443.         ttt = Mid(ttt, 2)
  7444.         GoTo parsez
  7445.     End If
  7446.     i = InStr(ttt, "  ")
  7447.     If i = 0 Then GoTo noparsez
  7448.     ttt = Left(ttt, i - 1) + Mid(ttt, i + 1)
  7449.     GoTo parsez
  7450. noparsez:
  7451.    
  7452.     Context_cnt = -1     'november 10 2000
  7453. '17 December 2004   add in the V or H prompt for insert
  7454.    If UCase(ttt) = "V" Or UCase(ttt) = "H" Then
  7455.          If Clipboard.GetFormat(vbCFText) Then
  7456.              ttt = Clipboard.GetText(vbCFText)
  7457.          End If          '17 December 2004
  7458.    End If              '17 December 2004
  7459.    If UCase(ttt) = "F" Then
  7460.         prompt2 = "C"
  7461.         SAVE_ttt = "F"
  7462.         mbxi = 1        'january 31 2001
  7463.        GoTo line_26002
  7464.     End If              'january 31 2001
  7465.    If UCase(ttt) = "Q" Then
  7466.         prompt2 = "Q"
  7467.         SAVE_ttt = "Q"
  7468.         mbxi = 1        'december 17 2000
  7469.        GoTo line_26002
  7470.     End If              'december 2 2000
  7471.    
  7472.    
  7473.     If UCase(ttt) = "C" Then
  7474.         prompt2 = "C"
  7475.         SAVE_ttt = "C"
  7476.         mbxi = 1        'december 29 2000
  7477.        GoTo line_26002
  7478.     End If              'december 2 2000
  7479.    If prompt2 = "Q" And ttt <> "" Then
  7480.         qqq = ttt + ""
  7481.     End If
  7482.     If prompt2 = "Q" And ttt = "" Then
  7483.         qqq = ""
  7484.     End If      'november 6 2000
  7485. 'november 6 2000
  7486. '    If prompt2 <> "Q" And ttt <> "d" Then
  7487. '        ttt = UCase(ttt)    'november 25 2000
  7488. '    End If
  7489. 'august 27/00
  7490.    If ttt = "E" Or ttt = "e" Or ttt = "X" Or ttt = "x" Or ttt = "" Then
  7491.         GoTo line_26010
  7492.     End If
  7493.     If ttt = "" Or ttt = "0" Or ttt = "1" Then
  7494.         TheSearch = AllSearch(1)
  7495.         ttt = TheSearch
  7496.         qqq = TheSearch
  7497.         GoTo line_26010
  7498.     End If              'no entry default to first listed
  7499. 'november 14 2000 the following stuff moved up to do_search area
  7500. '    If UCase(ttt) = "XXX" Then
  7501. '        extract_yes = "YES"     'november 12 2000
  7502. '            ExtFile = FreeFile
  7503. ''            Kill Cmd(19)
  7504. '            DoEvents
  7505. '     Open Cmd(19) For Output Access Write As #ExtFile
  7506. ''           Open Cmd(19) For Output As #ExtFile
  7507. ''            Print #ExtFile, "testing output"
  7508. '            DoEvents
  7509. '            line_len = 500 'on extract do not do any wraps???
  7510. '            GoTo line_26002
  7511. '    End If
  7512.    
  7513. 'allow string length to determine search selection
  7514. 'december 28 2000 comment out the 6 following lines
  7515. '    If ttt = "11" Then GoTo line_26007
  7516. '    If Len(ttt) = 1 Then GoTo line_26007
  7517. '    If Len(ttt) = 2 And Left(ttt, 1) <> Mid(ttt, 2, 1) Then GoTo line_26007
  7518. '    If Len(ttt) >= 2 And Left(ttt, 1) = Mid(ttt, 2, 1) And Mid(ttt, 2, 1) = Mid(ttt, 3, 1) Then
  7519. '        ttt = CStr(Len(ttt))
  7520. '    End If
  7521. line_26007:
  7522.     save_line = "26007"     'december 28 2000
  7523.    If Len(ttt) = 2 And ttt >= "10" And ttt < "21" Then GoTo line_26008
  7524.     If Len(ttt) = 1 And ttt > "0" And ttt <= "9" Then GoTo line_26008
  7525. '    ttt = ""        'january 05 2001
  7526.    GoTo line_26010     'december 28 2000
  7527.    'did the code above so no numeric error trap would be needed
  7528.  
  7529. line_26008:
  7530. 'december 28 2000 commented out the 3 following lines
  7531. '    If Val(ttt) < 2 Or Val(ttt) > 20 Then
  7532. '        GoTo line_26010
  7533. '    End If
  7534.    TheSearch = AllSearch(Val(ttt))
  7535.     ttt = TheSearch
  7536.     qqq = TheSearch
  7537. line_26010:
  7538.     TheSearch = ttt
  7539. '31 august 2002 ucase stuff below
  7540. 'when all are numeric ie shifting cases makes no difference don't use uppercase otherwise do ie "Y"
  7541.    do_tab = 0    '05 october 2002 no need to check for tabs if search has no spaces
  7542.    If InStr(ttt, " ") > 0 Then do_tab = True '05 october 2002
  7543.    If UCase(ttt) = ttt And LCase(ttt) = ttt Then
  7544.         uppercase = "N"
  7545. '        temptemp = InputBox("TESTING ucase no" + prompt2 + p2p2 + SAVE_ttt + ttt + "*" + UCase(ttt) + "*" + LCase(ttt), , , 4400, 4500) 'TESTING ONLY
  7546.    End If
  7547.     If UCase(ttt) <> ttt Or LCase(ttt) <> ttt Then
  7548.         uppercase = "Y"
  7549. '        temptemp = InputBox("TESTING ucase yes" + prompt2 + p2p2 + SAVE_ttt + ttt + "*" + UCase(ttt) + "*" + LCase(ttt), , , 4400, 4500) 'TESTING ONLY
  7550.    End If
  7551. '31 august 2002
  7552. line_26020:     'store new search in search.txt
  7553.    save_line = "26020"
  7554.     FileFound = 0
  7555.     For f = 1 To 20
  7556.     If TheSearch = AllSearch(f) And Len(TheSearch) > 0 Then
  7557.         FileFound = f       'save location where search is
  7558.    End If
  7559.     Next f
  7560. '        Print "TheSearch="; TheSearch
  7561. '        tt1 = InputBox("continue", , , 4400, 4500)  'TESTING ONLY
  7562.  
  7563.     If UCase(TheSearch) = "D" Then
  7564.         TheSearch = ""  'do not log D day searches
  7565.    End If
  7566.     If UCase(TheSearch) = "M" Then
  7567.         TheSearch = ""  'do not log M month searches
  7568.    End If
  7569.     If UCase(TheSearch) = "DD" Then
  7570.         TheSearch = ""  'do not log DD day searches
  7571.    End If
  7572.     If UCase(TheSearch) = "MM" Then
  7573.         TheSearch = ""  'do not log MM month searches
  7574.    End If
  7575.     If FileFound = 0 And TheSearch <> "" Then
  7576.         For f = 19 To 1 Step -1
  7577.         AllSearch(f + 1) = AllSearch(f)
  7578.         Next f
  7579.         AllSearch(1) = TheSearch
  7580.         GoTo line_26050
  7581.     End If              'new one add it to top of list
  7582.    If FileFound > 1 Then
  7583.         For f = FileFound - 1 To 1 Step -1
  7584.         AllSearch(f + 1) = AllSearch(f)
  7585.         Next f
  7586.         AllSearch(1) = TheSearch
  7587.         GoTo line_26050
  7588.     End If
  7589. line_26050:
  7590.     save_line = "26050:"
  7591.     If auto_exe = "YES" Then GoTo line_26080    '04 September 2004
  7592.    If InStr(Cmd(40), Left(App.Path, 3)) = 0 And Trim(Cmd(40)) <> "" Then
  7593.         Print " no search file update cmd(40)"
  7594. '            xtemp = InputBox("app.path" + App.Path + " not found or updated " + Cmd(40), , , 4400, 4500) 'TESTING ONLY
  7595.        GoTo line_26080
  7596.     End If              '20 july 2002 must be a writeable device in cmd(40)
  7597.    Kill Cmd(12)        'search strings save file
  7598.    FileFile = FreeFile
  7599.     Open Cmd(12) For Output As FileFile
  7600.     For f = 1 To 20
  7601.         Print #FileFile, AllSearch(f)
  7602.     Next f
  7603. line_26080:     '20 july 2002
  7604.    Close FileFile
  7605. line_26090: 'return exit line
  7606.    TheSearch = ""
  7607. Return
  7608.  
  7609. OpenFile_27000:         'march 20/00
  7610. 'search.txt is the last 20 search strings
  7611. 'for display and selection
  7612.    save_line = "27000"
  7613.         FileFile = FreeFile
  7614.         Open Cmd(12) For Input As #FileFile
  7615.    
  7616. Return
  7617.  
  7618. keypad_27500:           '19 December 2004
  7619.    xtemp = UCase(xtemp)
  7620.     If xtemp = "M" Then xtemp = "1"
  7621.     If xtemp = "," Then xtemp = "2"
  7622.     If xtemp = "." Then xtemp = "3"
  7623.     If xtemp = "J" Then xtemp = "4"
  7624.     If xtemp = "K" Then xtemp = "5"
  7625.     If xtemp = "L" Then xtemp = "6"
  7626.     If xtemp = "U" Then xtemp = "7"
  7627.     If xtemp = "I" Then xtemp = "8"
  7628.     If xtemp = "O" Then xtemp = "9"
  7629.     If xtemp = "M " Then xtemp = "10"
  7630.     If xtemp = "MM" Then xtemp = "11"
  7631.     If xtemp = "M," Then xtemp = "12"
  7632.     If xtemp = "M." Then xtemp = "13"
  7633.     If xtemp = "MJ" Then xtemp = "14"
  7634.     If xtemp = "MK" Then xtemp = "15"
  7635.     If xtemp = "ML" Then xtemp = "16"
  7636.     If xtemp = "MU" Then xtemp = "17"
  7637.     If xtemp = "MI" Then xtemp = "18"
  7638.     If xtemp = "MO" Then xtemp = "19"
  7639.     If xtemp = ", " Then xtemp = "20"
  7640. Return                  '19 December 2004
  7641. 'control.txt control.txt control.txt information read into cmd elements here
  7642. Control_28000:      'april 20/00 update control file info read it in
  7643.    save_line = "28000"
  7644.     If InStr(UCase(aaa), "CONTROL==") <> 0 Then GoTo line_28005   '19 November 2004
  7645.    If InStr(Cmd(40), Left(App.Path, 3)) = 0 And Trim(Cmd(40)) <> "" And SAVE_ttt <> "in" Then
  7646. '            xtemp = InputBox("app.path" + App.Path + " control file not re-read " + Format(delay_sec, "###0.0000") + Cmd(40) + SAVE_ttt, , , 4400, 4500) 'TESTING ONLY
  7647. '        Print " no control file reread cmd(40)"
  7648.           frmproj2.Caption = " no control file reread cmd(40)" '19 November 2004 testing only
  7649.        GoTo line_28099
  7650.     End If              '20 july 2002 must be a writeable device in cmd(40)
  7651. line_28005:         '19 November 2004 allow re-read if in control file as it is just switching files
  7652. '            xtemp = InputBox("app.path" + App.Path + " control file not re-read " + Format(delay_sec, "###0.0000") + Cmd(40) + SAVE_ttt, , , 4400, 4500) 'TESTING ONLY
  7653. '    FileFile = FreeFile
  7654.    CtrlFile = FreeFile
  7655. '    Open "C:\control.txt" For Input As #FileFile
  7656.    Open control_file For Input As #CtrlFile
  7657. line_28010:
  7658.     save_line = "28010"
  7659.     For f = 1 To 100
  7660.     Line Input #CtrlFile, FFF
  7661.     Cmd(f) = FFF
  7662.     Next f
  7663.    
  7664. 'all new elements should be read in and set to values here
  7665. 'eventually moving them from the prompt area to here.
  7666.  
  7667. '08 January 2004 slomo_seg
  7668.    slomo_seg = 0
  7669.     slomo_seg = Val(Cmd(62))
  7670.     If slomo_seg = 0 Then
  7671. '21 March 2004        slomo_seg = 0.01667
  7672.        slomo_seg = 0.01668
  7673.     End If
  7674. '08 January 2004
  7675.    
  7676.     pad_time = 0                '21 March 2004
  7677.    pad_time = Val(Cmd(64))      '21 March 2004
  7678.    If pad_time = 0 Then
  7679.         pad_time = 30
  7680.     End If                      '21 March 2004
  7681.    
  7682. '04 November 2003 have play_speed in control file
  7683.    play_speed = 1000
  7684.     If Left(UCase(Cmd(61)), 8) = "SETSPEED" Then
  7685.         f = Len(Cmd(61)) - 8
  7686.         play_speed = Val(Right(Cmd(61), f))
  7687.         If play_speed = 0 Then
  7688.             play_speed = 1000
  7689.         End If
  7690.     End If              '04 November 2003
  7691.    save_play_speed = play_speed        '16 November 2003
  7692. '18 March 2003 ver=1.01
  7693.    If Left(Cmd(55), 2) > "00" And Left(Cmd(55), 2) <= "99" Then
  7694.         Clear_Context_lines = Val(Left(Cmd(55), 2))
  7695.     Else
  7696.         Clear_Context_lines = 0     '18 March 2003 ver=1.01
  7697.    End If
  7698. '18 March 2003 ver=1.01
  7699.        
  7700. '22 March 2003 ver=1.02
  7701.    If UCase(Cmd(56)) = "PHOTO_DETAIL" Then
  7702.         Cmd(56) = "PHOTO_DETAIL"        'just to make sure all capitals
  7703.        detailyn = "PHOTO_DETAIL"       '18 November 2004
  7704.    Else
  7705.         detailyn = "noPHOTO_DETAIL"     '18 November 2004
  7706.    End If
  7707. '22 March 2003 ver=1.02
  7708.  
  7709.     If UCase(Cmd(53)) = "SHOWVIDEO" Then
  7710.         videoyn = "SHOWVIDEO"
  7711.     Else
  7712.         videoyn = "NOSHOWVIDEO"
  7713.     End If                      '10 FEBRUARY 2003
  7714.    If Left(UCase(Cmd(50)), 9) = "SHOWFILES" Then
  7715.         show_files_yn = True '24 december 2002
  7716. '       xtemp = InputBox("DOUG 3 show_files_yn " + Cmd(50), , , 4400, 4500) 'TESTING ONLY
  7717.    End If
  7718.     If Trim(UCase(Cmd(45))) = UCase(App.EXEName) Then auto_exe = "YES"  '07 december 2002
  7719. '==============================================================
  7720.    random_info = ""            '21 december 2002
  7721.    If Left(UCase(Cmd(49)), 6) = "RANDOM" Then
  7722.         random_info = " (RANDOM)"   '21 december 2002
  7723.        rand = -1           'when multiples allowed as below remove this line
  7724.  
  7725. '19 august 2003 try skipping the following line... for now
  7726. '19 august 2003        If xxx_found = "NO" And text_pause <> True Then rand = 0   '19 january 2003
  7727. '       xtemp = InputBox("testing douga 19 august 2003 " + Cmd(50), , , 4400, 4500) 'TESTING ONLY
  7728. '19 august 2003        If xxx_found = "NO" Then rand = 0   '19 january 2003
  7729.    End If              '09 december 2002
  7730. '19 August 2003    If Cmd(49) <> "RANDOM" Then rand = 0  '09 december 2002
  7731.    If Left(Cmd(49), 6) <> "RANDOM" Then rand = 0  '09 december 2002
  7732. '=============================================================
  7733.    rand1 = 0           '23 March 2004
  7734.    If Left(UCase(Cmd(65)), 7) = "RANDBEG" Then
  7735.         rand1 = -1
  7736.     End If              '23 March 2004
  7737.    
  7738.     thumb_nail = "NO"       '14 April 2004
  7739.    If Left(UCase(Cmd(67)), 5) = "THUMB" Then
  7740.         thumb_nail = "YES"
  7741.     End If                  '14 April 2004
  7742.    
  7743.     save_line = "28020"
  7744.         Def_Fore = 15       'assign foreground to white
  7745.    Def_Fore = Cmd(4)
  7746.     Hold_Fore = Def_Fore    '27 July 2003
  7747.    sep = Cmd(6)        'search string seperator eg "/" or "." etc
  7748.    Set_Fore = 12      'assign set to red
  7749.    Set_Fore = 14        'try yellow
  7750.    Set_Fore = Cmd(5)
  7751.     line_len = Val(Cmd(21))
  7752.     over_lap = Val(Cmd(13))     'january 10 2001
  7753. '      xtemp = InputBox("testing prompt overlap=" + CStr(over_lap) + " " + CStr(wrap_cnt) + " " + CStr(cnt), "test", , 4400, 4500)  '
  7754.    If over_lap < 1 Then over_lap = 10   'january 10 2001
  7755.    If Val(line_len) < 10 Then
  7756.         line_len = 82
  7757.     End If
  7758.     Context_lines = Val(Cmd(22))
  7759.     If Context_lines > 40 Then Context_lines = 40   'February 04 2001
  7760.    If Context_lines < 1 Then
  7761.         Context_lines = 10
  7762.     End If
  7763.     photo_copy = Cmd(23)    'march 17 2001
  7764.    If Len(photo_copy) < 7 Then
  7765.         photo_copy = "c:\search\tempfold\"
  7766.     End If      'march 17 2001
  7767.    ppaste = Cmd(24)    'allow for vvv paste in data entry
  7768.    gpaste = Cmd(25)    'allow for ggg paste in data entry
  7769.    ss_search = Cmd(26)
  7770.     If ss_search = "" Then
  7771.         ss_search = "PHOTO"
  7772.         screensave(1) = "PHOTO"
  7773.     End If
  7774.     delay_sec = Val(Cmd(27)) 'wait pause timing
  7775.    hold_sec = delay_sec    '22 March 2004
  7776. 'demo don't allow them the privilege of changing display time
  7777.    If ddemo = "YES" Then
  7778.        delay_sec = 0
  7779.     End If
  7780.     If delay_sec < 0 Then
  7781.         delay_sec = 4       '08 July 2003 what the heck is this for ***vip*** check it out
  7782.    End If
  7783.         xx1 = 8000
  7784.         yy1 = 6500
  7785. '        If Test1_str = "P1" Then
  7786.            xx1 = Val(Cmd(17))
  7787.             yy1 = Val(Cmd(18))
  7788. '        End If
  7789.        If xx1 < 100 Then
  7790.             xx1 = 8000
  7791.         End If
  7792.         If yy1 < 100 Then
  7793.             yy1 = 6500
  7794.         End If
  7795.    
  7796.     GoSub line_29100    'noshow routine
  7797.    GoSub line_29200    'screen saver routine
  7798.    ForeColor = QBColor(Def_Fore)
  7799.     BackColor = QBColor(3)
  7800.     BackColor = QBColor(Val(Cmd(3)))
  7801. '    BackColor = QBColor(Rnd * 20) 'add some color
  7802.                'it randomizes to black and can't see a thing??
  7803.    MAX_CNT = 20    'IF FONT.SIZE CHANGES SO DOES THIS COUNT
  7804.    MAX_CNT = Val(Cmd(1))
  7805.     Font.Size = 12
  7806.     Font.Size = Val(Cmd(2))
  7807.     photo_copy = Val(Cmd(23)) 'march 17 2001
  7808. '    If back_cnt < 1 Then
  7809. '        back_cnt = MAX_CNT
  7810. '    End If
  7811.    If Cmd(29) = "" Then
  7812.         Cmd(29) = "12"
  7813.     End If
  7814.     If Val(Cmd(29)) < 1 Then
  7815.         Cmd(29) = "12"
  7816.     End If              'October 27 2000
  7817.    AltColor = Val(Cmd(29))
  7818.     If Cmd(30) <> "N" Then
  7819.         Cmd(30) = "Y"
  7820.     End If              'October 27 2000
  7821.    
  7822.     'this was an attempt to get the problem with the Millennium ME software
  7823. '   If UCase(Cmd(30)) <> "Y" Then Cls 'december 8 2000
  7824. '   If UCase(Cmd(30)) <> "Y" Then frmProj2.BorderStyle = 2 'december 8 2000
  7825. '   If UCase(Cmd(30)) <> "Y" Then frmProj2.MaxButton = True 'december 8 2000
  7826. '   If UCase(Cmd(30)) <> "Y" Then frmProj2.Caption = "Millennium" 'december 8 2000
  7827. '   If UCase(Cmd(30)) <> "Y" Then frmProj2.Height = 9005 'december 8 2000
  7828.    hilite_this = Cmd(31)   ' only hilites data not on matching line
  7829.    If Len(Cmd(32)) < 7 Then
  7830. '        Cmd(32) = "c:\cript.txt"
  7831.        Cmd(32) = "cript.txt"   'december 3 2000
  7832.    End If              'november 20 2000
  7833.    cript_file = Cmd(32)
  7834.     If Cmd(33) = "     " Then Cmd(33) = ""  'december 7 2000
  7835.    context_win = Val(Cmd(34))              'january 01 2001
  7836.    If UCase(Cmd(38)) = "STRETCH" Then
  7837.         stretch_info = " (STRETCH)"         '21 december 2002
  7838.        stretch_img = "YES"
  7839.         img_ctrl = "YES"
  7840.     Else
  7841.         stretch_info = " (NORMAL)"              '21 december 2002
  7842.        stretch_img = "NO"
  7843.         img_ctrl = "NO"
  7844.     End If                      'september 23 2001
  7845.    auto_redraw = "NO"         'november 10 2001
  7846.    frmproj2.AutoRedraw = False      'november 10 2001 autoredraw
  7847.    If UCase(Cmd(39)) = "AUTOREDRAW" Then
  7848.         auto_redraw = "YES"
  7849.         frmproj2.AutoRedraw = True      'november 10 2001 autoredraw
  7850.    End If                      'november 10 2001
  7851.        adjust_sec = Val(Cmd(59))    '29 September 2003
  7852.        freeze_sec = Val(Cmd(60))       '01 October 2003
  7853. '        xtemp = InputBox("DOUG TESTING " + auto_redraw + Cmd(39) + "*", , , 4400, 4500) 'TESTING ONLY
  7854.    If context_win < 3 Then context_win = 3   'january 01 2001
  7855.    If context_win > MAX_CNT Then context_win = MAX_CNT 'january 01 2001
  7856. line_28099:         '20 july 2002
  7857.    Close CtrlFile
  7858. Return
  7859.  
  7860. replace_29000:  'August 10/00 search / replace sequence
  7861. save_line = "29000"
  7862.     Cls     'clear screen
  7863.    If encript <> "RRR" Then
  7864.         GoTo line_29000a
  7865.     End If      'november 20 2000
  7866.    criptcnt = 0
  7867. line_29000a:
  7868.     xtemp = Cmd(19)
  7869.     GoSub line_16000
  7870. '            xtemp = InputBox("27 october 2004 TESTING 5b =" + encript + "=", , , 4400, 4500) 'TESTING ONLY
  7871.    temp2 = 0
  7872. '    DoEvents        '27 October 2004
  7873. '            xtemp = InputBox("27 october 2004 TESTING 5b1 =" + encript + "=", , , 4400, 4500) 'TESTING ONLY
  7874.    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  7875.        OutFile = FreeFile              '27 October 2004 this may be a problem for just the RRR function
  7876.    End If                              '27 October 2004   put the if around it just so things do not change
  7877.    Open TheFile For Input As #OutFile
  7878. '           xtemp = InputBox("27 october 2004 TESTING 5b2 =" + encript + "=", , , 4400, 4500) 'TESTING ONLY
  7879.    If encript <> "RRR" Then
  7880.         GoTo line_29005
  7881.     End If      'november 20 2000
  7882.     If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  7883.        Line Input #BatchFile, case_yes
  7884. '            xtemp = InputBox("27 october 2004 TESTING 5c =" + case_yes + "=", , , 4400, 4500) 'TESTING ONLY
  7885.        GoTo skip_case
  7886.     End If                                              '27 October 2004
  7887.    case_yes = UCase(InputBox("Case sensitive change Y/N <Y>", "Case sensitive Prompt", , xx1 - offset1, yy1 - offset2))
  7888. skip_case:                                              '27 October 2004
  7889.    If case_yes <> "N" Then
  7890.         case_yes = "Y"
  7891.     End If
  7892. line_29003:
  7893.     If case_yes = "Y" Then
  7894.         If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  7895. '            xtemp = InputBox("27 october 2004 TESTING 6 " + ttt, , , 4400, 4500) 'TESTING ONLY
  7896.            Line Input #BatchFile, in_str
  7897.             GoTo skip_in_str
  7898.         End If
  7899.             in_str = InputBox("String to change", "From string Prompt", , xx1 - offset1, yy1 - offset2)
  7900. skip_in_str:                        '27 October 2004
  7901.    End If
  7902.     If case_yes <> "Y" Then
  7903.         If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  7904. '            xtemp = InputBox("27 october 2004 TESTING 7 " + ttt, , , 4400, 4500) 'TESTING ONLY
  7905.            Line Input #BatchFile, in_str
  7906. '            in_str = UCase(in_str)
  7907.            GoTo skip_in_str1
  7908.         End If
  7909.             in_str = UCase(InputBox("String to change", "From string Prompt", , xx1 - offset1, yy1 - offset2))
  7910. skip_in_str1:                       '27 October 2004
  7911.    End If
  7912. '30 October 2004 this worked for blank lines comming in in the batch file. Now it does not do much else on blanks
  7913. '30 October 2004    If in_str = "" Or Left(UCase(in_str), 4) = "END*" Then
  7914. '03 November 2004    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" And in_str = "" Then in_str = " "   '30 October 2004
  7915.    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then
  7916.         temptemp = in_str           '03 November 2004
  7917. check_tab:                          '03 November 2004
  7918.        tt = InStr(temptemp, Chr(9)) 'check for tabs
  7919.        If tt = 0 Then
  7920.             GoTo past_tab
  7921.         End If
  7922.         in_str = Left(temptemp, tt - 1) + "    " + Mid(temptemp, tt + 1) 'replace tab with spaces (consistancy of code too)
  7923.        GoTo check_tab
  7924. past_tab:                           '03 November 2004
  7925.        'temptemp needed here so that tabs elsewhere are not removed (only if tabs and spaces only on line)
  7926.        If Trim(in_str) = "" And in_str = temptemp Then
  7927. '           frmproj2.Caption = " trim found " + CStr(criptcnt) '03 November 2004 testing only
  7928. '            new_delay_sec = 5      '03 November 2004  testing only
  7929. '            GoSub line_30300        '03 November 2004  testing only
  7930.        GoTo line_29003   '03 November 2004
  7931.        End If          '03 November 2004
  7932.    End If
  7933.     If in_str = "" Or Left(UCase(in_str), 4) = "END*" Then
  7934. '            xtemp = InputBox("27 october 2004 TESTING 7a " + in_str, , , 4400, 4500) 'TESTING ONLY
  7935.        GoTo line_29005
  7936.     End If
  7937.     Print in_str; " ";
  7938. '    ttt1 = Len(in_str)
  7939.        If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then    '27 October 2004
  7940. '            xtemp = InputBox("27 october 2004 TESTING 8 " + ttt, , , 4400, 4500) 'TESTING ONLY
  7941. '            Line Input #BatchFile, out_str
  7942. '03 November 2004            out_str = "nothing"             '27 October 2004 testing only
  7943.            out_str = " "    '03 November 2004
  7944.            GoTo skip_out_str
  7945.         End If                                      '27 October 2004
  7946.    out_str = InputBox("New string", "To string Prompt", , xx1 - offset1, yy1 - offset2)
  7947. skip_out_str:                       '27 October 2004
  7948. '            xtemp = InputBox("27 october 2004 TESTING 8a *" + out_str + "*", , , 4400, 4500) 'TESTING ONLY
  7949.    If out_str = "" Or UCase(out_str) = "END*" Then
  7950. '            xtemp = InputBox("27 october 2004 TESTING 8b " + ttt, , , 4400, 4500) 'TESTING ONLY
  7951.        GoTo line_29005
  7952.     End If
  7953.     Print out_str
  7954.     If criptcnt Mod 20 = 0 Then
  7955.             frmproj2.Caption = " working- " + CStr(criptcnt) '28 October 2004
  7956.        Cls
  7957.     End If          '27 October 2004 clear the screen only
  7958.    criptcnt = criptcnt + 1
  7959.     cript1(criptcnt) = in_str
  7960.     cript2(criptcnt) = out_str
  7961.     cript3(criptcnt) = Len(cript1(criptcnt))
  7962. '            xtemp = InputBox("27 october 2004 TESTING 7aa " + CStr(criptcnt), , , 4400, 4500) 'TESTING ONLY
  7963. '    II = Len(out_str)
  7964. '    If Len(Cmd(19)) < 7 Then
  7965. '        Cmd(19) = "c:\replace.txt"
  7966. '    End If
  7967.    GoTo line_29003
  7968.  
  7969. line_29005:
  7970. '                xtemp = InputBox("27 october 2004 TESTING 9 " + ttt, , , 4400, 4500) 'TESTING ONLY
  7971.    If criptcnt = 0 Then
  7972.         GoTo line_29095
  7973.     End If
  7974.  
  7975.     save_line = "29005"
  7976.     Kill FileExt
  7977. line_29008:
  7978.     FileFile = FreeFile
  7979.     Open FileExt For Output Access Write As #FileFile
  7980. '    criptcnt = 1        'november 18 2000
  7981. '    cript1(1) = in_str  'november 18 2000
  7982. '    cript2(1) = out_str 'november 18 2000
  7983.    dblStart = Timer      'get the start time
  7984.    zzz_cnt = 0
  7985. line_29010:
  7986.     save_line = "29010"
  7987.     Line Input #OutFile, aaa
  7988. line_29015:         'allow for the replacement right here february 10 2001
  7989.    If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then GoTo line_29020   '27 October 2004
  7990.    tt = InStr(aaa, Chr(9)) 'check for tabs
  7991.    If tt = 0 Then
  7992.         GoTo line_29020
  7993.     End If
  7994.     'change any tabs to 4 spaces
  7995.    aaa = Left(aaa, tt - 1) + "    " + Mid(aaa, tt + 1)
  7996.     GoTo line_29015             'february 10 2001 if search and replace done do tabs
  7997. line_29020:                     'february 10 2001
  7998.    If encript = "RRR" Then
  7999.         GoSub line_29300       'do line at a time november 18 2000
  8000.    Else
  8001.     zzz_cnt = zzz_cnt + 1
  8002. '    If zzz_cnt Mod 10000 = 0 Then
  8003.    If zzz_cnt Mod 10000 = 0 Then
  8004.         DoEvents        'december 06 2001
  8005.        Print "working "; zzz_cnt; Format(Now, "ddddd ttttt")
  8006.     End If
  8007.        
  8008.         GoSub line_29400       'do line at a time november 18 2000
  8009.    End If
  8010.         yyy_cnt = yyy_cnt + 1       '28 October 2004
  8011.        If yyy_cnt Mod 100 = 0 Then
  8012.                 frmproj2.Caption = " working at " + CStr(yyy_cnt) + " of " + CStr(criptcnt) '28 October 2004
  8013.        End If          '27 October 2004
  8014.    GoTo line_29010
  8015. line_29090:
  8016.     dblEnd = Timer      'get the end time
  8017.    Print "     elap="; Format(dblEnd - dblStart, "#####0.000")
  8018.     Print "rename "; FileExt; " as "; TheFile
  8019.     If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then        '27 October 2004
  8020.            frmproj2.Caption = " total matches " + CStr(criptcnt) '27 October 2004
  8021.            new_delay_sec = 3      '27 October 2004  testing only
  8022.            GoSub line_30300        '27 October 2004  testing only
  8023.        tt1 = "N"
  8024.         GoTo skip_rename
  8025.     End If                                                  '27 October 2004
  8026.    tt1 = UCase(InputBox("total changes=" + CStr(temp2) + " rename files Y/N <N>", "Rename Prompt", , xx1 - offset1, yy1 - offset2)) 'TESTING ONLY
  8027. skip_rename:                                                '27 October 2004
  8028.    If tt1 <> "Y" Then
  8029.         tt1 = "N"
  8030.     End If
  8031.     If UCase(tt1) = "N" Then
  8032.         Close FileFile, OutFile
  8033.         GoTo line_29095
  8034.     End If
  8035.     Close FileFile, OutFile
  8036.     DoEvents
  8037.     save_line = "29092"
  8038. '    Kill "c:\oldfile.txt"
  8039.    Kill "oldfile.txt"  'december 3 2000
  8040.    DoEvents
  8041. line_29093:
  8042. '     tt1 = InputBox("minor pause", , , 4400, 4500) 'TESTING ONLY
  8043.    DoEvents
  8044. '    Name TheFile As "c:\oldfile.txt"
  8045.    Name TheFile As "oldfile.txt"   'december 3 2000
  8046.    DoEvents
  8047.     Name FileExt As TheFile
  8048.     'rename files here if Y entered
  8049. line_29095:
  8050.     DoEvents
  8051. Return
  8052.  
  8053. line_29100:     'noshow elements set up here
  8054.    save_line = "29100"
  8055.     For II = 1 To 10
  8056.         noshow(II) = ""
  8057.     Next II
  8058.     If Len(Cmd(28)) < 3 Then
  8059.         GoTo line_29190
  8060.     End If
  8061.     nocount = 0
  8062.     temps = Cmd(28) + ""
  8063. line_29150:
  8064.     save_line = "29150"
  8065.     tt = InStr(temps, " ")
  8066.     If tt = 1 Then
  8067.         temps = Right(temps, Len(temps) - 1)
  8068.         GoTo line_29150 'strip out any leading spaces
  8069.    End If
  8070.     If tt = 0 Then
  8071.         If Len(temps) > 2 Then
  8072.             nocount = nocount + 1
  8073.             noshow(nocount) = temps
  8074.  '       Print "noshow(a)="; "*"; noshow(nocount); "*"; aaa, nocount
  8075. '       tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  8076.        End If
  8077.         GoTo line_29190
  8078.     End If
  8079.     nocount = nocount + 1
  8080.     noshow(nocount) = Left(temps, tt - 1)
  8081.     temps = Right(temps, Len(temps) - tt)
  8082. '        Print "noshow(b)="; "*"; noshow(nocount); "*"; aaa, nocount
  8083. '        tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  8084.    GoTo line_29150
  8085. line_29190:
  8086.     save_line = "29190"
  8087.     For II = 1 To 10
  8088.     If Len(noshow(II)) < 3 Then
  8089.         GoTo line_29199
  8090.     End If
  8091.         temps = noshow(II) + ""
  8092.         tt = InStr(1, " ", temps)
  8093.     save_line = "29190a"
  8094.         If tt > 1 Then
  8095.             ttt1 = Len(temps) - tt
  8096.             tempss = Left(temps, ttt1)
  8097.             noshow(II) = tempss + ""
  8098.             'strip off any trailing spaces
  8099.        End If
  8100. line_29199:
  8101.     Next II
  8102.     For II = 1 To nocount
  8103. '        noshow(II) = " " + UCase(noshow(II)) + " "
  8104.        noshow(II) = UCase(noshow(II))
  8105.   '      Print "noshow(II)="; "*"; noshow(II); "*"; aaa, II
  8106.  '      tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  8107.        'put 1 space before and 1 after only
  8108.    Next II
  8109. Return
  8110. line_29200:     'screen saver logic here
  8111.    screencount = 0
  8112.     save_line = "29200"
  8113.     For II = 1 To 10
  8114.         screensave(II) = ""
  8115.     Next II
  8116.     If Len(Cmd(26)) < 3 Then
  8117.         GoTo line_29290
  8118.     End If
  8119. '    nocount = 0
  8120.    temps = Cmd(26) + ""
  8121. line_29250:
  8122.     save_line = "29250"
  8123.     tt = InStr(temps, " ")
  8124.     If tt = 1 Then
  8125.         temps = Right(temps, Len(temps) - 1)
  8126.         GoTo line_29250 'strip out any leading spaces
  8127.    End If
  8128.     If tt = 0 Then
  8129.         If Len(temps) > 2 Then
  8130.             screencount = screencount + 1
  8131.             screensave(screencount) = temps
  8132. '        Print "screensave(a)="; "*"; screensave(screencount); "*"; aaa; screencount
  8133. '        tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  8134.        End If
  8135.         GoTo line_29290
  8136.     End If
  8137.     screencount = screencount + 1
  8138.     screensave(screencount) = Left(temps, tt - 1)
  8139.     temps = Right(temps, Len(temps) - tt)
  8140.     GoTo line_29250
  8141. line_29290:
  8142.     save_line = "29290"
  8143.     For II = 1 To 10
  8144.     If Len(screensave(II)) < 3 Then
  8145.         GoTo line_29299
  8146.     End If
  8147.         temps = screensave(II) + ""
  8148.         tt = InStr(1, " ", temps)
  8149.     save_line = "29290a"
  8150.         If tt > 1 Then
  8151.             ttt1 = Len(temps) - tt
  8152.             tempss = Left(temps, ttt1)
  8153.             screensave(II) = tempss + ""
  8154.             'strip off any trailing spaces
  8155.        End If
  8156. line_29299:
  8157.     Next II
  8158.     For II = 1 To screencount
  8159. '        screensave(II) = " " + UCase(screensave(II)) + " "
  8160.        screensave(II) = UCase(screensave(II))
  8161.         'put 1 space before and 1 after only
  8162.    Next II
  8163.  
  8164. Return
  8165.  
  8166. line_29300:
  8167.     changes = "NO"      'december 2 2000
  8168.    For tt = 1 To criptcnt
  8169.  '           frmproj2.Caption = " testing 444 *" + cript1(tt) + "*" + CStr(cript3(tt)) + " " + CStr(criptcnt) + " " + CStr(tt) '27 October 2004
  8170. '           new_delay_sec = 0.1      '27 October 2004  testing only
  8171. '           GoSub line_30300        '27 October 2004  testing only
  8172.    III = 1
  8173.  '       in_str = cript1(tt)
  8174. '       out_str = cript2(tt)
  8175. '        ttt1 = Len(in_str)
  8176. '        II = Len(out_str)
  8177. '        xtemp = Len(cript2(tt))
  8178.    JJ = Len(aaa)
  8179.     If case_yes = "Y" And Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then   '27 October 2004
  8180.        If aaa = cript1(tt) Then
  8181. '            frmproj2.Caption = " testing 444a " + CStr(cript3(tt)) + " " + CStr(criptcnt) '27 October 2004
  8182. '            new_delay_sec = 1       '27 October 2004  testing only
  8183. '            GoSub line_30300        '27 October 2004  testing only
  8184.            temp2 = temp2 + 1       'count of changes done
  8185.            aaa = " "
  8186.             cript1(tt) = "xyxyxyxyxyxyxyxyxy"           '27 October 2004 clear it
  8187.            GoTo line_29399                    '29 October 2004
  8188.        End If                                          '27 October 2004
  8189.    End If                                              '27 October 2004
  8190.    If case_yes = "Y" And InStr(aaa, cript1(tt)) = 0 Then
  8191. '        Print #FileFile, aaa
  8192.        GoTo line_29399
  8193.     End If
  8194.     If case_yes = "N" And Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then   '27 October 2004
  8195.        If UCase(aaa) = cript1(tt) Then
  8196. '            frmproj2.Caption = " testing 444aa " + CStr(cript3(tt)) + " " + CStr(criptcnt) '27 October 2004
  8197. '            new_delay_sec = 1       '27 October 2004  testing only
  8198. '            GoSub line_30300        '27 October 2004  testing only
  8199.            temp2 = temp2 + 1       'count of changes done
  8200.            aaa = " "
  8201.             cript1(tt) = "xyxyxyxyxyxyxyxyxy"           '27 October 2004 clear it
  8202.            GoTo line_29399                    '29 October 2004
  8203.        End If                  '27 October 2004
  8204.    End If                                              '27 October 2004
  8205.    If case_yes = "N" And InStr(UCase(aaa), cript1(tt)) = 0 Then
  8206. '        Print #FileFile, aaa
  8207.        GoTo line_29399
  8208.     End If
  8209.  
  8210. line_29320:
  8211.     If case_yes = "Y" Then
  8212.         II = InStr(III, aaa, cript1(tt))
  8213.     Else
  8214.         II = InStr(III, UCase(aaa), cript1(tt))
  8215.     End If
  8216.     If II = 0 Then
  8217. '        Print #FileFile, aaa
  8218.        GoTo line_29399
  8219.     End If
  8220.     III = II + 1
  8221.  '27 October 2004 here do some checking
  8222.    aaa = Left(aaa, II - 1) + cript2(tt) + Right(aaa, JJ + 1 - II - cript3(tt))
  8223.     JJ = Len(aaa)       'november 13 2000
  8224. '        Print aaa
  8225. '        Print tt, JJ, cript3(tt), II
  8226. '        tt1 = InputBox("testing", , , 4400, 4500)  'TESTING ONLY
  8227. '    If UCase(tt1) = "X" Then
  8228. '        GoTo line_29090
  8229. '    End If
  8230.    temp2 = temp2 + 1       'count of changes done
  8231.    changes = "YES"         'december 2 2000
  8232.    GoTo line_29320
  8233.  
  8234. line_29399:
  8235.     Next tt
  8236.     If changes = "YES" And crlf = "NO" Then
  8237.         Print #FileFile, aaa;
  8238.     Else
  8239.     If Left(UCase(Cmd(71)), 11) = "BATCHFILE==" Then   '03 November 2004
  8240.        If Len(Trim(aaa)) < 1 Then
  8241.         Else
  8242.             Print #FileFile, aaa
  8243.         End If              '03 November 2004
  8244.    Else
  8245.         Print #FileFile, aaa
  8246.    
  8247.     End If                  '03 November 2004 keep all the blank lines from being put to output file
  8248.    End If              'do not print crlf if sss requested
  8249.                        'instead of rrr ie for the From:
  8250.                        'change december 2 2000
  8251.    
  8252.     Return
  8253.  
  8254. line_29400:             'november 19 2000
  8255. '   For tt = 1 To criptcnt
  8256. '    cript3(tt) = Len(cript1(tt))
  8257. '    Next tt
  8258. '    save_line = "29400"
  8259.    tt1 = ""        'the output string after translation
  8260.    JJ = Len(aaa)
  8261. line_29410:
  8262.     FFF = ""        'indicate if search string found.
  8263.    xtemp = Left(aaa, 1)
  8264.     For tt = 1 To criptcnt
  8265. '        in_str = cript1(tt)
  8266. '        out_str = cript2(tt)
  8267. '        ttt1 = Len(in_str)
  8268. '    If cript3(tt) > JJ Then        'november 23 2000
  8269. '        GoTo line_29450   'more characters than in string november 23 2000
  8270. '    End If                         'november 23 2000
  8271. '    If case_yes = "N" Then GoTo line_29430
  8272. '    If cript3(tt) = 1 And xtemp <> cript1(tt) Then GoTo line_29450 'november 23 2000
  8273. '    If Left(aaa, cript3(tt)) <> cript1(tt) Then november 23 2000 see following line
  8274. '    If Left(aaa, 1) <> cript1(tt) Then
  8275.    If xtemp <> cript1(tt) Then
  8276.         GoTo line_29450
  8277.     End If
  8278. '    GoTo line_29440
  8279. 'line_29430:
  8280. '    If cript3(tt) = 1 And UCase(xtemp) <> UCase(cript1(tt)) Then GoTo line_29450
  8281. '    If UCase(Left(aaa, cript3(tt))) <> UCase(cript1(tt)) Then
  8282. '        GoTo line_29450
  8283. '    End If
  8284. line_29440:
  8285. '    aaa = Right(aaa, JJ - cript3(tt))  'november 23 2000
  8286.    aaa = Right(aaa, JJ - 1)
  8287.     FFF = "Y"
  8288.     GoTo line_29460
  8289. line_29450:
  8290.    
  8291.     Next tt
  8292.  
  8293. line_29460:
  8294.     If FFF <> "Y" Then
  8295.         tt1 = tt1 + Left(aaa, 1)
  8296.         If JJ > 1 Then
  8297.             aaa = Right(aaa, JJ - 1)
  8298.         Else
  8299.             aaa = ""
  8300.         End If
  8301.     Else
  8302.         temp2 = temp2 + 1
  8303.         tt1 = tt1 + cript2(tt)
  8304.     End If
  8305. '    JJ = Len(aaa)      'november 23 2000
  8306.    JJ = JJ - 1
  8307.     If JJ > 0 Then
  8308.         GoTo line_29410
  8309.     End If
  8310.    
  8311.     If encript <> "MYSTUF" Then
  8312.         Print #FileFile, tt1
  8313.     Else
  8314.         aaa = tt1
  8315.     End If
  8316.     Return
  8317.  
  8318. line_29500:
  8319.     save_line = "29500"
  8320.     FileFile = FreeFile
  8321.     Open FileExt For Input As #FileFile
  8322.     temp2 = 0
  8323.     criptcnt = 0
  8324.     save_line = "29510"
  8325. line_29510:
  8326.     Line Input #FileFile, aaa
  8327.     temp2 = temp2 + 1
  8328.     Line Input #FileFile, tt1
  8329.     temp2 = temp2 + 1
  8330.     criptcnt = criptcnt + 1
  8331.     If encript = "CRIPT" Then
  8332.         cript1(criptcnt) = aaa
  8333.         cript2(criptcnt) = tt1
  8334.     Else
  8335.         cript1(criptcnt) = tt1
  8336.         cript2(criptcnt) = aaa
  8337.     End If
  8338.     GoTo line_29510
  8339. line_29520:
  8340.     save_line = "29520"
  8341.     Close #FileFile
  8342.     For tt = 1 To criptcnt
  8343.         cript3(tt) = Len(cript1(tt))
  8344.     Next tt
  8345.  
  8346. '    tempss = InputBox("cript.txt read" + CStr(criptcnt), , , 4400, 4500) 'TESTING ONLY
  8347.    Return          'november 20 2000 read in the encription file info.
  8348.  
  8349.    
  8350. 'timer subroutine set delay_sec to seconds to hold wait sleep
  8351. line_30000:
  8352.     DoEvents
  8353.    
  8354. 'january 23 2002    If delay_sec < 1 Then
  8355. '    tempss = InputBox("testing delay" + Format(delay_sec, "###0.000"), , , 4400, 4500) 'january 23 2002
  8356. '04 february 2003 comment out below want to set WAIT=0 for avi file displays
  8357. '    If delay_sec < 0.0001 Then delay_sec = Val(Cmd(27)) '02 may 2002
  8358.    If delay_sec < 0.00001 Then
  8359.         GoTo line_30020
  8360.     End If
  8361.            
  8362.        
  8363.     '29 September 2003 add or subtract amount in cmd() to delay_sec
  8364.    If adjust_sec <> 0 Then
  8365.         delay_sec = delay_sec + adjust_sec
  8366.     End If                      '29 September 2003
  8367.    temp_cnt1 = 0       '12 April 2004
  8368. line_30005:
  8369.            
  8370. '12 April 2004
  8371.  
  8372.     If slomo = False And mpg_file = "YES" Then
  8373.             i = mciSendString("status video1 position", vs, 255, 0)
  8374.             temp3 = InStr(vs, Chr$(0)) '19 March 2004
  8375.            temp_cnt = Val(Left(vs, temp3 - 1)) '19 March 2004
  8376. '12 April 2004        If line_start_point + (delay_sec * 1000) >= temp_cnt + 0.01 Then
  8377. '14 April 2004 this is where a problem cropped up (just adding 0.1 fixed it??)
  8378. '14 April 2004        If line_start_point + (delay_sec * 1000) >= temp_cnt + 0.01 And temp_cnt  > temp_cnt1 Then
  8379.        If line_start_point + (delay_sec * 1000) >= temp_cnt + 0.01 And temp_cnt + 0.1 > temp_cnt1 Then
  8380. '03 September 2004        If line_start_point + (delay_sec * 1000) >= temp_cnt + 0.01 And temp_cnt > temp_cnt1 + 0.001 Then
  8381.            DoEvents        '10 April 2004 allow for interrupt in full speed video....
  8382.            temp_cnt1 = temp_cnt '12 April 2004
  8383.            GoTo line_30005
  8384.         End If
  8385.         i = mciSendString("pause video1", 0&, 0, 0)
  8386.         mpg_file = "NO"         '24 March 2004
  8387.        DoEvents
  8388. '            frmproj2.Caption = "test 24 March 2004  " + CStr(line_start_point) + " " + CStr(delay_sec * 1000) + " " + CStr(temp_cnt) '24 March 2004
  8389. '    tempss = InputBox("testing delay" + Format(delay_sec, "###0.000"), , , 4400, 4500) 'january 23 2002
  8390.        GoTo line_30020         '24 March 2004...
  8391.    End If
  8392.        
  8393. line_30012:
  8394. '    If slomo <> True Then   '08 January 2004 so when enter hit it will be in the pause routine
  8395. '        DoEvents                '03 november 2002 turn off when debugging problems etc
  8396. '        DoEvents                '23 September 2003 add another just for more sharing...
  8397. '    End If                  '08 January 2004 just the if statement around the doevents added
  8398.  
  8399. '24 March 2004 2004======================================
  8400.    If slomo Then
  8401.  
  8402. line_30012a:
  8403.             i = mciSendString("status video1 position", vs, 255, 0)
  8404.             DoEvents
  8405.             temp3 = InStr(vs, Chr$(0)) '10 April 2004
  8406.            temp_cnt = Val(Left(vs, temp3 - 1)) '10 April 2004
  8407. '10 April 2004            temp_cnt = Val(vs)
  8408.            If temp_cnt < last_vs + pad_time Then GoTo line_30012a
  8409.            
  8410.             tempdata = CStr(temp_cnt)
  8411.             last_vs = Val(vs)
  8412.  
  8413.         If replay_yn = True Then
  8414.             If temp_cnt >= replay_pos Then
  8415. '                tempss = InputBox("testing replay position " + CStr(temp_cnt), , , 4400, 4500) '10 April 2004
  8416.                play_speed = hold_speed '10 April 2004
  8417.                replay_yn = False       '10 April 2004
  8418.            End If
  8419.         End If                      '10 April 2004
  8420.          
  8421.         If UCase(Left(Cmd(63), 8)) = "SHOWELAP" Then
  8422.             DoEvents
  8423.             frmproj2.Caption = LCase(temptemp) + " (Replay by Spectate Swamp) " + tempdata + " of " + CStr(video_length) '18 February 2004
  8424.            DoEvents
  8425.             tempdata = ""
  8426.         End If
  8427.         i = mciSendString("pause video1", 0&, 0, 0)
  8428.         DoEvents
  8429.         new_delay_sec = (1000 / play_speed) * (pad_time / 1000)
  8430. '            frmproj2.Caption = "test 24 March 2004  " + CStr(new_delay_sec) '24 February 2004
  8431.        
  8432.         motion_in = Timer       '01 March 2004 changed from slomo_in etc
  8433. line_30012b:
  8434. 'try and slow the delay for character pause. it would not do less than 1/10 sec or so?
  8435.    If new_delay_sec > 0.02 Then     '05 February 2008
  8436.          DoEvents
  8437.         motion_out = Timer
  8438.         If motion_out + 43200 < motion_in Then
  8439.             motion_in = motion_in - 86400
  8440.         End If
  8441.         If motion_out - motion_in < new_delay_sec Then
  8442.             GoTo line_30012b
  8443.         End If
  8444.     Else                               ' 05 February 2008
  8445.        temp_cnt1 = Int(new_delay_sec * 100000)
  8446.         For temp_cnt = 1 To temp_cnt1
  8447.             For II = 1 To 10
  8448.                 DoEvents
  8449.             Next II
  8450.         Next temp_cnt
  8451.    
  8452.     End If                              '05 February 2008
  8453.        
  8454. '26 March 2004 try and back it up a bit before resume. that should make it even slower...
  8455. '         i = mciSendString("seek video1 " + CStr(last_vs - pad_time), 0&, 0, 0) '26 March 2004
  8456.         i = mciSendString("resume video1", 0&, 0, 0)
  8457.         DoEvents
  8458.     End If                  'end of "If slomo then
  8459.    
  8460.     DoEvents        '09 March 2004
  8461. '    slomo = True    '19 March 2004  just so that full speed ie=1000 will get the elapsed displayed
  8462. '        slomo = True '14 April 2004 testing only
  8463.        'handy for testing too
  8464.        
  8465.     If slomo Then
  8466.         DoEvents        '16 March 2004
  8467.        i = mciSendString("status video1 position", vs, 255, 0) '04 March 2004
  8468.        temp_double = Val(Trim(vs))         '18 March 2004
  8469.        tempdata = CStr(temp_double)             '17 March 2004
  8470.        If temp_double < 1 Then
  8471.             xtemp = InputBox(" test 18 March 2004 " + CStr(line_start_point + (delay_sec * 1000)) + " > " + Trim(vs), , xx1 - offset1, yy1 - offset2)
  8472.         End If                  '18 March 2004
  8473.        
  8474.         DoEvents
  8475.        
  8476. '13 April 2004 need to check temp_cnt against video_length here and ship out meebee
  8477.        If temp_double >= video_length - 100 Then
  8478.             GoTo line_30020
  8479.         End If                  '13 April 2004
  8480.        
  8481.         If line_start_point + (delay_sec * 1000) <= Val(vs) + 0.01 Then
  8482. '        xtemp = InputBox(" test 24 March 2004 " + CStr(line_start_point) + "  " + CStr((line_delay_sec * 1000)) + " <= " + Trim(vs), , xx1 - offset1, yy1 - offset2)   'test
  8483.            GoTo line_30020
  8484.         Else
  8485.             GoTo line_30012
  8486.         End If
  8487.     End If              '04 March 2004
  8488.  
  8489. ' 14 January 2004 test show the play_speed here???
  8490. '        xtemp = InputBox(" test 14 january 2004 " + CStr(play_speed), "testing Prompt   ", , xx1 - offset1, yy1 - offset2) 'test
  8491.  
  8492.     GoTo line_30020 'january 23 2002 ie just skip the logic below every time
  8493. line_30018:         'february 08 2002 deactivated as above
  8494.    ampm = ""
  8495.     temps = Format(Now, "ddddd ttttt") 'start timer time
  8496. '    Print "start timeer="; temps
  8497.    temp1 = InStr(2, temps, " ")
  8498.     temps = Right(temps, Len(temps) - temp1) 'just the hrs and minutes
  8499.    temp1 = InStr(2, temps, "M")    'check if US format
  8500.    If temp1 <> 0 Then
  8501. '        Print tt, JJ, ttt1
  8502. '       tt1 = InputBox("PM AM found", , , 4400, 4500)  'TESTING ONLY
  8503.        temp2 = InStr(2, temps, "PM")
  8504.         If temp2 <> 0 Then
  8505.             ampm = "PM"
  8506.         End If
  8507.         If temp2 = 0 Then
  8508.             ampm = "AM"
  8509.         End If
  8510.         temps = Left(temps, Len(temps) - 3) 'strip of AM PM
  8511.    End If
  8512.     temp1 = InStr(1, temps, ":")
  8513.     hhour = Left(temps, temp1 - 1)
  8514.     temps = Right(temps, Len(temps) - temp1)
  8515.     temp1 = InStr(1, temps, ":")
  8516.     mminute = Left(temps, temp1 - 1)
  8517.     ssecond = Right(temps, Len(temps) - temp1)
  8518.     hhhour = Val(hhour)
  8519.     mmminute = Val(mminute)
  8520.     sssecond = Val(ssecond)
  8521.     If ampm = "PM" Then
  8522.         hhhour = hhhour + 12
  8523.     End If
  8524.     temp11 = hhhour * 3600 + mmminute * 60 + sssecond  'moved from below march 14 2001
  8525.  
  8526. line_30010:
  8527.     DoEvents            '03 november 2002 turn off when debugging (other jobs on computer ??)
  8528.    save_line = "30010"
  8529.     ampm = ""
  8530.     temps = Format(Now, "ddddd ttttt") 'current time
  8531.    temp1 = InStr(2, temps, " ")
  8532.     temps = Right(temps, Len(temps) - temp1) 'just the hrs and minutes
  8533.    temp1 = InStr(2, temps, "M")    'check if US format
  8534.    If temp1 <> 0 Then
  8535.         temp2 = InStr(2, temps, "PM")
  8536.         If temp2 <> 0 Then
  8537.             ampm = "PM"
  8538.         End If
  8539.         If temp2 = 0 Then
  8540.             ampm = "AM"
  8541.         End If
  8542.         temps = Left(temps, Len(temps) - 3) 'strip of AM PM
  8543.    End If
  8544.     temp1 = InStr(1, temps, ":")
  8545.     hhour = Left(temps, temp1 - 1)
  8546.     temps = Right(temps, Len(temps) - temp1)
  8547.     temp1 = InStr(1, temps, ":")
  8548.     mminute = Left(temps, temp1 - 1)
  8549.     ssecond = Right(temps, Len(temps) - temp1)
  8550.     chhour = Val(hhour)
  8551.     cmminute = Val(mminute)
  8552.     cssecond = Val(ssecond)
  8553.     If ampm = "PM" Then
  8554.         chhour = chhour + 12
  8555.     End If
  8556.     If chhour < hhhour Then
  8557.         chhour = chhour + 23
  8558.     End If
  8559.  
  8560.  
  8561. '    If cmminute < mmminute Then
  8562. 'march 14 2001        cmminute = cmminute + 59
  8563. '    End If
  8564. '    If cssecond < sssecond Then
  8565. 'march 14 2001        cssecond = cssecond + 59
  8566. '    End If
  8567. '    temp1 = hhhour * 3600 + mmminute * 60 + sssecond  'could move this out of the loop?
  8568.    temp2 = chhour * 3600 + cmminute * 60 + cssecond
  8569. '    If temp2 < temp1 + delay_sec Then      'march 14 2001
  8570.    If temp2 < temp11 + delay_sec Then
  8571.         GoTo line_30010
  8572.     End If
  8573.      '   Set Picture = LoadPicture() 'clear any picture
  8574. line_30020:
  8575. '16 August 2004
  8576.    If motion_yn <> "YES" Then   '16 August 2004
  8577.        new_delay_sec = delay_sec   '16 August 2004
  8578.        GoSub line_30300        '16 August 2004
  8579.    End If                  '16 August 2004
  8580. '    frmproj2.Caption = "delay_sec=" + CStr(delay_sec) '16 August 2004
  8581.    last_vs = 0
  8582.     delay_sec = Val(Cmd(27))    '25 July 2003
  8583.    DoEvents                '03 november 2002 deactivate when in debug mode for more control??
  8584.    
  8585.     Return
  8586.    
  8587. Return
  8588.  
  8589. line_30300:     'mini timer routine 26 February 2004
  8590.    
  8591.         motion_in = Timer       '01 March 2004 changed from slomo_in etc
  8592. line_30316:
  8593. 'try and slow the delay for character pause. it would not do less than 1/10 sec or so?
  8594.    If new_delay_sec > 0.02 Then     '05 February 2008
  8595.          DoEvents
  8596.         motion_out = Timer
  8597.         If motion_out + 43200 < motion_in Then
  8598.             motion_in = motion_in - 86400
  8599.         End If
  8600.         If motion_out - motion_in < new_delay_sec Then
  8601.             GoTo line_30316
  8602.         End If
  8603.     Else                               ' 05 February 2008
  8604.        temp_cnt1 = Int(new_delay_sec * 100000)
  8605.         For temp_cnt = 1 To temp_cnt1
  8606.             For II = 1 To 10
  8607.                 DoEvents
  8608.             Next II
  8609.         Next temp_cnt
  8610.    
  8611.     End If                              '05 February 2008
  8612.    
  8613. Return                                  '26 February 2004
  8614.  
  8615. '     W R I T E  C O N T R O L . T X T  H E R E
  8616. 'control.txt control control.txt control.txt control.txt control control file here
  8617. 'create control file open for output etc
  8618. 'write to the control file here
  8619. line_30500:     'november 03 2000 control.txt and control1.txt file create print
  8620.    save_line = "30500"
  8621.     If visual_impared <> "YES" Then
  8622.         Print #FileFile, "34"    '     lines per page   1
  8623.    End If
  8624.     If visual_impared = "YES" Then
  8625.         Print #FileFile, "11"    '     lines per page   1
  8626.    End If
  8627.     If visual_impared <> "YES" Then
  8628.         Print #FileFile, "12"    '     font size        2
  8629.    End If
  8630.     If visual_impared = "YES" Then
  8631.         Print #FileFile, "36"    '     font size        2
  8632.    End If
  8633.     If visual_impared <> "YES" Then
  8634.         Print #FileFile, "3"    ' aqua     background color 3
  8635.    End If
  8636.     If visual_impared = "YES" Then
  8637.         Print #FileFile, "6"   ' purple 3   background color 6=brown or gold
  8638.    End If
  8639.     If visual_impared <> "YES" Then
  8640.         Print #FileFile, "15"   ' white     text color       4
  8641.    End If
  8642.     If visual_impared = "YES" Then
  8643.         Print #FileFile, "0"    ' black    text color       4
  8644.    End If
  8645. 'midway4 thru the program appx'==================================================================================
  8646.    
  8647.         Print #FileFile, "14"    '     Hi-lite color    5
  8648.        Print #FileFile, "/"     '     seperator chr    6
  8649.        Print #FileFile, "dateno"  '  or dateyes        7
  8650.        Print #FileFile, "c:\windows\explorer.exe" 'jpg 8  most have this file...
  8651. '        Print #FileFile, "c:\winnt\explorer.exe" 'jpg 8
  8652. '17 october 2002 made the change below to prevent system from crashing without explorer
  8653. 'see "photo 6b-1" display
  8654. '         Print #FileFile, "c:\program files\accessories\wordpad.exe" 'jpg 8 17 october 2002
  8655.        Print #FileFile, "c:\PROGRAM FILES\ACCESSORIES\MSPAINT.EXE"  '  bmp disp  9
  8656.        Print #FileFile, "c:\PROGRAM FILES\ACCESSORIES\WORDPAD.EXE"  '  text chg 10
  8657. '        Print #FileFile, "c:\PROGRAM FILES\windows nt\ACCESSORIES\WORDPAD.EXE"  '  text chg 10
  8658. '        Print #FileFile, "c:\files.txt"    ' Files     11
  8659. '        Print #FileFile, "c:\search.txt"   '  search   12
  8660. '        Print #FileFile, "c:\temp.txt"     'displayed  13
  8661.        Print #FileFile, "files.txt"    ' Files     11 december 3 2000
  8662.        Print #FileFile, "search.txt"   '  search   12 december 3 2000
  8663.        Print #FileFile, "10"    'over_lap on line_len january 10 2001 13
  8664.        Print #FileFile, "enterdateyes" 'start date on 14
  8665.        Print #FileFile, "exitdateyesno"  'end date on   15
  8666.        Print #FileFile, "C:\PROGRAM FILES\Microsoft Office\Office\MSPUB.EXE"      'default drive 3    16
  8667.        Print #FileFile, "13000"    'xx1 P1 prompt      17
  8668.        Print #FileFile, "10700"    'yy1 P1 prompt      18
  8669. '        Print #FileFile, "c:\replace.txt" 'search replace 19
  8670.        Print #FileFile, "replace.txt" 'search replace 19 december 3 2000
  8671.        Print #FileFile, "P"       'option default    20 see item cmd(42)
  8672.    If visual_impared <> "YES" Then
  8673.         Print #FileFile, "82"       'wrap line length  21
  8674.    End If
  8675.     If visual_impared = "YES" Then
  8676.         Print #FileFile, "40"       'wrap line length  21
  8677.    End If
  8678.     If visual_impared <> "YES" Then
  8679.         Print #FileFile, "16"       'context lines     22
  8680.    End If
  8681.    
  8682.     If visual_impared = "YES" Then
  8683.         Print #FileFile, "3"       'context lines     22
  8684.    End If
  8685.     'when adding new elements to the control.txt file add the detail notes here comment it well
  8686.        Print #FileFile, "c:\search\tempfold\"       'photo copy directory   23 march 17 2001
  8687.        Print #FileFile, "xxx.c:\family1\scn000"    'vvv paste string on entry 24
  8688.        Print #FileFile, " photo 1980 "    'ggg paste string on entry 25
  8689.        Print #FileFile, "photo"    'search string for screen saver 26
  8690.        Print #FileFile, "4"       'default sleep time for screen saver 27
  8691.        Print #FileFile, "noshow mpotj"    ' no show element skip pics with these 28
  8692.        Print #FileFile, "10"    ' 29 secondary display color line green (12 = red)
  8693.        Print #FileFile, "Y"    ' 30 close out form Y/N
  8694.        Print #FileFile, "xxx."    ' 31 if this exists hilite it hilite_this
  8695. '        Print #FileFile, "c:\cript.txt"    'encription control file 32
  8696.        Print #FileFile, "cript.txt"    'encription control file 32 december 3 2000
  8697.        Print #FileFile, "PHOTO"    ' default search string on start 33 was "D" before
  8698.        Print #FileFile, "5"    ' context extract window in lines of display january 01 2001 34
  8699.        Print #FileFile, "c:\"    ' 35 the input directory for the gf option
  8700. '19 September 2004        Print #FileFile, "ALL"    ' 36 jpg bmp tif etc etc
  8701.        Print #FileFile, "JPG"    ' 36 jpg bmp tif etc etc
  8702.        Print #FileFile, "newphotos.txt"    ' 37 using gf to get files they are catalogued here
  8703.        Print #FileFile, "stretch"    ' 38 stretch or normal display p1 or p2
  8704.        Print #FileFile, "noautoredraw"    ' 39 allows for screen refresh between sessions
  8705.        Print #FileFile, "A:\ C:\ "    ' 40 Cmd(40) allow for program to run from a non writeable cd (if app.path
  8706.                             'not in list then don't update files or search or control files
  8707.                             '20 july 2002
  8708.        Print #FileFile, "WW"       '41 cmd(41) if photo file default to this as option prompt#2
  8709.        Print #FileFile, "Y"        '42 cmd(42) if text file default to this as option prompt #2
  8710.        
  8711.         Print #FileFile, "c:\winnt\explorer.exe" '43    see #8 above
  8712.        Print #FileFile, "c:\PROGRAM FILES\windows nt\ACCESSORIES\WORDPAD.EXE"  '  44 see #10 above
  8713.        Print #FileFile, "SPECIAL"    ' 45  AUTO RUN PROGRAM CHECK
  8714.        Print #FileFile, "1"    ' 46    FIRST PROMPT FILE SELECT IE #1 FILE
  8715.        Print #FileFile, "WW"    ' 47 SEARCH OPTIONS allow for "TT2.5 RAND P2 WW"
  8716.        Print #FileFile, "PHOTO"    ' 48    SEARCH STRING FOR AUTO RUN
  8717.        Print #FileFile, "NORANDOM"    ' 49 RANDOM OR NORANDOM ON THE PHOTO SEARCH 09 december 2002
  8718.        Print #FileFile, "SHOWFILES"    ' 50 ON MERGED FILES SHOW OR NOT THE FILE NAME IN THE CAPTION AREA
  8719.        Print #FileFile, "1084"    ' 51 avi file size x
  8720.        Print #FileFile, "800"    ' 52  avi file size y
  8721.        Print #FileFile, "SHOWVIDEO"    ' 53 set to SHOWVIDEO if avi installed 10 february 2003
  8722.        Print #FileFile, "SHOWDUPS"    ' 54   28 FEBRUARY 2003
  8723. 'vvversion make changes here to add to the control files...
  8724.        Print #FileFile, "00"    ' 55 Context Clear line count 18 march 2003 ver=1.01
  8725.        Print #FileFile, "PHOTO_DETAIL"    ' 56 Display photo detail info on pictures must be normal not stretch ie image control element
  8726.                                            'ver=1.02 above photo_detail
  8727.        Print #FileFile, "noSHOWTIME"         ' 57 ver=1.03 time display on off switch
  8728.        Print #FileFile, "noDEFAULT_TO_CD"    ' 58 ver=1.06 if set then default to cd over-ride drive #
  8729.        Print #FileFile, "0.00"            ' 59 Adjust wait time by this value
  8730.        Print #FileFile, "0.00"    ' 60 freeze_sec if set for mpeg files only
  8731.        Print #FileFile, "SETSPEED1000"    ' 61 to allow for switching set speed option off 30 October 2003 1000 = full speed 500=1/2
  8732.        Print #FileFile, "0.01668"    ' 62 slow motion segment length (with 0.01667 play for 2 hundredths)
  8733.        Print #FileFile, "noSHOWELAP"    ' 63 show the elapsed time of a video (slomo only). 11 February 2004
  8734.        Print #FileFile, "30"    ' 64  21 March 2004 pad / add to elapsed amount 30 50 100 etc
  8735.        Print #FileFile, "noRANDBEG"    ' 65 23 March 2004 randomly generate a begin point for mpg play
  8736.        Print #FileFile, "75"    ' 66 10 April 2004 the speed for the replay of a paused video
  8737.        Print #FileFile, "noTHUMB"    ' 67 14 April 2004 have as a control (handy to run CD's with rand & thumb)
  8738.        Print #FileFile, "noEOF_STOP"    ' 68 12 September 2004 (WW)allow for backgrd jobs to halt after 1 pass cmd(68)
  8739.        Print #FileFile, "noHIT_STOP"    ' 69 17 September 2004 (PP)allow for backgrd jobs to halt after first match
  8740.        Print #FileFile, "noFOREGROUND"  ' 70 17 September 2004   have the second job get focus ie Foreground & hi-lited
  8741.        Print #FileFile, "noBATCHFILE==BATCHFILE.TXT"    ' 71 27 October 2004 allow for batch input especially for rrr search and replace
  8742.        Print #FileFile, "noRESULTS.TXT"    ' 72 08 November 2004 save a play list for video, pics, music handy to check previously played segment.
  8743.        Print #FileFile, "noFILESWITCH"    ' 73 22 November 2004 when control file switches switch the file too?
  8744.        Print #FileFile, "noEOFCMD==CHGFILE.TXT"    ' 74 26 November 2004 on end of file go to this file instead of loop
  8745.        Print #FileFile, "VIDEOSTOP"    ' 75 12 December 2004 used for dvd and cds do not allow interrupt use the wait command
  8746.        Print #FileFile, "noLINEPAUSE==0.65"    ' 76 24 December 2004 on each print line allow for a delay per line (like scrolling text)
  8747.        Print #FileFile, "noCHARACTERPAUSE==.0333"    ' 77 03 January 2005 allow for characters to be displayed 1 at a time if easy
  8748.        Print #FileFile, "HTM, FRM, CLS, ASPX, "    ' 78  07 January 2005 allow other text type formats to be merged.
  8749.        Print #FileFile, ""    ' 79
  8750.        Print #FileFile, ""    ' 80
  8751.        Print #FileFile, ""    ' 81
  8752.        Print #FileFile, ""    ' 82
  8753.        Print #FileFile, ""    ' 83
  8754.        Print #FileFile, ""    ' 84
  8755.        Print #FileFile, ""    ' 85
  8756.        Print #FileFile, ""    ' 86
  8757.        Print #FileFile, ""    ' 87
  8758.        Print #FileFile, ""    ' 88
  8759.        Print #FileFile, ""    ' 89
  8760.        Print #FileFile, ""    ' 90
  8761.        Print #FileFile, ""    ' 91
  8762.        Print #FileFile, ""    ' 92
  8763.        Print #FileFile, ""    ' 93
  8764.        Print #FileFile, ""    ' 94
  8765.        Print #FileFile, ""    ' 95
  8766.        Print #FileFile, ""    ' 96
  8767.        Print #FileFile, ""    ' 97
  8768.        Print #FileFile, ""    ' 98
  8769.        Print #FileFile, ""    ' 99
  8770.        Print #FileFile, ""    ' 100
  8771.        Close FileFile
  8772.  
  8773. Return
  8774.  
  8775. line_30600:         'january 09 2001
  8776.        'crop incomming file to 120 or some other line length
  8777.        xtemp = Cmd(19)
  8778.         GoSub line_16000
  8779. '            save_line = "16100-7"  '18 March 2007 testing only only
  8780.        GoSub line_16100    'january 09 2001
  8781.        crop_len = Val(Cmd(21)) - 2    'the default
  8782.        'the crop_len is reduced by 2 as the display portion of program always loads
  8783.        'a space in front. One wants to do the break 1 space before that so that
  8784.        'display doesn't do another line break  january 13 2001
  8785.        xtemp = InputBox("crop line length prompt", "test", CStr(crop_len), xx1 - offset1, yy1 - offset2) '
  8786.        crop_len = Val(xtemp)
  8787.         temp2 = 0
  8788.         Open TheFile For Input As #OutFile
  8789.  
  8790.         save_line = "30610"
  8791.         dblStart = Timer    'get the start time
  8792. line_30610:
  8793.         Line Input #OutFile, aaa
  8794. line_30612:
  8795.     'might want to remove other odd ball characters here too todo **vip**
  8796.    tt = InStr(aaa, Chr(9)) 'check for tabs
  8797.    If tt = 0 Then
  8798.         GoTo line_30620
  8799.     End If
  8800.     'change any tabs to 4 spaces
  8801.    aaa = Left(aaa, tt - 1) + "    " + Right(aaa, Len(aaa) - tt)
  8802.     GoTo line_30612
  8803.  
  8804. line_30620:
  8805.     'below get rid of all trailing spaces
  8806.    II = Len(aaa)
  8807.     If Right(data_aaa, 1) = " " Then
  8808.         aaa = Left(aaa, II - 1)
  8809.         GoTo line_30620
  8810.     End If
  8811. line_30625:
  8812.     II = Len(aaa)
  8813.     tt = 0
  8814.     If II <= crop_len + over_lap Then GoTo line_30630
  8815.     tt = InStr(crop_len, aaa, " ")
  8816.     'if a - is going to split a word make sure that there are no nearby spaces below
  8817.    If (tt = 0 Or tt > crop_len + over_lap) And Mid(aaa, crop_len - 1, 1) = " " Then tt = crop_len - 1
  8818.     If (tt = 0 Or tt > crop_len + over_lap) And Mid(aaa, crop_len - 2, 1) = " " Then tt = crop_len - 2
  8819.     If (tt = 0 Or tt > crop_len + over_lap) And Mid(aaa, crop_len - 3, 1) = " " Then tt = crop_len - 3
  8820.     If (tt = 0 Or tt > crop_len + over_lap) And Mid(aaa, crop_len - 4, 1) = " " Then tt = crop_len - 4
  8821.     If tt = 0 Then GoTo line_30628
  8822.     If tt > crop_len + over_lap Then GoTo line_30628
  8823.     Print #ExtFile, Left(aaa, tt - 1)
  8824.     aaa = Mid(aaa, tt + 1)
  8825.     GoTo line_30625
  8826. line_30628:
  8827.     Print #ExtFile, Left(aaa, crop_len); "-"
  8828.     temp2 = temp2 + 1
  8829.     aaa = Mid(aaa, crop_len + 1)
  8830.     GoTo line_30625
  8831. line_30630:
  8832.         Print #ExtFile, aaa
  8833.         GoTo line_30610
  8834. line_30640:
  8835.     dblEnd = Timer      'get the end time
  8836.    Print "     elap="; Format(dblEnd - dblStart, "#####0.000")
  8837.     Print "rename "; FileExt; " as "; TheFile
  8838.     tt1 = UCase(InputBox("total changes=" + CStr(temp2) + " rename files Y/N <N>", "Rename Prompt", , xx1 - offset1, yy1 - offset2)) '
  8839.    If tt1 <> "Y" Then
  8840.         tt1 = "N"
  8841.     End If
  8842.     If UCase(tt1) = "N" Then
  8843.         Close OutFile, ExtFile
  8844.         GoTo line_30648
  8845.     End If
  8846.     Close OutFile, ExtFile
  8847.     DoEvents
  8848.     save_line = "30640"
  8849. '    Kill "c:\oldfile.txt"
  8850.    Kill "oldfile.txt"  'december 3 2000
  8851.    DoEvents
  8852. line_30645:
  8853. '     tt1 = InputBox("minor pause", , , 4400, 4500) 'TESTING ONLY
  8854.    DoEvents
  8855. '    Name TheFile As "c:\oldfile.txt"
  8856.    Name TheFile As "oldfile.txt"   'december 3 2000
  8857.    DoEvents
  8858.     Name FileExt As TheFile
  8859.     'rename files here if Y entered
  8860. line_30648:
  8861. Return              'january 09 2001
  8862. line_30700:         'april 01 2001   get files routine for copy from cd? to disc
  8863. 'prompt for the various options first giving defaults
  8864.    'prompt for the source of the files maybe with sub-directories etc
  8865.    Test1_str = InputBox("input directory ", "data source (your input required) ", Cmd(35), xx1 - offset1, yy1 - offset2) 'april 01 2001
  8866.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  8867.     indir = Test1_str
  8868.     If Right(indir, 1) <> "\" Then indir = indir + "\"  'june 17 2001
  8869.    If diryes = "DIR" Then GoTo line_30701    'february 20 2002
  8870.    If Cmd(35) <> indir Then
  8871.         GoSub Control_28000        'october 07 2001
  8872.        Cmd(35) = indir     'june 26 2001
  8873.        GoSub line_30800    'kill and update the control file
  8874.    End If
  8875. line_30701:
  8876.     Test1_str = UCase(Test1_str)
  8877.     If Test1_str = "C:\*" Then
  8878.         indir = Left(indir, 3)      'allow for complete directory of C:\
  8879.        GoTo line_30702
  8880.     End If              'april 11 2001
  8881.    'ensure that they arn't allowed to find every *.jpg on C drive? Below....
  8882.    'allow them to do a complete directory of any device / drive june 10 2001
  8883. 'june 10 2001    II = InStr(1, Test1_str, "C:\")
  8884.    II = 0      'june 10 2001
  8885.    If II <> 0 Then
  8886.         If InStr(II + 3, Test1_str, "\") = 0 Then
  8887.             Test1_str = InputBox("Wouldn't want to do all c:\", "never all of c drive", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  8888.            GoTo line_30700
  8889.         End If
  8890.     End If
  8891. line_30702:
  8892.     'when one wants just to catalogue them where they reside rather than copying them etc
  8893.    If diryes = "DIR" Then GoTo line_30704      'february 18 2002
  8894.    Test1_str = InputBox("inplace catalogue ", "no copy (Y/N)<Y>", "Y", xx1 - offset1, yy1 - offset2) 'april 01 2001
  8895.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  8896.     inplace = UCase(Test1_str)
  8897.     outdir = ""
  8898.     If inplace = "Y" Then GoTo line_30704
  8899.    
  8900.     'make sure the destination directory is not one of those that are listed for the *.jpg directory
  8901.    'todo **vip** see above
  8902.    Test1_str = InputBox("destination directory ", "storage area (input needed here)", Cmd(23), xx1 - offset1, yy1 - offset2) 'april 01 2001
  8903.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  8904.     outdir = Test1_str
  8905. line_30703:
  8906. 'may 28 2001    Test1_str = InputBox("2 leading characters for file ", "delete to keep file name", "x-", xx1 - offset1, yy1 - offset2) 'april 01 2001
  8907.    Test1_str = InputBox(" keep original file name Y/N  <Y> (pict for pict01 & pict02 etc)", "Output file name prompt   ", "Y", xx1 - offset1, yy1 - offset2)
  8908.     If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  8909.     leaddidg = Test1_str
  8910.     delete_file = "N"       'june 30 2001
  8911.    If Test1_str = "Y" Then leaddidg = ""   'may 28 2001
  8912. 'may 28 2001
  8913. 'june 30 2001
  8914.    Test1_str = InputBox(" DELETE original file Y/N  <N> ", "Delete original file   ", "N", xx1 - offset1, yy1 - offset2)
  8915.     If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  8916.     delete_file = UCase(Test1_str)
  8917.  
  8918. '    If Len(leaddidg) <> 2 Then GoTo line_30703 'enforce 2 characters april 05 2001
  8919. line_30704:
  8920. '19 September 2004    temps = "ALL, MPG, MP3, JPG, BMP, TXT, WMV, AVI"   'february 23 2002
  8921. 'the merge should also allow frm cls bas files as well ie the vb code merge
  8922. '28 November 2004    temps = "MPG, MP3, JPG, BMP, WMV, AVI (x to exit)"   'february 23 2002
  8923.    temps = "MPEG, MPG, MP3, JPG, BMP, WMV, AVI GIF ALL (x to exit)"   'May 25 2008
  8924. '    temps = "MPG, MP3, JPG, BMP, WMV, AVI GIF ALL (x to exit)"   'february 23 2002
  8925. '07 January 2005 allow control file to contain what formats to merge
  8926. '07 January 2005    If Mergem = "YES" Then temps = "TXT, " + temps  '19 September 2004
  8927.    If diryes = "DIR" Then temps = "ALL, " + temps  '20 September 2004
  8928.    If Mergem = "YES" Then temps = "TXT, " + Cmd(78)  '07 January 2005
  8929. '18 August 2004    If diryes = "DIR" Then temps = temps + " <A> for All"    'february 23 2002
  8930.    xtemp = Cmd(36)     'february 23 2002
  8931.    If Mergem = "YES" Then xtemp = "TXT"    '07 January 2005
  8932. '20 September 2004    If xtemp = "ALL" Then xtemp = "JPG"     '19 September 2004 (just because its out there in older versions)
  8933.    If xtemp = "ALL" And diryes <> "DIR" Then xtemp = "JPG"     '20 September 2004 (just because its out there in older versions)
  8934. '27 may 2002    xtemp = "A"         'february 23 2002
  8935.    Test1_str = InputBox("file type / extension ", temps, xtemp, xx1 - offset1, yy1 - offset2) 'april 01 2001
  8936.    Test1_str = UCase(Test1_str)
  8937.     If Test1_str = "A" Then Test1_str = "ALL"   '07 January 2005
  8938.  
  8939. '09 July 2003 over-ride the PHOTO_DETAIL setting
  8940.    '09 July 2003 "photo_detail" must be set for the data in the TAG to be used... vip
  8941.    If Test1_str = "MP3" Then
  8942.         Cmd(56) = "PHOTO_DETAIL"            '09 July 2003 needed to get the info out for now anyway
  8943.        detailyn = "PHOTO_DETAIL"           '18 November 2004
  8944.        Cmd(49) = "NORANDOM"    'this seemed to cause some problems too...
  8945.    End If                                  '09 July 2003
  8946.    If Test1_str = "X" Or Test1_str = "E" Then GoTo End_32000
  8947.     If InStr(Cmd(78), Test1_str) <> 0 And Len(Test1_str) = 4 And Mergem = "YES" Then GoTo line_30705   '07 March 2008
  8948.    If InStr(Cmd(78), Test1_str) <> 0 And Len(Test1_str) = 3 And Mergem = "YES" Then GoTo line_30705   '07 January 2005
  8949.    If InStr(Cmd(78), Test1_str) <> 0 And Len(Test1_str) = 2 And Mergem = "YES" Then GoTo line_30705   '19 November 2006
  8950.    If Test1_str = "TXT" And Mergem = "YES" Then GoTo line_30705   '19 September 2004
  8951. '07 January 2005 add logic to have merge of text file types to come from control file ie htm, cls, frm etc
  8952.    If Mergem = "YES" Then GoTo line_30704      '07 January 2005 do not merge non text formats ever.
  8953.    If Test1_str = "MPEG" Then GoTo line_30705   '25 May 2008
  8954.    If Test1_str = "VOB" Then GoTo line_30705   '15 December 2006
  8955.    If Test1_str = "MPG" Then GoTo line_30705   '19 September 2004
  8956.    If Test1_str = "MP3" Then GoTo line_30705   '19 September 2004
  8957.    If Test1_str = "JPG" Then GoTo line_30705   '19 September 2004
  8958.    If Test1_str = "BMP" Then GoTo line_30705   '19 September 2004
  8959.    If Test1_str = "WMV" Then GoTo line_30705   '19 September 2004
  8960.    If Test1_str = "AVI" Then GoTo line_30705   '19 September 2004
  8961.    If Test1_str = "GIF" Then GoTo line_30705   '28 November 2004
  8962.    If Test1_str = "LOG" Then GoTo line_30705   '27 November 2006
  8963.    If Test1_str = "ALL" Then GoTo line_30705   '20 September 2004
  8964.    
  8965.     GoTo line_30704                             '19 September 2004
  8966. line_30705:             '19 September 2004 only allow the ones above
  8967. '19 September 2004 the option "ALL" for dirtype is no longer in use.
  8968. '   it is confusing to allow formats that the program can not display, therefore no more ALL
  8969.  
  8970. '07 January 2005    If Test1_str = "A" Then Test1_str = "ALL"   'february 23 2002
  8971.    dirtype = Cmd(36)        'february 23 2002
  8972.    If Test1_str = "ALL" Then dirtype = "ALL"     'february 23 2002
  8973.    If Test1_str = "ALL" Then
  8974.         filetype = "*"
  8975.     Else
  8976.         filetype = Test1_str
  8977.     End If 'february 23 2002
  8978.    If Cmd(36) <> dirtype Then
  8979.         GoSub Control_28000        'october 07 2001
  8980.        Cmd(36) = dirtype     'june 30 2001
  8981.        GoSub line_30800    'kill and update the control file
  8982.    End If
  8983.     If diryes = "DIR" Then
  8984. 'february 23 2002        filetype = "*"      'february 18 2002
  8985.        minsize = -1
  8986.         maxsize = 99999
  8987.         maxsize = 9999999999#             '08 june 2003
  8988.        autobuild = "Y"
  8989.         savepath = "N"
  8990.         skipyesno = "N"
  8991.         inplace = "Y"
  8992.         GoTo line_30706     'february 18 2002
  8993.    End If
  8994.     'can use * for filetype above april 11 2001
  8995.    
  8996.     'should probably strip out any . periods????
  8997.    'use FileLen when checking file size
  8998.    'min size handy for skippin thumbnail picts ie those less than 20,000
  8999.    Test1_str = InputBox("minimum size ", "smallest file (min =0)", ".5", xx1 - offset1, yy1 - offset2) 'april 01 2001
  9000.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  9001.     minsize = Val(Test1_str)
  9002.     'max size handy to skip extra large files or for seeing those under 20,000 too
  9003.    Test1_str = InputBox("maximum size ", "largest file", "999999999", xx1 - offset1, yy1 - offset2) 'april 01 2001
  9004.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  9005.     maxsize = Val(Test1_str)
  9006.     'the auto copy is handy for when just a backup and initial file create wanted ie no intereaction
  9007.    Test1_str = InputBox("auto build ", "selection prompts (Y/N)<Y>", "Y", xx1 - offset1, yy1 - offset2) 'april 01 2001
  9008.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  9009.     autobuild = UCase(Test1_str)
  9010.    
  9011.     'no need to save path really if inplace catalogue unless for searching
  9012.    Test1_str = InputBox("original path in text line ", "track original (Y/N)<Y>", "Y", xx1 - offset1, yy1 - offset2) 'april 01 2001
  9013.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  9014.     savepath = UCase(Test1_str)
  9015.    
  9016.     Test1_str = InputBox("skip duplicate file sizes ", "skip duplicates (Y/N)<N>", "N", xx1 - offset1, yy1 - offset2) 'june 09 2001
  9017.    If UCase(Test1_str) = "X" Or UCase(Test1_str) = "E" Then GoTo End_32000
  9018.     skipyesno = UCase(Test1_str)
  9019.    
  9020.     'log the file locations to the search text file replace.txt etc
  9021. '    xtemp = Cmd(19)
  9022. line_30706:             'february 18 2002
  9023.    filereason = "Search link text file name"
  9024.     xtemp = Cmd(37)     'june 30 2001
  9025.    If diryes = "DIR" Then xtemp = "directory.txt"     'february 24 2002
  9026.    If Mergem = "YES" Then xtemp = "merge.txt"          'february 24 2002
  9027.    GoSub line_16000          'february 24 2002 moved up
  9028.        oopen = "WRITE"     'september 02 2001
  9029.        'february 17 2002 add xtemp name below
  9030.        oopen = InputBox(" append(A) or write(O) <over-write> " & FileExt, "Append or New Prompt   ", "O", xx1 - offset1, yy1 - offset2)
  9031.         oopen = UCase(oopen)
  9032.         If oopen <> "O" Then oopen = "APPEND"
  9033.         If oopen <> "APPEND" Then
  9034.             oopen = "WRITE"  'september 02 2001
  9035.        End If
  9036.     If diryes = "DIR" Then
  9037. 'february 24 2002        xtemp = "directory.txt"
  9038. 'february 24 2002       FileExt = xtemp
  9039. 'february 25 2002        oopen = "WRITE"         'february 18 2002
  9040.        GoTo line_30708
  9041.     End If                      'february 18 2002
  9042.    If Cmd(37) <> FileExt Then
  9043.         GoSub Control_28000       'october 07 2001
  9044.        Cmd(37) = FileExt     'june 30 2001
  9045.        GoSub line_30800    'kill and update the control file
  9046.    End If
  9047. line_30708:                  'february 18 2002
  9048.            'following lines moved down from above the if february 18 2002
  9049. '            save_line = "16100-8"  '18 March 2007 testing only only
  9050.    GoSub line_16100    'open the replace.txt for output
  9051. '            save_line = "16100-8a"  '18 March 2007 testing only only
  9052.    oopen = "write"     'september 02 2001
  9053.    dblStart = Timer      'get the start time
  9054. '    If diryes = "DIR" Then
  9055. '        testtest = InputBox("RIGHT AFTER FILE OPEN " + FileExt, "get files ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9056. '    End If
  9057.    filereason = ""
  9058.     ttt1 = 0
  9059.     tt = 1
  9060.     temp_cnt = 0        '08 July 2003
  9061.    Cls
  9062.     cript1(tt) = indir
  9063. line_30710:
  9064.     II = ttt1 + 1
  9065.     III = tt
  9066. '08 July 2003 see what is happening to Peter tran tap's computer when a dir done
  9067.    temp_cnt = tt     '08 July 2003 testing only can be removed when done
  9068.    Print "testing directory " + CStr(temp_cnt) + " " + CStr(Len(Trim(cript1(tt)))) + " " + cript1(tt) '08 July 2003 testing
  9069.    Print "-"       '08 July 2003 testing to clear above print line to screen meebee
  9070.        new_delay_sec = 1   '18 August 2004
  9071. '            save_line = "16100-8b"  '18 March 2007 testing only only
  9072.        GoSub line_30300    '18 August 2004
  9073. '            save_line = "16100-8c"  '18 March 2007 testing only only
  9074. '        delay_sec = 2
  9075. '        GoSub line_30000        'do a temporary delay sleep wait while testing for now handy
  9076. '25 July 2003        delay_sec = Format(Val(Cmd(27)), "###0.0000")
  9077.        delay_sec = Val(Cmd(27))
  9078.     If temp_cnt Mod 20 = 0 Then
  9079.         Cls
  9080.     End If          '08 July 2003
  9081. '           save_line = "16100-8d"  '18 March 2007 testing only only
  9082.    For JJ = II To III
  9083.             save_line = "see folder " + CStr(cript1(JJ)) '18 March 2007 testing only only
  9084. '18 March 2007 somehow my favorites are causing this problem just skip em for now
  9085. ' one other place where favorites needs to be skipped
  9086.    If InStr(1, UCase(cript1(JJ)), "FAVORITES") <> 0 Then GoTo line_30711 '18 March 2007
  9087.  
  9088.    
  9089.    
  9090.     thedir = Dir(cript1(JJ), vbDirectory)
  9091. '    Test1_str = InputBox("In the get folders " + cript1(JJ) + " " + CStr(II) + " " + CStr(III) + " " + CStr(tt), "get files ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9092. '    If Test1_str = "x" Or Test1_str = "e" Then GoTo End_32000
  9093.    Do While thedir <> ""
  9094. '    Print "testing directory " + thedir, CStr(temp_cnt) '08 July 2003 testing
  9095. '    Print "testing directory " + CStr(temp_cnt)  '08 July 2003 testing
  9096.    
  9097.     If thedir <> "." And thedir <> ".." Then
  9098.         If (GetAttr(cript1(JJ) & thedir) And vbDirectory) = vbDirectory Then
  9099. '            pp = FileLen("a:\temp.txt")    'testing
  9100.            ' Display entry only if it
  9101.            DoEvents
  9102. '01 july 2003 activate following line
  9103. '    Test1_str = InputBox("folders testing doug" + cript1(JJ) + "*" + outdir + "*" + thedir + "*" + indir + "*" + photo_dir, "get files ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9104.            If cript1(JJ) + thedir + "\" <> outdir Then
  9105.                 tt = tt + 1
  9106.                 cript1(tt) = cript1(JJ) + thedir + "\" 'save each folder and subfolder
  9107.    
  9108.     '27 june 2003 the few following lines were used to test for directory errors on partitioned disk
  9109. '    i = i + 1
  9110. '    If i Mod 20 = 0 Then
  9111. '        Cls
  9112. '        i = 0
  9113. '    End If
  9114. '    Print "test#1="; CStr(tt); "  "; cript1(tt)         '27 june 2003
  9115. '    Print "   "
  9116. '    Print "   "         '27 june 2003
  9117.                If tt Mod 100 = 0 Then
  9118.                     Print "working folders="; tt, cript1(JJ)
  9119.                 End If
  9120.             End If      'just in case the outdir is in the same folder???
  9121.                           'it would go on and on coping in the same directory
  9122.        End If  ' it represents a directory.
  9123.    End If
  9124. '18 March 2007    If tt > 9999 Then
  9125.    If tt > 19999 Then
  9126.         Test1_str = InputBox("Max folders of 20000 " + CStr(tt), "needs changing ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9127.        GoTo line_30713
  9128.     End If              'for now set the max number of folders to 400
  9129.    thedir = Dir        'get next directory command
  9130.    Loop
  9131. line_30711:             '18 March 2007 skip my favorites files from cataloging seems to be a problem
  9132.    Next JJ
  9133. '            save_line = "16100-8e"  '18 March 2007 testing only only
  9134.    ddd = 0     'may 28 2001
  9135.    ttt1 = III
  9136.     If III <> tt Then GoTo line_30710
  9137. line_30713:
  9138. '25 june 2003 somewhere along the line here disk partitions do not seem to work???
  9139. 'now start looking for the files in each of these directories / folders
  9140.    II = 0
  9141.     Cls
  9142.     For JJ = 1 To tt
  9143.     thedir = Dir(cript1(JJ) + "*." + filetype, vbDirectory) 'directory command
  9144.    Print "="; cript1(JJ); "="  'april 11 2001 and 08 July 2003 checks...
  9145.    If JJ Mod 20 = 0 Then
  9146.         new_delay_sec = 0.1   '18 August 2004
  9147.        GoSub line_30300    '18 August 2004
  9148. '        delay_sec = 0.2
  9149. '       GoSub line_30000                'do a temporary delay sleep wait while testing for now handy
  9150.        Cls
  9151. '25 July 2003        delay_sec = Format(Val(Cmd(27)), "###0.0000")
  9152.        delay_sec = Val(Cmd(27))
  9153.     End If          '08 July 2003
  9154.    Do While thedir <> ""
  9155. '    Do While thedir <> "." And thedir <> ".."
  9156.    If thedir = "." Then GoTo line_30720
  9157.     If thedir = ".." Then GoTo line_30720
  9158.     pp = FileLen(cript1(JJ) + thedir)  'testing
  9159.    If pp = last_pp And skipyesno = "Y" Then
  9160.         skip_pp = skip_pp + 1
  9161.         GoTo line_30720         'ken had a bunch of duplicates
  9162.    End If                  'may 10 2001
  9163.    'need the file datecreated and modified changed dates april 11 2001
  9164. '    If diryes = "DIR" Then
  9165. '        testtest = InputBox("Testing dir step 1 " + FileExt + Format(pp, "########"), "get files ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9166. '        If testtest = "X" Then GoTo What_50
  9167. '    End If
  9168.    If minsize * 1000 > pp Then GoTo line_30720  'skip it too small
  9169.    If maxsize * 1000 < pp Then GoTo line_30720  'skip it too big
  9170.    tt1 = ""
  9171.     If autobuild = "Y" Then GoTo line_30715
  9172.     If img_ctrl = "YES" Then
  9173.         Set Image1.Picture = LoadPicture(cript1(JJ) + thedir)
  9174.     Else
  9175.         Set Picture = LoadPicture(cript1(JJ) + thedir)
  9176.     End If
  9177.     tt1 = InputBox("select picture Y/N <Y> " + cript1(JJ) + thedir + " " + CStr(pp), "Or enter photo description", , xx1 - offset1, yy1 - offset2)
  9178.     If UCase(tt1) = "N" Then GoTo line_30720   'they didn't want it
  9179.    If UCase(tt1) = "E" Or UCase(tt1) = "X" Then GoTo End_32000
  9180. line_30715:
  9181. '    If diryes = "DIR" Then
  9182. '        testtest = InputBox("Testing dir step 2 " + FileExt, "get files ", , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9183. '    End If
  9184. '18 March 2007 need to skip anything from the favorites file vip
  9185.    If InStr(1, UCase(cript1(JJ)), "FAVORITES") <> 0 Then GoTo line_30730 '18 March 2007
  9186.    Test1_str = cript1(JJ) + thedir     'save the original path for search and reference
  9187.    If savepath <> "Y" Then Test1_str = " "
  9188.     newname = Test1_str
  9189. 'may 28 2001    If inplace <> "Y" Then newname = outdir + leaddidg + CStr(JJ) + thedir
  9190.    If inplace <> "Y" Then
  9191.         ddd = ddd + 1
  9192.         newname = outdir + leaddidg + Format(ddd, "0000") + "." + filetype 'may 28 2001
  9193.    End If      'may 28 2001
  9194.    If inplace <> "Y" And leaddidg = "" Then newname = outdir + thedir  'april 05 2001
  9195.    If savepath <> "Y" Then Test1_str = ""
  9196. 'right in here prompt for text description of the picture
  9197.    indates = ""
  9198.     If (GetAttr(cript1(JJ) & thedir) And vbDirectory) = vbDirectory Then GoTo line_30718
  9199. '   If thedir = "COMMAND.COM" Then GoTo line_30718
  9200. '   If thedir = "SCANDISK.LOG" Then GoTo line_30718
  9201. '03 November 2004    If dirdates = "Y" Then
  9202.    If dirdates <> "Yxyxx" Then             '03 November 2004 I want it on the gf for "d" display
  9203.       Set fs = CreateObject("Scripting.FileSystemObject")
  9204.        Set f1 = fs.GetFile(cript1(JJ) + thedir)
  9205. 'if the date created below is unknown it fails ie not using it
  9206. '       indates = " create=" & f1.DateCreated & " mod=" & f1.DateLastModified & " acc=" & f1.DateLastAccessed
  9207.       indates = " mod=" & f1.DateLastModified & " " + CStr(pp)
  9208. '        Print "testing date="; indates
  9209.    End If
  9210. '    Print "testing date="; f1.DateCreated, f1.DateLastModified, f1.DateLastAccessed
  9211. line_30718:
  9212.    
  9213. '24 june 2003
  9214.    If InStr(1, UCase(Test1_str), ".MP3") <> 0 Then
  9215.         FileFile = FreeFile
  9216.         lresult = getshortpathname(Test1_str, sshortfile, Len(sshortfile))
  9217.         temptemp = Left$(sshortfile, lresult)
  9218.         Open temptemp For Binary Access Read As FileFile    '08 july 2003
  9219. '        Open temptemp For Binary As FileFile       '08 july 2003 just in case protection is a problem
  9220. '        Print "print one " + Test1_str     '08 July 2003 test
  9221.        
  9222.         Get FileFile, LOF(1) - 127, temptag
  9223.  
  9224. '        Print "print onea " + temptag.header + temptag.songtitle   '08 July 2003 test
  9225.        
  9226.         If UCase(temptag.header) = "TAG" Then
  9227.             temptemp = Trim(temptag.songtitle) + " " + Trim(temptag.artist) _
  9228.                 + " " + Trim(temptag.album) + " " + Trim(temptag.year)
  9229.             temptemp = temptemp + " " + Trim(temptag.comments) '+ " genre=" + temptag.genre
  9230.            If Len(Trim(temptemp)) > 12 Then
  9231.                 Test1_str = temptemp
  9232.                 indates = ""
  9233.             End If    '25 june 2003 if there is not much in the header use directory info instead
  9234. '        Print temptag.header
  9235. '        Print "title " + temptag.songtitle  '08 July 2003
  9236. '         Print Test1_str
  9237.        End If
  9238.         Close FileFile
  9239. '        Print "print two " + Test1_str     '08 July 2003 test
  9240.        
  9241.     End If      '24 june 2003
  9242.    
  9243. 'june 10 2001
  9244. '    If UCase(indir) <> "C:\" And dirdates <> "Y" Then
  9245.    If dirdates <> "Y" Then
  9246. '03 November 2004            Print #ExtFile, "photo " + Test1_str + " " + tt1
  9247.            Print #ExtFile, "photo " + Test1_str + " " + tt1 + " " + indates
  9248.             indates = ""            '03 November 2004
  9249.    End If
  9250.     If inplace = "Y" Then Test1_str = cript1(JJ) + thedir
  9251.     If inplace <> "Y" Then Test1_str = newname
  9252.         If diryes = "DIR" Then      'february 18 2002
  9253.            If Mergem = "YES" Then indates = " append start" 'February 24 2002
  9254.            'need to replace indates above so that later diff program will work on a program level
  9255.            'need to skip the copy logic etc here if the file name same as output name  vip
  9256.            Print #ExtFile, Test1_str; indates
  9257. '07 January 2005 need to check that it is one of those allowed in Cmd(78) before merging
  9258.            If Mergem = "YES" Then GoSub line_17200 'february 24 2002
  9259.            ' need to open need to open and read the file here thru a call
  9260.            'then put and append end along with the file name at the end.
  9261.            'should just need to use one file # for the opens and closes...
  9262.        Else
  9263.             Print #ExtFile, "xxx." + Test1_str; indates
  9264.         End If                      'february 18 2002 skip the xxx. on print only
  9265. '11 december 2002        II = II + 1             'count of files selected
  9266.    EE = EE + 1         '11 december 2002
  9267.    If EE Mod 100 = 0 Then
  9268.         Print "working pics="; EE; " "; Test1_str; indates; " "; CStr(pp);
  9269.     dblEnd = Timer      'get the end time
  9270.    Print "  elap="; Format(dblEnd - dblStart, "#####0.000")
  9271.         'may 10 2001
  9272.    End If
  9273. '11 december 2002    If II Mod 2000 = 0 Then
  9274.    If EE Mod 2000 = 0 Then
  9275.         Cls           'clear after every 20 lines
  9276.    End If      'april 11 2001
  9277.    If inplace <> "Y" Then
  9278.                 DoEvents
  9279.                     FileCopy cript1(JJ) + thedir, newname     'copy the file
  9280. '       delay_sec = 1      'may 10 2001
  9281. '       GoSub line_30000
  9282.                DoEvents
  9283. 'Print "testing doug delete_file="; cript1(JJ) + thedir
  9284.                 If delete_file = "Y" Then
  9285.                     Kill cript1(JJ) + thedir
  9286.                     DoEvents        'june 30 2001
  9287.                 End If
  9288.     End If                      'copy file here
  9289. line_30720:
  9290.     last_pp = pp
  9291.     DoEvents
  9292.     thedir = Dir        'get next directory
  9293.    Loop
  9294. line_30730:
  9295.     Next JJ
  9296. '12 december 2002    Test1_str = InputBox("total folders= " + CStr(III) + " total files= " + CStr(II) + " skip=" + CStr(skip_pp), "session counts " & FileExt, , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9297.    Test1_str = InputBox("total folders= " + CStr(III) + " total files= " + CStr(EE) + " skip=" + CStr(skip_pp), "session counts " & FileExt, , xx1 - offset1, yy1 - offset2) 'april 01 2001
  9298. '22 june 2003 put 10 blank lines at end of file
  9299.    For JJ = 1 To 10
  9300.     Print #ExtFile, ""
  9301.     Next JJ     '22 june 2003
  9302.    
  9303.     Close #ExtFile
  9304.  
  9305. Return                  'april 01 2001
  9306. line_30800:                     'update control.txt with changes
  9307.        DoEvents
  9308. '        Kill "C:\control.txt"
  9309.    If auto_exe = "YES" Then GoTo line_30850    '04 September 2004
  9310.    If InStr(Cmd(40), Left(App.Path, 3)) = 0 And Trim(Cmd(40)) <> "" Then
  9311.             xtemp = InputBox("app.path" + App.Path + " not found or updated " + Format(delay_sec, "###0.0000") + Cmd(40), , , 4400, 4500)  'TESTING ONLY
  9312.        Print " no control file update cmd(40)"
  9313.         GoTo line_30850
  9314.     End If              '20 july 2002 must be a writeable device in cmd(40)
  9315. '        Kill "control.txt"      'december 3 2000
  9316.        Kill control_file      '23 september 2002
  9317.        FileFile = FreeFile
  9318.         II = DoEvents
  9319. '        Open "C:\control.txt" For Output Access Write As #FileFile
  9320. '        Open "control.txt" For Output Access Write As #FileFile 'december 3 2000
  9321.        Open control_file For Output Access Write As #FileFile '23 september 2002
  9322.        For f = 1 To 100
  9323.             If Len(Cmd(f)) < 1 Then
  9324.                 Cmd(f) = Space(50)
  9325.             End If
  9326.             Print #FileFile, Cmd(f)
  9327.         Next f
  9328.         Close FileFile
  9329.         GoSub Control_28000     'october 07 2001
  9330. line_30850:     '20 july 2002
  9331. '        ttt = ""               ''october 07 2001
  9332.        Return
  9333.  
  9334. line_30900:                 'the "HELP" routine here october 14 2001
  9335.    FileFile = FreeFile
  9336.     Open "help.txt" For Output As FileFile
  9337.     Print #FileFile, " File Prompt #1"
  9338.     Print #FileFile, "      Enter a file to use '?.txt' or select one"
  9339.     Print #FileFile, "      of the previously selected files 1-20"
  9340.     Print #FileFile, " Option Prompt #2"
  9341.     Print #FileFile, "      Display pictures, Enter text, Search text"
  9342.     Print #FileFile, "      Help, Append text, Screen Saver, Set program"
  9343.     Print #FileFile, "      control options etc etc etc"
  9344.     Print #FileFile, ""
  9345.     Print #FileFile, "        ***** Prompt #2 Options *****"
  9346.     Print #FileFile, " C context search / most common search option"
  9347.     Print #FileFile, " CC context search / more speed combination of 'S' and 'C' search"
  9348.     Print #FileFile, " E Enter more notes to the end of the current text file"
  9349.     Print #FileFile, " F Flash search display option, all lines displayed, stopping on matches"
  9350.     Print #FileFile, " Q Single line search matching case sensitive (see 'S')"
  9351.     Print #FileFile, " S single line match display Lower & Uppercase sensitive"
  9352.     Print #FileFile, "   Both Q And S are now the same If search is numeric then no uppercase shift etc"
  9353.     Print #FileFile, " Y Display the last screen of data ie Yesterday or Last data"
  9354.     Print #FileFile, " CH change to text file (uses wordpad for edits)"
  9355.     Print #FileFile, " M Minimize screen (allows start of other desktop processes)"
  9356.     Print #FileFile, " X Exit to file name prompt"
  9357.     Print #FileFile, " P1 Photo display forces (STRETCH) to fit to screen"
  9358.     Print #FileFile, " P2 Photo display without a fit to screen option (NORMAL)"
  9359.     Print #FileFile, " P  Photo display at the default display (stretch or normal)"
  9360.     Print #FileFile, " TT Screen saver timer delay ie 'tt0' 'tt5' 'tt10' 'tt.33"
  9361.     Print #FileFile, " SS screen saver display ie SSdog river flower"
  9362.     Print #FileFile, " WW screen saver display with search criteria ie flood/oldie/ice "
  9363.     Print #FileFile, " MERGE to merge.txt so all files can be searched at once ie frm"
  9364.     Print #FileFile, " DIR files directory with date and size to directory.txt"
  9365.     Print #FileFile, " DIRDATES use with GF below to list date and size of selected files"
  9366.     Print #FileFile, " GF Get File, used to capture un-catalogued pictures (use NORAND for MP3 VIP"
  9367.     Print #FileFile, " CP Copy picture option, searches catalogued pictures for copy / export to another device or folder"
  9368.     Print #FileFile, " Z Paste / Append contents of clipboard text to end of current file"
  9369.     Print #FileFile, " HELP display this help.txt info"
  9370.     Print #FileFile, "  ---------------       some lesser used options below "
  9371.     Print #FileFile, " RRR search and replace option for masive text changes"
  9372.     Print #FileFile, " RAND / NORAND Random display of picture files in SS WW P1 or P2"
  9373.     Print #FileFile, " THUMbnail for preview /sample of video or audio using time setting tt10 tt15 etc"
  9374.     Print #FileFile, " ELAP elapsed time to display after each mp3 or mpg file "
  9375.     Print #FileFile, " video / novideo turn on and off the option for video display (avi decompressor) must be installed" '10 february 2003
  9376.    Print #FileFile, " PAUSE / PA to allow for continual text display pausing for what is in the TT delay"
  9377.     Print #FileFile, " NS No Show option ie 'nsx-rated my-ex jerk'"
  9378.     Print #FileFile, " CCC change to display options in option1.txt for larger font, color changes etc"
  9379.     Print #FileFile, " XXX option to extract all displayed data to an alternate text file"
  9380.     Print #FileFile, " SKIP Don't display ie skip lines when match found ie 'skipmy-email'"
  9381.     Print #FileFile, " CRIPT Encript current text file using crip.txt as control file"
  9382.     Print #FileFile, " DECRIPT Does reversal of the cript option"
  9383.     Print #FileFile, " MYSTUFF Allows for on-line de-encription of an encripted text file"
  9384.     Print #FileFile, " LL Line length, sets line length before wrap ie 'LL100' 'LL' sets back to original length"
  9385.     Print #FileFile, " SHOWPOS Displays the line length at the end of each line"
  9386.     Print #FileFile, " SHOWASC Displays ascii value of last 10 characters on line"
  9387.     Print #FileFile, " EMAIL Reads e-mail formatted files and skips lots of control info"
  9388.     Print #FileFile, " IMPORT Takes e-mails from netscape and outlook files"
  9389.     Print #FileFile, " T Same as 'S' except that data also put to an extract file"
  9390.     Print #FileFile, " D Same as 'C' except that data also put to an extract file"
  9391.     Print #FileFile, " R Same as 'Q' except that data also put to an extract file"
  9392.     Print #FileFile, " CROP Creates extract file with line wraps ie 'CROP100'"
  9393.     Print #FileFile, " QQQ Similar to RRR used to line-feed carriage-returns from line matches"
  9394.     Print #FileFile, " VV Load clipboard with text following 'VVrepetitive data'"
  9395.     Print #FileFile, " VVV Loads secondary clipboard with data 'VVVinsert-this'"
  9396.     Print #FileFile, " GGG yet another clip area load"
  9397.     Print #FileFile, " SC Screen Capture delay (delays prompt box by 5 seconds) so alt/print-screen sequence can capture data"
  9398.     Print #FileFile, " PC Picture count  (used with 'CP' to assign picture sequence number ie 'PC20' results in pict20.jpg "
  9399.     Print #FileFile, " DISC displays username and computer name & OS version"
  9400.     Print #FileFile, " HH Sets the hilite_this element (very handy to hi-lite other info CMD(31))"
  9401.     Print #FileFile, " "        '06 December 2004 see if a blank line fixes the help display
  9402.    Print #FileFile, " HL Changes the Append_start element for display"
  9403.     Print #FileFile, " HLL Changes the Append_end element for hi-liting"
  9404.     Print #FileFile, " DETAIL NODETAIL changes cmd(56) "            '18 November 2004
  9405.    Print #FileFile, ""
  9406.     Print #FileFile, "        ***** Search Prompt #3 Options *****"
  9407.     Print #FileFile, "V or H will load clipboard data just like Ctrl V"                 '17 December 2004
  9408.    Print #FileFile, "D for todays date to be the search"
  9409.     Print #FileFile, "DX for yesterday date for search but no 01 workie"
  9410.     Print #FileFile, "otherwise the text search strings seperated by a =" + Cmd(6)       '06 December 2004
  9411.    Print #FileFile, ""
  9412.     Print #FileFile, "       ***** End of Screen #4 Prompt Options  *****"
  9413.     Print #FileFile, " P Previous for previous picture or previous match if text search"
  9414.     Print #FileFile, " PP Previous Picture passed to Browser Netscape or Explorer"
  9415.     Print #FileFile, "     allows for a picture print etc  "
  9416.     Print #FileFile, " B Back / previous page when in text search display"
  9417.     Print #FileFile, " V Same as Back moves one page before current match"
  9418.     Print #FileFile, " "
  9419.     Print #FileFile, "       ***** Detail line options and controls *****"
  9420.     Print #FileFile, " WAIT=    Over-ride wait time on a line by line basis"
  9421.     Print #FileFile, " THUMB==  Partial play using time in display seconds"
  9422.     Print #FileFile, " DOSHOW   Over-ride any noshow"
  9423.     Print #FileFile, " START==  Set the start point for a Movie or Music file"
  9424.     Print #FileFile, " FIT==    Set the photo display to fit-to-screen"
  9425.     Print #FileFile, " REG==    Display the photo without fit-to-screen"
  9426.     Print #FileFile, " "
  9427.     Print #FileFile, "       ***** Command File Control Elements *****"
  9428.     Print #FileFile, " CMD(1) Max_cnt lines per screen  ==" + Cmd(1)
  9429.     Print #FileFile, " CMD(2) Font.size text point size  ==" + Cmd(2)
  9430.     Print #FileFile, " CMD(3) Backcolor background color '3 for aqua'  ==" + Cmd(3)
  9431.     Print #FileFile, " CMD(4) Def_fore text color '15 for white' '12 for red' ==" + Cmd(4)
  9432.     Print #FileFile, " CMD(5) forecolor hi-lite color '14 for yellow' ==" + Cmd(5)
  9433.     Print #FileFile, " CMD(6) seperator '/' forward slash default search seperator ==" + Cmd(6)
  9434.     Print #FileFile, " CMD(7) dateno or dateyes for a date on every input line ==" + Cmd(7)
  9435.     Print #FileFile, " CMD(8) browser default Explorer / Netscape path ==" + Cmd(8)
  9436.     Print #FileFile, " CMD(9) paint program 'mspaint' file path ==" + Cmd(9)
  9437.     Print #FileFile, "CMD(10) text editor 'wordpad' is the default 'CH' option ==" + Cmd(10)
  9438.     Print #FileFile, "CMD(11) files.txt list of opened files in accessed order ==" + Cmd(11)
  9439.     Print #FileFile, "CMD(12) search.txt list of recent search strings in order at search prompt ==" + Cmd(12)
  9440.     Print #FileFile, "CMD(13) mspub.exe executable program ?? ==" + Cmd(13)
  9441.     Print #FileFile, "CMD(14) enterdateyes date on start of each text entry group 'E' option ==" + Cmd(14)
  9442.     Print #FileFile, "CMD(15) enddateyes date on end of each text entry group 'E' option ==" + Cmd(15)
  9443.     Print #FileFile, "CMD(16) optional .exe ??? ==" + Cmd(16)
  9444.     Print #FileFile, "CMD(17) xoffset for prompt box '11000' photo display semi-hide prompt box ==" + Cmd(17)
  9445.     Print #FileFile, "CMD(18) yoffset for prompt box '8500' photo display semi-hide prompt box ==" + Cmd(18)
  9446.     Print #FileFile, "CMD(19) replace.txt temporary file for change routines see '37'??? ==" + Cmd(19)
  9447.     Print #FileFile, "CMD(20) C/p1/email ??? ==" + Cmd(20)
  9448.     Print #FileFile, "CMD(21) line_len characters per line '82' default ==" + Cmd(21)
  9449.     Print #FileFile, "CMD(22) context_lines '6' lines displayed before a 'C' context match ==" + Cmd(22)
  9450.     Print #FileFile, "CMD(23) copy picture 'CP' default folder 'destination folder for copies' ==" + Cmd(23)
  9451.     Print #FileFile, "CMD(24) ppaste allows for vvv to paste string 'xxx.c:\family1\scn000' ==" + Cmd(24)
  9452.     Print #FileFile, "CMD(25) gpaste allows for ggg to paste string 'photo family gathering' etc ==" + Cmd(25)
  9453.     Print #FileFile, "CMD(26) 'photo' ss default ss_search element ==" + Cmd(26)
  9454.     Print #FileFile, "CMD(27) delay_sec for screen saver 'SS' option '4' seconds default ==" + Cmd(27)
  9455.     Print #FileFile, "CMD(28) noshow element ie 'creep' 'nfg' 'my-x' etc for photo display skip photos ==" + Cmd(28)
  9456.     Print #FileFile, "CMD(29) altcolor '10' default green, see element 31 which is displayed with this color ==" + Cmd(29)
  9457.     Print #FileFile, "   handy to display critical elements ie xxx. is in 31 for demo how to use this "
  9458.     Print #FileFile, "CMD(30) 'Y' unload project option required for Windows ME Y/N option ==" + Cmd(30)
  9459.     Print #FileFile, "CMD(31) hilite_this element 'XXX.' if this element exists hilite it with code in element 29 ==" + Cmd(31)
  9460.     Print #FileFile, "CMD(32) crip.txt encription file to use when 'mystuff' code  ==" + Cmd(32)
  9461.     Print #FileFile, "CMD(33) D search default at search prompt entry 'D' for today etc ==" + Cmd(33)
  9462.     Print #FileFile, "CMD(34) 5 context window 'before' see element 22 ???? ==" + Cmd(34)
  9463.     Print #FileFile, "CMD(35) indir input directory for 'GF' get file load picture option ==" + Cmd(35)
  9464.     Print #FileFile, "CMD(36) file extension 'JPG' for 'GF' get file load picture type of picture ==" + Cmd(36)
  9465.     Print #FileFile, "CMD(37) temp.txt 'see option 19' ==" + Cmd(37)
  9466.     Print #FileFile, "CMD(38) stretch_img 'stretch/normal' 'yes' or 'no' P1 or P2 photo display option ==" + Cmd(38)
  9467.     Print #FileFile, "CMD(39) autoredraw allows for screen refresh between sessions (slows down F flash display and others)==" + Cmd(39)
  9468.     Print #FileFile, "CMD(40) Allowable write drives ie A:\ C:\ ==" + Cmd(40)
  9469.     Print #FileFile, "CMD(41) Option Prompt #2 if photo file default display P1 P2 WW ==" + Cmd(41)
  9470.     Print #FileFile, "CMD(42) Option Prompt #2 if text file default display C S Q ==" + Cmd(42)
  9471.     Print #FileFile, "CMD(43) browser default Explorer / Netscape path for NT==" + Cmd(43)
  9472.     Print #FileFile, "CMD(44) text editor 'wordpad' is the default 'CH' for NT option ==" + Cmd(44)
  9473.     Print #FileFile, "CMD(45) auto run program name ie SPECIAL ==" + Cmd(45)
  9474.     Print #FileFile, "CMD(46) auto run prompt #1 (file select) ==" + Cmd(46)
  9475.     Print #FileFile, "CMD(47) auto run prompt #2 (search options) ==" + Cmd(47)
  9476.     Print #FileFile, "CMD(48) auto run prompt #3 (search string)==" + Cmd(48)
  9477.     Print #FileFile, "CMD(49) RANDOM NORANDOM on photo search ==" + Cmd(49)     '09 december 2002
  9478.    Print #FileFile, "CMD(50) Show Merged file names In Caption Area (SHOWFILES) ==" + Cmd(50) '24 december 2002
  9479.    Print #FileFile, "CMD(51) avi file size x min (1050)==" + Cmd(51) '01 february 2003
  9480.    Print #FileFile, "CMD(52) avi file size y min (775)==" + Cmd(52) '01 february 2003
  9481.    Print #FileFile, "CMD(53) video / novideo if avi installed (NOSHOWVIDEO)==" + Cmd(53) '10 february 2003
  9482.    Print #FileFile, "CMD(54) If recent files match show the duplicates or not (SHOWDUPS)==" + Cmd(54) '28 february 2003
  9483.    Print #FileFile, "CMD(55) number of lines in context file to clear (see Cmd(22)) 00 or ==" + Cmd(55)  '18 March 2003 ver=1.01
  9484.    Print #FileFile, "CMD(56) display photo detail on pictures (set when GF and MP3) (PHOTO_DETAIL)==" + Cmd(56) '22 March 2003 ver=1.02
  9485.    Print #FileFile, "CMD(57) time display on / off switch (SHOWTIME)==" + Cmd(57) '26 March 2003 ver=1.03
  9486.    Print #FileFile, "CMD(58) DEFAULT_TO_CD when this set the drive ie c:\ will default to where it is running ie E:\ F:\==" + Cmd(58) '30 May 2003 ver=1.06
  9487.    Print #FileFile, "CMD(59) Delay Timing change (should be 0.00) for mpeg movies==" + Cmd(59) '29 September 2003
  9488.    Print #FileFile, "CMD(60) Freeze delay time for mpeg movies & Photo_detail info==" + Cmd(60) '01 October 2003
  9489.    Print #FileFile, "CMD(61) Allow for set speed of playback==" + Cmd(61) '30 October 2003
  9490.    Print #FileFile, "CMD(62) Slow Motion segment duration (ie .01667)==" + Cmd(62) '08 January 2004
  9491.    Print #FileFile, "CMD(63) Show Elapsed time of video switch (slow motion only) (ie SHOWELAP)==" + Cmd(63) '11 February 2004
  9492.    Print #FileFile, "CMD(64) Pad_time (thousandsands added when in slow motion)==" + Cmd(64) '21 February 2004
  9493.                            'the above command put in because some files failed when using the get position
  9494.                            'command ie notably the niki and sparrow bird bath some weird bug??
  9495.                            'it works in most cases, and is really only needed when cataloguing etc.
  9496.    Print #FileFile, "CMD(65) Random begin for video play RANDBEG etc ==" + Cmd(65)     '23 March 2004
  9497.    Print #FileFile, "CMD(66) Interrupt video replay speed (ie 250) ==" + Cmd(66)     '10 April 2004
  9498.    Print #FileFile, "CMD(67) Thumbnail on or off ie noTHUMB or THUMB ==" + Cmd(67)     '14 April 2004
  9499.    Print #FileFile, "CMD(68) Continue at end of file (WW) ie noEOF_STOP ==" + Cmd(68)       '12 September 2004 use with background job allows them to stop
  9500.    Print #FileFile, "CMD(69) Continue after match found (P) ie noHIT_STOP ==" + Cmd(69)    '17 September 2004 use with background job allows them to stop after match found.
  9501.    Print #FileFile, "CMD(70) if FOREGROUND then background job given focus & hi-lited ==" + Cmd(70)   '17 September 2004
  9502.    Print #FileFile, "CMD(71) Allow for input from batch file ie noBATCHFILE ==" + Cmd(71)   '27 October 2004
  9503.    Print #FileFile, "CMD(72) Allow for video pictures music play list noRESULTS.TXT ==" + Cmd(72) '08 November 2004 keep a file for a play list
  9504.    Print #FileFile, "CMD(73) Switch input file when Control.txt file changes see Cmd(46) noFILESWITCH ==" + Cmd(73)    '22 November 2004
  9505.    Print #FileFile, "CMD(74) End of file command file switch (re text searches mainly) noEOFCMD ==" + Cmd(74)           '26 November 2004
  9506.    Print #FileFile, "CMD(75) Do not allow for video interrupt on cd and dvd copies VIDEOSTOP ==" + Cmd(75)   '12 December 2004
  9507.    Print #FileFile, "CMD(76) Line pause to create scrolling text noLINEPAUSE==1.5 ==" + Cmd(76) '24 December 2004
  9508.    Print #FileFile, "CMD(77) Character pause on print text display noCHARACTERPAUSE==.00333 =="; Cmd(77) '03 January 2005
  9509.    Print #FileFile, "CMD(78) Text file formats to allow during merge command TXT FRM HTM ==" + Cmd(78) '07 January 2005
  9510.    Print #FileFile, "new feature 09 june 2002 allow for 6 search strings up from 3 (hi-lites only 3)"
  9511.     Print #FileFile, "new feature 23 june 2002 allow for hi-lites of all 6 search strings"
  9512.     Print #FileFile, "new feature 20 july 2002 allow use of non writable cd demo (do not update files)"
  9513.     Print #FileFile, "new feature 27 july 2002 at photo continue prompt allow for . to display hidden prompt on screen"
  9514.     Print #FileFile, "new feature 10 august 2002 allow for prompt #2 to default "
  9515.     Print #FileFile, "new feature 12 august 2002 allow for 'rand' at prompt #2 to randomly select pics in file    "
  9516.     Print #FileFile, "new feature 25 august 2002 display elapsed time and character count on display"
  9517.     Print #FileFile, "new feature 26 august 2002 CC search uses 'S' search then regets with a 'P' previous sequence"
  9518.     Print #FileFile, "new feature 31 August 2002 if search data numeric don't do uppercase if alpha switch to uppercase for search"
  9519.     Print #FileFile, "new feature 05 October 2002 PAUSE / PA option allow for screen saver type display of text, stopping for TT on each screen"
  9520.     Print #FileFile, "new feature 12 October 2002 DEBPHO to debug the photo display on some computers"
  9521.     Print #FileFile, "new feature 30 November 2002 DISC now shows os version ie Windows 98 etc"
  9522.     Print #FileFile, "option change 05 December 2002 P1 & P2 just change image size P does single photo display"
  9523.     Print #FileFile, "new feature 09 December 2002 Cmd(49) RANDOM / NORANDOM store from run to run"
  9524.     Print #FileFile, "new feature 24 December 2002 Cmd(50) showfiles / noshowfiles in merged text files show file name where match found"
  9525.     Print #FileFile, "option change if program name matches Cmd(45) then change drive # to that of app.path"
  9526.     Print #FileFile, "Allow close of window during screen saver to unload form"
  9527.     Print #FileFile, "new feature 01 February 2003 allow for *.avi video play cmd(51) cmd(52)"
  9528.     Print #FileFile, "new feature 28 February 2003 enable skip if same file listed twice for play or display cmd(54)"
  9529.     Print #FileFile, "new feature 20 March 2003 context clear cmd(55) allow for centering of text on screen"
  9530.     Print #FileFile, "New Feature 22 March 2003 PHOTO_DETAIL text info along with pics see Cmd(56)"
  9531.     Print #FileFile, "New Feature 26 March 2003 version 1.03 & 1.02b switchable time display"
  9532.     Print #FileFile, "Hint: In random display mode, to view last 3 pictures add 6 blank lines to file"
  9533.     Print #FileFile, "New Feature 11 May 2003 ver=1.05 display *.mpg video files similar to *.avi"
  9534.     Print #FileFile, "New Feature 24 June 2003 ver=1.07 play mp3 audio files similar to above"
  9535.     Print #FileFile, "New Feature 13 July 2003 ver=1.07a ELAP for elapsed time display after mp3 and mpg files"
  9536.     Print #FileFile, "New Feature 19 July 2003 ver=1.07T THUMbnail at prompt #2 to just show or play short clips / previews /samples using tt time"
  9537.     Print #FileFile, "      Version 2.0 and greater "
  9538.     Print #FileFile, "          START==10000 at prompt #2 to test various start points in a video or song"
  9539.     Print #FileFile, "          START==20000 on the search detail line, to change individual file start point"
  9540.     Print #FileFile, "          use START==????? and WAIT=??? to show / play mini-clips from anywhere in a file"
  9541.     Print #FileFile, "          ***start==1000 for those video files that just won't play ie.(wavie lines only)"
  9542.     Print #FileFile, "26 July 2003 default context display color to value in cmd(29) alternate color"
  9543.     Print #FileFile, "          minor bug fix related to wait time changing"
  9544.     Print #FileFile, "New Feature 03 August 2003 ver=2.2 allow for FIT== And REG== to determine regular or fit to screen similar to WAIT="
  9545.     Print #FileFile, "New Feature 18 August 2003 THUMB== on detail line will force a short play based on delay seconds"
  9546.     Print #FileFile, "                           DOSHOW to over-ride any noshow settings (on detail line)"
  9547.     Print #FileFile, "Fix 09 September 2003 to allow for service pack 1 systems"
  9548.     Print #FileFile, "New Feature 24 September 2003 freeze=5 on a mpg video, after a wait=10 will hold the frame for display for 5 seconds"
  9549.     Print #FileFile, "New Feature 29 September 2003 cmd(59) element used to adjust delay time (between systems)"
  9550.     Print #FileFile, "New Feature 30 October 2003 cmd(61) element SETSPEED and speed=500 at prompt #2"
  9551.     Print #FileFile, "New Feature 16 November 2003 over-ride above speed on a line basis ie speed=250"
  9552.     Print #FileFile, "Fix 08 January 2004 replace SET SPEED with PAUSE and RESUME sequences"
  9553.     Print #FileFile, "New Feature 16 August 2004 WMV video format now plays"
  9554.     Print #FileFile, "Fix 16 August 2004 pause between jpg files fixed"
  9555.     Print #FileFile, "Fix 27 August 2004 at interrupt alow for complete play by entering aa"
  9556.     Print #FileFile, "New Feature 04 September allow for multiple inputs on prompt #2 seperated by / sep"
  9557.     Print #FileFile, "New Feature 12 September 2004 allow for background job backgrd==c:\search\backgrd1\backgrd1.exe "
  9558.     Print #FileFile, "New Feature cmd(68) EOF_STOP to allow for background job to stop at eof use with (WW) prompt #2 option"
  9559.     Print #FileFile, "New Feature Cmd(69) HIT_STOP to allow for background job to stop at first match/hit use with (P) prompt #2 option"
  9560.     Print #FileFile, "New Feature Cmd(70) FOREGROUND causes a background job to be given focus over main job"
  9561.     Print #FileFile, "New Feature command==tt8/rand/randa/thumb/ww found on match line will change command settings"
  9562.     Print #FileFile, "Fix 25 October 2004 Small video now play"
  9563.     Print #FileFile, "27 October 2004 Batch file input option see cmd(71)"
  9564.     Print #FileFile, "    differences between to files limit of 10000 lines for now"
  9565.     Print #FileFile, "    differences between to files limit of 20000 lines for now 18-Mar-2007"
  9566.     Print #FileFile, "Minor change force directory date out on gf option 03 November 2004"
  9567.     Print #FileFile, "08 November 2004 create a results.txt file for video pics music see Cmd(72)"
  9568.     Print #FileFile, "18 November 2004 minor New Feature DETAIL, NODETAIL changes cmd(56)"
  9569.     Print #FileFile, "19 November 2004 New feature allows for CONTROL==controlx.txt or controly.txt to switch control files"
  9570.     Print #FileFile, "     ***vip*** change the control files on the fly (very usefull)"
  9571.     Print #FileFile, "     less use for the command== option now"    '19 November 2004
  9572.                    '20 November 2004 allow for a cr at photo continue prompt to restart screen saver if auto_exe set
  9573.    Print #FileFile, "22 November 2004 New feature on CONTROL== if cmd(73) has FILESWITCH then change the input file to element cmd(46)"
  9574.     Print #FileFile, "        in the new control file. "        '22 November 2004
  9575.    Print #FileFile, "23 November 2004 New Feature on OPTIONS==OPT=controla.txtOPT=controlb.txtOPT=controlc.txt select 1 2 or 3 ..10 for navigation of presentations"
  9576.     Print #FileFile, "28 November 2004 New Feature add GIF files to list of pictures displayed"
  9577.     Print #FileFile, "06 December 2004 New Feature enter DX at search prompt for yesterday date but not 01"
  9578.     Print #FileFile, "17 December 2004 New Feature enter a V or H at the search prompt will paste in the clipboard just like Ctrl V"
  9579.     Print #FileFile, "19 December 2004 New Feature allow for inset keypad at prompt #1 and prompt #3 ie J=4 K=5 L=6 etc"
  9580.     Print #FileFile, "24 December 2004 New Feature allow for pause after each print line. Rather than all text displayed at once see Cmd(76)"
  9581.     Print #FileFile, "06 January 2005 Minor New Feature, if pause do not display prompt #4 at end of screen add 1 line to max_cnt cmd(1)"
  9582.     Print #FileFile, "07 January 2005 New Feature allow for merge of text data files other than .txt ie .htm .for .frm .cls etc..."
  9583.     Print #FileFile, "10 January 2005 Minor fix re change 06 January 2005 the F option was not continuing now it does"
  9584.     Print #FileFile, "20 August 2005 allow for the last few seconds as a thumbnail using start==299000 and thumb"
  9585.     Print #FileFile, "29 November 2006 instead of pictures allow for URL address to be copied and pasted    "
  9586.     Print #FileFile, "29 January 2007 anything after http: if no / follows keep all except the http:    "
  9587.     Print #FileFile, "21 February 2007 fix the Start== not working properly - just initialize a couple values?"
  9588.     Print #FileFile, "11 March 2007 final fix for the start== bug"
  9589.     Print #FileFile, "28 March 2007 remove the favorites from directory it causes me problems"
  9590.     Print #FileFile, "05 February 2008 fix timer. to speed up scrolling text display    "
  9591.     Print #FileFile, "Version = " + vvversion
  9592.     Print #FileFile, "contact " + program_info + " stonedan@telusplanet.net"
  9593.     Close #FileFile
  9594.     DoEvents
  9595. 'check the latest features above
  9596.        Return
  9597.        
  9598. line_30920:         '18 august 2002
  9599.    zzz_cnt = 0
  9600. '        xtemp = InputBox(" testing doug noonerror " + CStr(zzz_cnt), "testing Prompt   ", , xx1 - offset1, yy1 - offset2)
  9601.    On Error GoTo error_line_30920
  9602.     OutFile = FreeFile
  9603.     Open TheFile For Input As #OutFile
  9604. next_line_30920:
  9605.     Line Input #OutFile, aaa
  9606.     zzz_cnt = zzz_cnt + 1
  9607.     If zzz_cnt >= cnt Then GoTo exit_line_30920
  9608.     GoTo next_line_30920
  9609. error_line_30920:
  9610.     Resume resume_line_30920
  9611. resume_line_30920:
  9612.     On Error GoTo Errors_31000
  9613. exit_line_30920:
  9614.     Return          '18 august 2002
  9615.    
  9616. Errors_31000:
  9617.     'the following line for debugging only ***vip***
  9618. 'january 09 2001 below   27 june 2003 testing the stuff on tran's computer protection probably
  9619. '    Print " Save-yore error"; Err.Number; " "; save_line; " "; Err.Description; " "; LastFile
  9620. '        tt1 = InputBox("error=" + CStr(Err.Number) + " " + save_line, , , 4400, 4500) 'TESTING 09 February 2004
  9621.    If save_line = "testing" Then
  9622.         Resume End_32000
  9623.     End If                  'december 15 2000
  9624.    If save_line = "17200" Then
  9625.         Resume line_17220
  9626.     End If                  'february 24 2002
  9627.    If save_line = "30610" Then
  9628.         Resume line_30640
  9629.     End If                  'january 09 2001
  9630.    If save_line = "50" Then
  9631.         Resume What_50
  9632.     End If                  'december 6 2000
  9633.    If Err.Number = 62 And save_line = "28010" Then
  9634.         Close FileFile
  9635.         DoEvents
  9636. '        Kill "C:\control.txt"
  9637.        Kill "control.txt"      'december 3 2000
  9638.        FileFile = FreeFile
  9639.         II = DoEvents
  9640. '        Open "C:\control.txt" For Output Access Write As #FileFile
  9641.        Open "control.txt" For Output Access Write As #FileFile 'december 3 2000
  9642.        For f = 1 To 100
  9643.             If Len(Cmd(f)) < 1 Then
  9644.                 Cmd(f) = Space(50)
  9645.             End If
  9646.             Print #FileFile, Cmd(f)
  9647.         Next f
  9648.         Close FileFile
  9649.         II = DoEvents
  9650. '        tt1 = InputBox("extending control.txt", , , 4400, 4500)  'TESTING ONLY
  9651.        Resume line_20
  9652.      
  9653.     End If
  9654. '===============================
  9655.  
  9656.     If Err.Number = 62 And save_line = "1000" And _
  9657.         end_cnt < 10 Then
  9658.         end_cnt = end_cnt + 1
  9659.         Resume input_1000
  9660.     End If      'allow for more than 1 eof marker in file
  9661.    If Err.Number = 62 And save_line = "29010" Then
  9662.         Resume line_29090
  9663.     End If
  9664.     If save_line = "29092" Then
  9665.         Resume line_29093
  9666.     End If
  9667.     If Err.Number = 53 And save_line = "29005" Then
  9668.         Resume line_29008
  9669.     End If
  9670.  
  9671. '"Y" logic below read till end of file then back off a few lines
  9672. '    then simulate a "C" and "A" for all search.
  9673.    If Err.Number = 62 And save_line = "65" Then
  9674.             Close #OutFile
  9675.             DoEvents
  9676.             OutFile = FreeFile
  9677.             Open TheFile For Input As #OutFile
  9678.             DoEvents
  9679. '            tt1 = InputBox("testing only " + TheFile, , , 4400, 4500) 'TESTING ONLY
  9680.  
  9681.         For bbb = 1 To zzz_cnt - MAX_CNT + 2    '2 TO SEE THE LAST 2 STATS LINES
  9682.            Line Input #OutFile, aaa
  9683.         Next bbb
  9684.         Previous_line = aaa
  9685.         Line Input #OutFile, aaa
  9686.         zzz_cnt = bbb
  9687.         search_prompt = ""  'this keeps the next prompt#3 from being "D"
  9688.        prompt2 = "C"
  9689.         SAVE_ttt = "C"
  9690.         inin = "A"
  9691.         SSS1 = "A"
  9692.         ttt = "C"
  9693.         printed_cnt = 0         'this fixes the 2 execution of this function
  9694.                                'ie the lines print from the top not midway
  9695.        Resume input_1000a
  9696.     End If      'december 09 2001
  9697.    
  9698. '05 october 2002    If Err.Number = 62 And save_line = "1000" And sscreen_saver = "Y" Then
  9699. '20 November 2004 maybe the save_line thing is a problem when I return to save_line = 1000a etc
  9700.            frmproj2.Caption = " eofsw test=" + CStr(Err.Number) + "=" + save_line + " " + Err.Description + " " + Pict_file '26 November 2004
  9701.    If Err.Number = 62 And save_line = "1000" And (sscreen_saver = "Y" Or text_pause) Then
  9702.        
  9703. '=====================================================================================
  9704.    If Left(Cmd(74), 8) = "EOFCMD==" Then
  9705.         control_file = Trim(Right(Cmd(74), Len(Cmd(74)) - 8)) '26 November 2004
  9706.        aaa = "CONTROL==" + Right(Cmd(74), Len(Cmd(74)) - 8)
  9707. '            tempdata = Cmd(73)                      '22 November 2004
  9708.        temptemp = Trim(Cmd(48))        '26 November 2004
  9709.        tempdata = "CONTROL"            '26 November 2004
  9710.        
  9711.         eofsw = "YES"                   '26 November 2004
  9712.        GoSub Control_28000     'change the control file from in a *.txt file
  9713.        Resume eof_entry                '26 November 2004
  9714. '        GoTo eof_entry                '27 November 2004
  9715.    End If                              '26 November 2004
  9716.    
  9717.    If Left(UCase(Cmd(68)), 8) = "EOF_STOP" Then GoTo End_32000 '12 September 2004
  9718. '====================================================================================
  9719.        
  9720.         Close #OutFile
  9721.         Cls                     '20 August 2003
  9722.        Print "at end of file prompt"  '04 april 2002
  9723.    '16 April 2004 make it so that after the first complete pass that the logic
  9724.    '              will switch so that the data is randomly accessed. This is only
  9725.    '              for auto-run custom cd's
  9726.    
  9727. '20 November 2004 found this may be a problem ***vip*** todo check this once and a while.
  9728. '        If save_line <> "1000" Then
  9729.        If save_line = "1000111" Then
  9730. '===================================
  9731.        rand = -1
  9732.         Randomize
  9733.         rand_cnt = zzz_cnt - 3
  9734.         zzz_cnt = 0
  9735.         rand_no = Int(rand_cnt * Rnd + 1)
  9736.         Cmd(49) = "RANDOM"
  9737.        
  9738.         rand1 = -1
  9739.         Cmd(65) = "RANDBEG"
  9740.  
  9741.         thumb_nail = "YES"
  9742.         Cmd(67) = "THUMB"
  9743.  
  9744.         play_speed = 250
  9745.         save_play_speed = 250
  9746.         Cmd(61) = "SETSPEED250"
  9747.  '===================================
  9748.        
  9749.         End If              '16 April 2004 deactivate this code if not a auto-run cd
  9750.        
  9751.         Beep
  9752.         play_speed = 1000      '13 May 2004 the first one after end of file was playing slomo this fixed
  9753.        hold_sec = Val(Cmd(27))    '29 april 2002
  9754. '        Cmd(27) = Format(delay_sec, "###0.0000") '01 may 2002
  9755. '25 March 2004        delay_sec = 1   '04 april 2002
  9756. '25 March 2004        GoSub line_30000    '04 april 2002
  9757.        new_delay_sec = 1   '25 March 2004
  9758. '        new_delay_sec = 10   '20 November 2004
  9759. '         frmproj2.Caption = " end of file dougdoug " + interrupt_prompt2 + "*" + SSS1 + "*" + SSS2 '20 November 2004 test
  9760.        If interrupt_prompt2 = "WW" Then
  9761.             sscreen_saver_ww = "YES" '20 November 2004 test
  9762.            sscreen_saver = "Y"     '20 November 2004 test
  9763.            prompt2 = "WW"      'this one seems to keep it going where before it stopped. now it gets wrong data
  9764.            prompt2 = "SS"      '20 November 2004
  9765.            tt1 = "WW"
  9766.         End If                  '20 November 2004
  9767.        GoSub line_30300    '25 March 2004
  9768.        Cls
  9769. '        tt1 = InputBox("testing 28 april 2003 zzz_cnt rand_no" + CStr(zzz_cnt) + CStr(rand_no), , , 4400, 4500)  'TESTING ONLY
  9770.        last_pict = ""          '28 february 2003
  9771.        delay_sec = Format(Val(Cmd(27)), "###0.0000")   '29 april 2002
  9772. '        tt1 = InputBox("testing delay a" + Cmd(27) + Format(hold_sec, "###.000") + Format(delay_sec, "###.000"), , , 4400, 4500) 'TESTING ONLY
  9773.        DoEvents
  9774.             tot_s1 = 0 '05 october 2002  just incase these counts get to over-flowing
  9775.            tot_s2 = 0 '05 october 2002
  9776.            tot_s3 = 0 '05 october 2002
  9777.            tot_s4 = 0  '05 october 2002
  9778.            tot_s5 = 0  '05 october 2002
  9779.            tot_s6 = 0  '05 october 2002
  9780. '         frmproj2.Caption = " end of file doug two " + interrupt_prompt2 + "*" + sscreen_saver + "*" + SSS1 + SSS2 '20 November 2004 test
  9781.        Resume Do_Search_110
  9782.     End If
  9783.     If Err.Number = 62 And save_line = "1000" Then
  9784.         dblEnd = Timer      'get the end time
  9785.    If Left(UCase(Cmd(68)), 8) = "EOF_STOP" Then GoTo End_32000 '12 September 2004
  9786.  
  9787.         'should do another read and if successful warn them
  9788.        'that the file has a end of file marker and it should
  9789.        'be removed
  9790.    
  9791.     If Picture_Search = "YES" Then
  9792.         Set Picture = LoadPicture() 'lp#8
  9793.    End If
  9794.        ForeColor = QBColor(Val(Cmd(5)))
  9795.         If auto_redraw = "YES" Then frmproj2.AutoRedraw = True      'november 10 2001 autoredraw pair-5
  9796.        Print "Lines="; zzz_cnt & " Chrs= " & zzz_chrs;
  9797.         Print " Displayed = " & tot_disp;
  9798.         Print "  Elap="; Format(dblEnd - dblStart, "#####0.000");
  9799.         Print " Hits="; tot_s1; " "; tot_s2; " "; tot_s3; " "; tot_s4; " "; tot_s5; " "; tot_s6 'january 01 2001
  9800.        Print "#5 End of " + TheFile & "     "
  9801.         tot_s1 = 0 'january 01 2001
  9802.        tot_s2 = 0 'january 01 2001
  9803.        tot_s3 = 0 'january 01 2001
  9804.        tot_s4 = 0  '23 june 2002
  9805.        tot_s5 = 0  '23 june 2002
  9806.        tot_s6 = 0  '23 june 2002
  9807.        mult1 = ""      'january 05 2001
  9808.        mult2 = ""      'january 05 2001
  9809.        mult3 = ""      'january 05 2001
  9810.        mult4 = ""      '23 june 2002
  9811.        mult5 = ""      '23 june 2002
  9812.        mult6 = ""      '23 june 2002
  9813.    array_pos = 0               'january 21 2001
  9814.    array_prt = 0
  9815.  
  9816.         ForeColor = QBColor(Def_Fore)
  9817.         Close #OutFile          'june 13/99
  9818.        Close #ExtFile          'november 14 2000
  9819.        line_len = Val(Cmd(21)) 'november 14 2000
  9820.        mbxi = 0                'december 18 2000
  9821.        If prompt2 = "Q" Then mbxi = 1  'december 18 2000
  9822.        iimport = ""            'december 24 2000
  9823.        emailsea = ""           'december 24 2000
  9824.    DoEvents
  9825.    
  9826.     If SAVE_ttt = "C" Then  'december 11 2000
  9827.    For temp1 = 1 To MAX_CNT
  9828.         Context_text(temp1) = ""
  9829.     Next temp1
  9830.         Context_cnt = 0        'december 11 2000
  9831.    End If                      'aug 08/99
  9832.        II = DoEvents           'june 13/99
  9833.    If screen_capture = "YES" Then
  9834. '03 September 2004        delay_sec = 5      'march 15 2001
  9835. '03 September 2004        GoSub line_30000
  9836.            new_delay_sec = 5    '03 September 2004
  9837.            GoSub line_30300            '03 September 2004
  9838.    End If
  9839.     yyy = InputBox("Do you want to continue y/n <y>", "Continue Prompt", , 10000, 10000)
  9840.         yyy = UCase(yyy)        'june 27/99
  9841.        Cls                             'november 10 2001 needed with autoredraw
  9842.        If auto_redraw = "YES" Then frmproj2.AutoRedraw = False      'november 10 2001 autoredraw pair-5
  9843.    dblStart = Timer    'get the start time
  9844.        If yyy = "B" Then
  9845.             Resume line_3300
  9846.         End If
  9847. '19 December 2004        If yyy = "P" Then
  9848.        If yyy = "P" Or yyy = "J" Then
  9849.             yyy = "P"           '19 December 2004
  9850.            tt1 = "P"
  9851.             If prompt2 = "Q" Then
  9852.                 prompt2 = "C"
  9853.                 SAVE_ttt = "C"
  9854.                 SSS1 = UCase(SSS1)
  9855.                 SSS2 = UCase(SSS2)
  9856.                 SSS3 = UCase(SSS3)
  9857.             End If
  9858.             previous_count = previous_count + 1
  9859. '        Print "prompt2="; prompt2; "="
  9860. '        tt1 = InputBox("testing only", , , 4400, 4500)  'TESTING ONLY
  9861.            Resume line_3050    'october 22 2000
  9862.        End If
  9863. '      xtemp = InputBox("testing prompt=" + prompt2 + extract_yes + CStr(zzz_cnt) + " " + CStr(wrap_cnt) + " " + CStr(cnt), "test", , 4400, 4500) '
  9864.        If extract_yes = "YES" Then
  9865.             extract_yes = "NO"      'november 14 2000
  9866.            Resume What_50       'january 08 2001
  9867.        End If
  9868.          Resume Do_Search_110       'june 27/99
  9869.    End If
  9870.     'create notes.txt on first pass if it does not exist
  9871.    If Err.Number = 53 And save_line = "24010" And _
  9872.             UCase(TheFile) = "NOTES.TXT" Then
  9873. '            UCase(TheFile) = "C:\NOTES.TXT" Then december 3 200
  9874.            
  9875. 'CREATE THE FILES BELOW SO THE USER DOES NOT HAVE TO DO IT
  9876. 'TO START THEY WILL HAVE THESE 4 FILES
  9877.    temps = Format(Now, "ddddd ttttt") + "       "
  9878.     temps = Left(temps, 23)     'all must be 23 long incld space
  9879.            
  9880.             FileFile = FreeFile
  9881.             Open TheFile For Output Access Write As #FileFile
  9882.             Print #FileFile, temps + " sample notes file"
  9883.             Close #FileFile
  9884.             II = DoEvents
  9885.            
  9886.   '          FileFile = FreeFile
  9887. '            Open "C:\NOTES1.TXT" For Output Access Write As #FileFile
  9888. '           Open "NOTES1.TXT" For Output Access Write As #FileFile 'december 3 2000
  9889. '           Print #FileFile, temps + " sample notes1 file"
  9890. '           Close #FileFile
  9891. '           II = DoEvents
  9892.            
  9893.  '           FileFile = FreeFile
  9894. '            Open "C:\NOTES2.TXT" For Output Access Write As #FileFile
  9895. '           Open "NOTES2.TXT" For Output Access Write As #FileFile 'december 3 2000
  9896. '           Print #FileFile, temps + " sample notes2 file"
  9897. '           Close #FileFile
  9898. '           II = DoEvents
  9899.            
  9900.  '           FileFile = FreeFile
  9901. '            Open "C:\NOTES3.TXT" For Output Access Write As #FileFile
  9902. '           Open "NOTES3.TXT" For Output Access Write As #FileFile 'december 3 2000
  9903. '           Print #FileFile, temps + " sample notes3 file"
  9904. '           Close #FileFile
  9905. '           II = DoEvents
  9906.            
  9907. '            Resume line_24010   'december 13 2000
  9908.             Resume File_40     'december 13 2000
  9909.    End If
  9910.     If Err.Number = 53 And save_line = "24010" Then
  9911.         If InStr(UCase(TheFile), ".TXT") <> 0 Then
  9912. '12 September 2004 if an auto run or background job create the file and continue automatically
  9913.        If (UCase(App.EXEName) = Trim(UCase(Cmd(45))) And Left(App.Path, 3) <> "C:\") Or InStr(1, UCase(App.Path + App.EXEName), "BACKGRD") <> 0 Then
  9914.             xtemp = "Y"
  9915.             GoTo do_create '12 September 2004
  9916.        End If
  9917.            xtemp = InputBox("No such file, Create it Y/N <N> " + UCase(TheFile), , , 4400, 4500) 'TESTING ONLY
  9918. do_create:          '12 September 2004
  9919.            If UCase(xtemp) = "Y" Then
  9920.                 NewFile = FreeFile     'find a free file channel
  9921.                Open UCase(TheFile) For Output As NewFile
  9922.                 DoEvents
  9923.                 Print #NewFile, "File " + UCase(TheFile) + " created " + Format(Now, "ddddd ttttt") 'january 29 2002
  9924.                Print #NewFile, "     " 'this forces it to a plain text file not rich text
  9925.                Close #NewFile
  9926.                 DoEvents
  9927.     '            Cmd(20) = "E"
  9928.                Resume line_24020
  9929.             End If
  9930.         End If
  9931.         Resume File_40  'if it does not exist ask again
  9932.    End If
  9933.  
  9934.     If Err.Number = 53 And save_line = "17040" Then
  9935. '01 September 2004        Print "no such file="; Pict_file; "="
  9936. '01 September 2004        tt1 = InputBox("no such file", "No such file Prompt", , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9937.        frmproj2.Caption = " No such file Prompt #1 " + Pict_file '01 September 2004
  9938.            new_delay_sec = 4
  9939.             GoSub line_30300        '01 September 2004
  9940.            Beep                    '01 September 2004
  9941.            Resume Line_17090
  9942.     End If
  9943.  
  9944.     If Err.Number = 57 And save_line = "17055" Then
  9945.         Cls
  9946.         Print "bad file="; Pict_file; "="
  9947.         tt1 = InputBox("bad file" + Pict_file, "Bad picture file Prompt", , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9948.        Set Picture = LoadPicture() 'lp#9
  9949.        Resume input_1000  '
  9950.    End If
  9951.  
  9952.     If Err.Number = 57 And save_line = "17059" Then
  9953.         Cls
  9954.         Print "bad file="; Pict_file; "="
  9955.         tt1 = InputBox("bad file" + Pict_file, "Bad file name Prompt", , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9956.        Set Picture = LoadPicture()
  9957.         Resume input_1000  '
  9958.    End If
  9959.  
  9960.     If Err.Number = 76 And save_line = "17040" Then
  9961. '01 September 2004        Print "no such file="; Pict_file; "="
  9962. '01 September 2004        tt1 = InputBox("no such file", "No such file Prompt", , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9963.        frmproj2.Caption = " No such file Prompt #2 " + Pict_file '01 September 2004
  9964.            new_delay_sec = 4
  9965.             GoSub line_30300        '01 September 2004
  9966.            Beep                    '01 September 2004
  9967.        Resume Line_17090  '
  9968.    End If
  9969.  
  9970.     If Err.Number = 53 And save_line = "17050" Then
  9971.         Print "no such Program="; Cmd(8); "="
  9972.         tt1 = InputBox("no such Program", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9973.        Resume Line_17090  '
  9974.    End If
  9975.  
  9976.     If Err.Number = 53 And save_line = "17080" Then
  9977.         Print "no such Program="; Cmd(9); "="
  9978.         tt1 = InputBox("no such Program", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9979.        Resume Line_17090  '
  9980.    End If
  9981.  
  9982.     If Err.Number = 53 And save_line = "17085" Then
  9983.         Print "no such Program="; Cmd(16); "="
  9984.         tt1 = InputBox("no such Program", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  9985.        Resume Line_17090  '
  9986.    End If
  9987.  
  9988.  
  9989.     If Err.Number = 53 And save_line = "25000" Then
  9990.     FileFile = FreeFile     'log file of files accessed
  9991.        Open Cmd(11) For Output Access Write As #FileFile
  9992.    
  9993. '        Print #FileFile, "a:\notes.txt" 'sample file demo change this to a:\
  9994. '        Print #FileFile, "a:\howto.txt" 'sample file
  9995.        Print #FileFile, "NOTES.TXT" 'sample file demo change this to a:\ december 3 2000
  9996.        Print #FileFile, "HOWTO.TXT" 'help howto docment file december 3 2000
  9997.        Print #FileFile, "democ.txt" 'demo file file
  9998. '        Print #FileFile, "C:\notes2.txt" 'sample file
  9999.        Print #FileFile, "CRIPT.TXT" 'sample file december 3 2000
  10000.        Print #FileFile, "C:\Program Files\Sympatico\Users\User1\Mail\Sent" 'sent mail
  10001.        Print #FileFile, "C:\Program Files\Sympatico\Users\User1\Mail\Inbox" 'inbox mail
  10002.        Print #FileFile, "C:\windows\application data\microsoft\outlook express\mail\Inbox.mbx" 'inbox mail
  10003.        Print #FileFile, "C:\windows\application data\microsoft\outlook express\mail\Sent Items.mbx" 'Sent mail
  10004. '        Print #FileFile, "c:\control.txt"  'sample file
  10005.        Print #FileFile, "CONTROL.TXT"  'sample file december 3 2000
  10006.        For f = 1 To 11
  10007.             Print #FileFile, Space$(50)
  10008.         Next f
  10009.        
  10010.         Close #FileFile
  10011. '        Resume InputFile_24000
  10012.    'if the file does not exist then create it above
  10013. '        Print "Creating "; Cmd(11); " file"
  10014. '        Resume InputFile_24000
  10015.        Resume line_45      'december 3 2000
  10016.    End If
  10017.     If Err.Number = 53 And save_line = "27000" Then
  10018.     FileFile = FreeFile
  10019.         Open Cmd(12) For Output Access Write As #FileFile
  10020.         Print #FileFile, "PHOTO"
  10021.         Print #FileFile, "xxx."
  10022.         For f = 1 To 18
  10023.             Print #FileFile, Space$(50)
  10024.         Next f
  10025.        
  10026.         Close #FileFile
  10027.  '       Print "Creating Search.txt file"    'december 3 2000
  10028. '        DoEvents                'december 3 2000
  10029. '       delay_sec = 3           'december 3 2000
  10030.  '      GoSub line_30000        'december 3 2000
  10031.   '     DoEvents                'december 3 2000
  10032. '        Resume Search_26000     'december 3 2000
  10033.        Resume line_500      'december 3 2000
  10034.    'if the file does not exist then create it above
  10035.    End If
  10036.  
  10037. line_31500:
  10038.  
  10039.     If Err.Number = 53 And save_line = "28000" Then
  10040.         FileFile = FreeFile
  10041. '        Open "C:\control.txt" For Output Access Write As #FileFile
  10042.        Open "control.txt" For Output Access Write As #FileFile 'december 3 2000
  10043.        visual_impared = "NO"
  10044.         GoSub line_30500
  10045.         visual_impared = "YES"
  10046.         Resume line_31510
  10047. '    End If
  10048. line_31510:
  10049.       '  Kill "c:\control1.txt"
  10050.        FileFile = FreeFile
  10051. '        Open "C:\control1.txt" For Output Access Write As #FileFile
  10052.        Open "control1.txt" For Output Access Write As #FileFile 'december 3 2000
  10053.        GoSub line_30500
  10054.         visual_impared = "NO"
  10055.         GoTo line_20    'november 3 2000 testing
  10056. '        Resume Control_28000   'november 3 2000 testing
  10057.    End If      'april 20/00
  10058.        
  10059.         If Err.Number = 53 And save_line = "110" Then
  10060.         Resume File_40
  10061.    
  10062.     End If      'file no longer exists
  10063.    
  10064.     If Err.Number = 62 And save_line = "24015" Then
  10065.         Close FileFile
  10066.         Resume What_50
  10067.     End If
  10068.     If Err.Number = 62 And save_line = "29510" Then
  10069.         Resume line_29520
  10070.     End If
  10071.    
  10072.    
  10073.     Resume line_31990     'november 20 2000
  10074. line_31990:
  10075.     Print
  10076.    
  10077. 'december 19 2000    Print " Save-yore error**"; Err.Number; " "; save_line; " "; Err.Description; " "; Pict_file
  10078.    Resume End_32010        'december 19 2000
  10079. 'december 19 2000    GoTo line_31999        'december 3 2000
  10080. line_31999:                 'december 3 20002
  10081.    xtemp = InputBox("log error & enter to exit " + Err.Number + " " + save_line, , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  10082. End_32000:
  10083.  '       Print "prompt2="; line_len; "="; tot_print; "+"; temps
  10084. '        tt1 = InputBox("testing only end_32000", , , 4400, 4500)  'TESTING ONLY
  10085. '            temp2 = InStr(line_len - tot_print, temps, " ") 'november 3 2000 fix
  10086. 'without the line below I was getting the "Unexpected error; quitting"
  10087. 'sdistuff do not have following line activated in sdi version
  10088. 'GoTo line_32500 'mdistuff new
  10089. On Error GoTo 0         'january 30 2001
  10090. If save_line = "testing" Then
  10091.     Print Err.Number, save_line
  10092.            tt1 = InputBox("testing only", , , xx1 - offset1, yy1 - offset2) 'TESTING ONLY
  10093. End If      'december 15 2000
  10094.    Close #OutFile
  10095.     Cls
  10096.     Print "   End Of Search "
  10097.     Print " close out window or any key to continue"
  10098.      
  10099.     'make the unload a control file option
  10100. End_32010:
  10101.     If UCase(Cmd(30)) = "Y" Or UCase(tt1) = "X" Or UCase(tt1) = "E" Then
  10102.  '       Unload proj2    'october 26 2000
  10103. '13 March 2004 make sure things close here for video file play...
  10104.    If mpg_file = "YES" Then
  10105. '        tt1 = InputBox("testing only exit search", , , 4400, 4500)  'TESTING ONLY 13 March 2004
  10106.            i = mciSendString("close all", 0&, 0, 0)         '13 March 2004
  10107.            DoEvents                '12 March 2004
  10108. '        new_delay_sec = 2
  10109. '        GoSub line_30300        '13 March 2004 maybe the delay will fix the problem
  10110.    End If
  10111.         Unload Me       'november 29 2000 didn't seem to make any difference from above line
  10112.                        'see programmers guid page 170 re using Me keyword
  10113.    Set frmproj2 = Nothing 'sdistuff
  10114. '14 March 2004       Set colReminderPages = Nothing  'release memory??
  10115. '    Set sear1 = Nothing 'mdistuff
  10116.        End     '14 March 2004 use this after each unload me ???
  10117.    End If
  10118.  '   End
  10119. line_32500: 'mdistuff new
  10120. End Sub
  10121.  
  10122.  
  10123. Private Sub text2_Change()
  10124. Cls
  10125.     Call text2_Chg    'october 26 2000
  10126. End Sub
  10127.  
  10128. Private Sub Form_LinkClose()
  10129. '22 March 2004        tt1 = InputBox("testing only form_linkclose", , , 4400, 4500)  'TESTING ONLY 03 July 2003
  10130.  
  10131. End Sub
  10132.  
  10133.  
  10134. Private Sub Form_OLECompleteDrag(Effect As Long)
  10135.         tt1 = InputBox("testing only OLECompleteDrag", , , 4400, 4500)  'TESTING ONLY 27 July 2003
  10136.  
  10137.  
  10138. End Sub
  10139.  
  10140. Private Sub Form_Unload(Cancel As Integer)
  10141. '18 March 2004    If mpg_file = "YES" Then
  10142.            i = mciSendString("close all wait", 0&, 0, 0)         '12 March 2004
  10143.            DoEvents                '12 March 2004
  10144.            DoEvents
  10145. '18 March 2004    End If              '13 March 2004
  10146. '22 March 2004        tt1 = InputBox("testing only form_unload", , , 4400, 4500)  'TESTING ONLY 12 March 2004
  10147.        Unload Me
  10148.     Set frmproj2 = Nothing 'sdistuff
  10149.        Set colReminderPages = Nothing  'release memory?? 13 March 2004
  10150.    End             '29 january 2003
  10151.                    'allow for the close form to be used
  10152.                    'without the already running showing next
  10153. End Sub
  10154.  
  10155.  
  10156.  
  10157.  
  10158.  
  10159.  
  10160.  
  10161. Private Sub Timer1_Timer()
  10162. '     result = mciSendString(todo$, ByVal 0&, 0, 0)   '13 December 2004
  10163.        frmproj2.Caption = "(in the timer routine)" + alias '13 December 2004
  10164.        'not using this routine for now...
  10165.        'so the object is not really needed and this code removed
  10166. '    Stop
  10167. End Sub
Add Comment
Please, Sign In to add comment