• Entwicklung
  • Projekt_L3D
  • Spielträume
  • Startseite
  •    
  •    
  •    
  •    
  • Expertise
  • Impressum

  • Description:
    This dialog application processes 3 types of script files supplied by drag & drop. The major reason, why these 3 script-like types came into being was the need to partially or even fully automate data file manipulation.
    Anyway, each type serves a particular purpose and saves some tedious typing and thus preserves precious time.

    TKSCR:
        create file output from templates with embedded //task_... commands and $(...) or
        $(c01) - $(cnn) defined variables.On using select or extend commands TASKSCRIPT
        can quickly create results such as ready-made files or up to 200000 record lines.
        The following example demonstrates this possibility:

        ##***TKSCR***********************************
        //task_define: WorkPath = C:/WorkFolder/TaskHelper/Tester1
        //task_define
        // myInfo = Test
        // arrays = [ABC,DEF,GHI,JKL]
        //task_done
        ##-------------------------------------------
        ## EXTEND_DATA
        ##-------------------------------------------
        UserToken(;):
        ## Data_Begins:
        //task_repeat: 200000 times
        // ;NUM_$(+1);$(myInfo)_$(arrays[1]);$(myInfo)_$(arrays[2])
        //loop_done
        ## Data_Finish:
        ##-------------------------------------------
        ## EXTEND_EXIT
        ##-------------------------------------------
        //task_writer: $(WorkPath)/TestExtend.txt

        The entire syntax can be studied in TaskScript.chm file. In terms of commands,
        either lower- or upper-case is interpreted.

    TKMOD:
        update,insert,delete data/lines from a list of files. Except for the mandatory parameter
        "ModifyTask=[...]", a simple variable substitution is provided for. Each line has an internal
        scan maximum of up to 512 characters.
        I limited the use of wildcards because the *.* can be a quick road to disaster. Since TKMOD-
        scripts change the original files you HAVE TO BACKUP your files which you have previously
        named in the "ModifyList". Alternatively, you can set the parameter "ModifySave" to true.

        # ------------------------------------------------------------------------
        # Usage: ModifyTask=[ModFile*,Updates*,Inserts*,Deletes*]
        # Range: 001 - 999 for all variables
        # ------------------------------------------------------------------------

    TKCLP:
        extract data from one file and/or append a list of files. Except for the mandatory parameters
        "SelectTask=[...]" and "AppendTask=[...]", a simple variable substitution is provided for.
        Moreover, each line has an internal scan limit of 512 characters.

        # ------------------------------------------------------------------------
        # Usage: SelectTask = [GetFile*,PutFile*,GetData*]
        #            GetData001 = 11111,FFFFF or 11111;AA222 or ABCDE:EOF
        # Range: 001 - 999 for all variables
        #
        # Usage: AppendTask = [NewFile*,AppFile*]
        # Range: 001 - 099 ... 901 - 999 for all variables (10 AppendFiles only)
        # ------------------------------------------------------------------------

    All in all, these scripts are very straight forward and easy to use. Either combined or applied separately, they could assist you in finishing and/or repeating various tasks or chores in less time.
    There are examples in the download file in order to obtain a more details of the above mentioned functionality.


    Functionality:
    •  Obtains script files via Drag & Drop only
    •  processes type of TKSRC script files
    •  processes type of TKMOD script files
    •  processes type of TKCLP script files
    •  Outputs ListBox display to clipboard ....


  • Class Hierarchy:
  • ClientDialog
         |__________TaskHelper
         (DialogScreen,ClientTabPages,CListBox,CPushButton,CTaskScript,CDataModify,CDataSelect)
  • ClientWidget
         |__________ClientTabPages
         |
         |__________CListBox
         |
         |__________CPushButton
  • CTaskEngine
         |__________CTaskScript
  • CTaskTypes
         |__________CTaskAssign
         |
         |__________CTaskSelect
         |
         |__________CTaskExtend
         |
         |__________CTaskOutput
         |
         |__________CTaskInvoke
  • ♦♦ Download TaskHelper ♦♦