Winbatch compiler crack
ShellExecuteWait s:program-name, s:params, s:directory, n:display mode, s:operation Returns True when a new process is started and the script calling the function is paused while the new process is executing. Note that it is possible for the function to successfully perform the task indicated by the parameters but not pause the script. This can happen when the indicated task does not start a new process.
The function indicates that the script is not paused by returning immediately with a value of False. CMD file or a data file. Each color descriptor consists of 3 vertical bar delimited numbers representing the color's red, green, and blue values.
The 2 color descriptors are separated by a space character delimiter. The function's "request-value" parameter must contain a string consisting of the one-based row and column numbers of the control item whose colors are to be returned. The two numbers representing the row and column must be delimited by a comma ,. Note that if more than one first column item of a control contains the same value, the "request-value" parameter may need to contain a tab-delimited list of multiple occurrences of the targeted item's text.
Note that if more than one first column item of a control contains the same value, the returned text may contain a tab-delimited list of multiple occurrences of the targeted item's text. The item and colors are indicated by placing a 4 item space character delimited list in the function's set-info parameter.
The list's 4 items consist of the one-based row number, the one-based column number, a text color descriptor, and a background color descriptors.
The color descriptors can consist of 3 vertical bar delimited numbers or a single hexadecimal number preceded by the letter "h" representing the color's red, green, and blue values. Three-row values have special meaning: -1 color the indicated column of each odd-numbered row. One column value has a special meaning: -1 color all columns of the indicated row. The single hex value must be preceded by the letter "H" or "h" to be recognized as a valid RGB value.
Bar delimited decimal number RBG values are still fully supported. Added parameter count checking to user-defined-procedure calls. Object members for both COM and dotNet object names longer than 30 characters no longer generate syntax errors. Address problem the cause the WinBatch Studio breakpoint command to be flag as an unexpected item. WinBatch Console: Corrected problem that prevented errors occurring inside user-defined-procedures from being displayed at the console command line.
Added new DefineCommand EndCommand preprocessor statements. Use these two statements to create a WinBatch Console only user-defined-command.
User-defined-commands share scope rules with user-defined-subroutines but are only callable from WinBatch Console and are ignored by WinBatch. The other unique feature of UDCs is their syntax.
UDCs are both defined and called without opening and closing parentheses. They also use white space instead of commas to separate parameters. Fixed problem in the MapKeyExist function that caused the function to sometimes return false 0 even though the passed in key existed in the passed in WIL map.
The new request numbers are: 3 - SHA1 Function returns a 40 hex character string representation of SHA1 hash of the passed in binary buffer.
Added optional "preserve-data" option to the BinaryClipPut function. Use this option to prevent the function from clearing all clipboard data formats on the system clipboard before adding the contents of the supplied binary buffer to the clipboard. The contents of format type indicated by the function's second parameter is replaced with the new contents in the binary buffer so any existing data for that format is still not preserved.
Defaults to 0 when the parameter is not present. It returns the previous minimum hash size setting. Added an optional second parameter to WinIdGet function. Placing the name of a child window in the parameter will cause the function to return a winid for the named child window of the parent window specified in the functions first parameter.
When this parameter is an empty string or not supplied at all the function returns the "Window ID" of the parent window whose name appears in the first parameter. Modified the following functions to accept a "Window ID" pseudo-handle in the partial-child-winname parameter. Removed the always disabled "Apply" button from the "View" menu's "Toolbars Clicking on an error in the "Errors" window places the input cursor at the beginning of the line in the file that caused the error.
When active this option aids in debugging scripts with default WIL error handling disabled. This option is enabled by default. Added new 'Find in Project This menu item displays a project search dialog. Use the dialog to search the files of the currently selected Project Tree project. The menu item is enabled when Project Tree window visible and a project is selected in the tree. This menu item can also be found in the context menu of a project of the Project Tree window. The context menu displays by left-clicking on the project name.
The 'Find in Project' dialog has the following items: Find what Text to find. Enter new text or select previously searched text from the dropdown. Find This button begins a search of the files of the selected project. The button's text displays the "Stop find" text when you display the dialog during a search. Pressing the button when it is displaying this text halts the current search and the "Stop Find" button text will eventually change back to "Find" after the search is halted.
Cancel This button dismisses the dialog without taking and action. Match case Checking this box causes the search to be case sensitive. Otherwise, the search is case-insensitive. Regular expression Checking this box causes the search text to be treated as a regular expression.
Note: regular expression support is very limited so use of this search option is not recommended. Addressed issue in the implementation of the DirMake function that prevented the function from reporting an error when it failed to create a directory under certain conditions.
Add level 11 to the WinVersion function. Level 11 returns the "releaseID" of the current version on Windows 10 systems. The "releaseID" is the four digit version number associated with Windows 10 semiannual feature updates. WinVersion returns an empty string when level 11 is used on other versions of Windows. Use this type to indicate that an entry point returns a bit integer when called from bit WinBatch and a bit integer when called from bit WinBatch. The fix prevents incorrect error generation when array brackets appear on the end of the call statement for the purpose of accessing a single array element.
Added new execution mode the RtStatus function. WIL Dialog Editor: Corrected a defect that prevented the resizing of a dialog on multi-monitor systems when the editor was displayed on a monitor to the left of a system's primary monitor.
WinBatch Console: WinBatch Console is a set of new executables that enable the entry and execution of WIL scripting language statements at a console command prompt. WIL statements can be entered and executed singly or as a group by switching WinBatch Console to multiline mode. WinBatch Console consists of 8 bit and 8 bit programs that follow the same naming conventions as regular WinBatch with the addition of the letter "C" at the beginning of each name.
For example, the console version of "WinBatch. The console executables contain the same manifests for UAC as their regular WinBatch executable counterparts. Like their WinBatch counterparts, WinBatch Console executables accept a script file name as a command line argument. Enable WinBatch Console's multiline mode by typing a WIL statement at the command prompt and typing a colon : character as the last character on the line after the WIL statement. Pressing the Enter key after entering the colon key causes the console to enter multiline entry mode.
The console command prompt changes to an ellipsis Once in multiline mode continue entering commands followed by the return key until your script is complete. Do not add a colon to the end of your WIL statement lines after entering multiline mode.
Execute the console script by pressing the return key on the empty line after the list statement typed. After the script is executed the console returns single line entry mode. You can also return to single line mode without executing the script by pressing the escape key once. WinBatch Console supports a few special keys to edit, select, copy, paste, and execute text in the console window.
The table below lists the keys with a brief description of their function. Valid WIL expressions include variable names, string and numeric literals, WIL constants, functions with their parameters, and operators with their operands with the exception of the assignment operators.
Cout differs from other WIL function because it does not require opening and closing parentheses. Cin s:prompt Cin returns text typed by an interactive user before the user pressed the return key. Cin is a console only function that displays the "prompt" text on a new line in the console window. The function then pauses until an interactive user press the return key. Can be any valid string literal or varaible containing a value that can be converted to text. Cin differs from other WIL functions in that it does not require opening and closing parentheses.
When Cin is used outside the context of a WinBatch Console, it has no effect and always returns 0. This menu item and button start an instance of the bit WinBatch Console application. Removed the length limit on the "Environment" function's environment variable value maximum return size. Fixed minor memory leak in Compiler's Syntax Analyzer module. Fixed problem with foreach loop implementation that prevented the successful interation of variant safearrays under certain conditions.
Changed the font typeface of WinBatch built-in dialogs and for the default WinBatch box fonts. When this line is present, the function adjusts the size of the dialog, contained controls, and control fonts to the display scaling of the main display of the system calling the function. Added map collection support. Map collections are key-value pairs. Each value stored in the maps is referenced using a string key enclosed in array style square brackets. However, instead of integer subscripts, map elements are accessed using sting keys.
Maps cannot be passed to WIL array functions. The one exception is the "ArrInfo" function which can be used to discover whether or not a variable is a map and the number of key-value pairs in a map.
A map variable can be created dynamically using the assignment operator or by using the "MapCreate" function.
Note that when creating a map dynamically the first assignment must use a key that does not convert to an integer. Numbers can be used as keys subsequent assignments to the map. Use an empty string to create a map without and key-value pairs. Leading and trailing key or value whitespace is ignored. To include a double quotes as part of a key or value use two double quotes inside a double quoted key or value. Defaults to comma , when an empty string is used or when the parameter is omitted completely.
Defaults to a tab character tab when an empty string is used or when the parameter is omitted completely. MapKeyExists m:map, s:key Returns true if the key exists in the map and false if it does not. MapKeyRemove m:map, s:key Returns true if the key and associated value are found and removed from the map and false if the key is not found in the map.
The first field of each row in the file becomes a map key and the second field of each row becomes the value for that key. If the file contains single field rows, the function creates a map with each key having an undefined value. If the file contains rows of more than two fields, only the first two fields are used and the remaining fields are ignored.
If omitted a comma , is used. The space, double quote, carriage return, and line feed characters cannot be used as a delimiter. The default behavior is pairs with undefined values are not written to file. By default each key and each value is surrounded by double quotes. When using a WIL map as the collection following the "in" clause, the statements element variable contains one key from the map's key-value pairs on each iteration.
When the collection represents a regular WIL array, the element variable contains an array element value on each iteration of the loop structure. Added two new requests to the ArrInfo function. WinBatch Studio: Fixed problem in a WinBatch Studio that caused user-defined tool toolbar buttons to be removed from toolbars even when not required by the installation of a new version of WinBatch Studio.
Added a new "Extra Large Buttons" option to the "Toolbars" property page of the "Customize" property sheet displayed when the "Toolbars Check this option to have WinBatch Studio display toolbar buttons that are approximately twice the size of "Large Buttons" toolbar buttons. WIL Dialog Editor: Corrected problem with the rendering of the tracking rectangle around the entire dialog when the Dialog Editor's view window was scrolled.
Added a new "Allow dialog to automatically adjust sizes" attribute to the "Position and Size" tab of the "Dialog Attributes" dialog. When this line is present in a dialog template, the "Dialog" function adjusts the size of the dialog, contained controls, and control fonts to the display scaling of the main display of any system that calls the "Dialog" function on the template.
Previously, the function always returned True. Added support for two new "data type" values to IntControl Values may be represented as huge numbers.
Modified the BinaryTagInit function to accept an empty string in the start-tag second parameter. When the start-tag is an empty string, the function treats the beginning of the binary buffer as the start of the first tag pair. Any following pairs start just after the last found end-tag.
Integer values greater than or less than the maximum or minimum 4-byte signed integer value must be represented by a huge number digits enclosed in quotes.
Increased the maximum size of a single binary buffer to 2GB. It is now also possible to have multiple binary buffers of up to 2GB allocated at the same time. The total memory available for all binary buffers dependents on the maximum memory limit of the version of the bit Windows operating system, and the available physical and virtual memory of the system executing the script.
Modified the bit Compiler to work around a defect in a security software product that could cause access violations in both compiled WinBatch script and the compiler. Four bit extenders required modifications to support expanded memory.
Older bit versions of these extenders cannot be used with this and future versions of bit WinBatch. Added check for assignment to WIL Extender defined constants. Note that assignment to a WIL Extender constant generates an error even if the extender is not loaded into the script being analyzed. Fixed handling of multiple substitution variables in string literals to prevent generation of a "Variable name to long" error when substitution variable names are not over the maximum allowed length.
Substitution is no longer performed on template string literals and the substitution syntax is preserved when embedded in the dialog's title, or a control's name and text attributes. When these two menu options are used, substitution is performed on the dialog templates so any substitution syntax will not be preserved when the loaded template is saved to the clipboard or a file.
Added the ability to scroll the Editor's dialog editing area. This enables the creation of dialogs with dimensions that do not fit on the current system's display. Changed the sort algorithm used by the ArraySort function to eliminate worst case slow sorts.
The change also prevents the error, "Error accessing array data" when sorting a large array with frequently repeating sort data. Fixed memory corruption problem in output window implementation. Select this menu item to invoke the Syntax Analyzer on the current foreground document. The Syntax Analyzer tool scans the current script for syntax errors without actually executing the script. Any errors are displayed in the "Syntax Analyzer" tab of a WinBatch Studio output window automatically displayed by the Analyzer.
Each error line in the Analyzer window represents one error. A single line in the script can produce more than one error. Error lines consist of a full path-name of the file being analyzed, the row and column numbers of the error's location in the script, the word "error" or "warning", an error number, and a brief error description.
Using your mouse to left click on an error in the Syntax Analyzer window will set the WinBatch Studio input cursor to the beginning of the line in the current script that contains the error. A few thing to remember when using the Syntax Analyzer: Variable values are not checked because the script is not executed. The Analyzer cannot determine the resulting syntax of substituted variables. The grammar of function parameters is checked but not the correctness of parameter values. The Analyzer can be used on WIL menu files but menu names line generate "unexpected item found online" errors.
Ignore these errors. Files included in the current script using an " include" statement are not analyzed. Extenders are not loaded so extender function parameter counts are not checked. WinBatch function parameter counts are not checked. When this check box is checked, the compiler will use the Lexical Analyzer module to scan the target script for errors before compilation begins. If any errors or warnings are found, the Compiler can display a dialog showing a list of errors and warning.
Press this dialog's "Continue" button to proceed with the compilation or press the "Cancel" button to either return to the main Compiler window or exit the compiler when the compiler starts with a command line target.
In all cases pressing the "Cancel" button prevents the target from being compiled. The "Analyze source for errors" checkbox option is global. The syntax error dialog is not displayed. The compiler also generates an error file instead of displaying the syntax error dialog when it is invoked with a "cmplst" file as a command line parameter. In both instances, the error file name is the target script's file name with a time stamp and a ".
The file is placed in the target's location on the file system. Fixed a problem in file related functions that accept a delimited list as input. This problem caused these functions to ignore remaining list items after processing the files matching a list item containing one or more wildcards characters. Added a new p1 option to Intcontrol 93 to support RFCcompliant Timestamp Authority services for time-stamping signed files.
Microsoft is closely monitoring the latest research on the feasibility of SHA-1 attacks and will use this to determine complete deprecation timelines.
The maximum total expanded size of the returned string is limited to characters. The following table lists the standard Windows date and time format characters accepted by the function. In order to include a single quote in the returned text escape it with a second single quote. For example, '''' will create one single quote in the return text. Format Used For Description d Days Displays the day as a number from 1 to 31 dd Days Displays the day as a number with a leading 0 if the number is less than 10 ddd Weekdays Displays a weekday name with 3 letters as Mon, Tue, etc dddd Weekdays Displays the complete name of a week day as Monday, etc M Months Displays the numeric month from 1 to 12 MM Months Displays the numeric month with a leading 0 if the number is less than 10 MMM Months Displays the short name of the month as Jan, Feb, Mar, etc.
MMMM Months Displays the complete name of the month as January, etc yy Years Displays two digits for the year as 00 for or 03 for yyyy Years Displays the numeric year with 4 digits h Hours Hours with no leading zero for single-digit hours; hour clock. This defect caused duplicate FileMenu menu items to appear when the Explorer window's "File" menu bar item was repeatedly selected while a file name was selected in the file list window.
Add the "wbt64" file extension to the filemenu. The extension is mapped to the same "FileMenu for WinBatch files. The first item of the list is used as the control's initial date. The second item is the minimum date the control will accept and the third item is the maximum date the control will accept. Increased the maximum number of control definitions recognized per dialog template from to When this option is checked the compiler will timestamp the executable using a RFCcompliant timestamp server and the more secure SHA hash algorithm.
When this option is not checked the compiler will use an Authenticode timestamp server and the SHA-1 hash algorithm to timestamp the executable file. It is disabled on older versions of Windows because older platforms lack the functionality necessary to support RFCcompliant timestamp servers for timestamp operations. Fixed defect in AskFileName function that made it necessary to provide at least one file type definition when using flag parameter values of or higher. Added new flag value to AskDirectory: 32 makes directory browse dialog an owned window.
The value 32 can be combined with other flag parameter values. When passing an extended path to a supporting function, the path must be an absolute path. Supporting functions that return absolute paths automatically include the appropriate extended-length path prefix when the total length exceeds characters.
Returns 1 if the extender was unloaded and 0 otherwise. Project file items are now either selected or highlighted when added to a project in the Project Window tree. Added a "useany" option to the 'ObjectClrOption' function. The option is similar to the function's "use" option for loading assemblies except that it does not require a strong assembly name. Instead the option attempts to load an assembly using the assembly's weak name. An assembly's weak name is an assembly name without the Version, Culture, PublicKeyToken and optional processorArchitecture values.
The function performs the "useany" task by searching the Global Assembly Cache GAC for the latest version of the named assembly. Setting the CLR version using this function's "version" option limits "useany" to search for GAC assemblies associated with the specified version and older versions of the CLR.
It can be used to both display and receive date and time input in multiple formats. Use an empty list elements to use the control's default for the respective item.
Nonformat character are accepted but they must be with a few exceptions enclosed in single ' quotes. Format Used For Description d Days Displays the day as a number from 1 to 31 dd Days Displays the day as a number with a leading 0 if the number is less than 10 ddd Weekdays Displays a weekday name with 3 letters as Mon, Tue, etc dddd Weekdays Displays the complete name of a week day as Monday, etc M Months Displays the numeric month from 1 to 12 MM Months Displays the numeric month with a leading 0 if the number is less than 10 MMM Months Displays the short name of the month as Jan, Feb, Mar, etc MMMM Months Displays the complete name of the month as January, etc yy Years Displays two digits for the year as 16 for or 03 for yyyy Years Displays the numeric year with 4 digits h Hours Hours with no leading zero for single-digit hours; hour clock.
H Hours Hours with no leading zero for single-digit hours; hour clock. HH Hours Hours with leading zero for single-digit hours; hour clock. The spinner can be used to change the value of individual elements of the displayed date-time. The function returns an empty string if no format was previously specified. When the control has the csCheckBox style, an empty string "" can be sent to the control to uncheck the control's chechbox. Neither the dcText nor dcTitle request code can be used to set the displayed date.
Arrays are created dynamically by assigning a value to a previously undefined variable using brackets and comma separated subscripts array syntax following the new variable's name.
Existing arrays can be redimensioned by assigning a value to an array element that is beyond the upper bound of an existing dimension or adding a new dimension to the array's comma separated subscript list. Dynamic array assignment is optimized for single dimension arrays. Use in redimensioning multi-dimension arrays is significantly slower than initially creating an array with the highest required array subscripts.
An existing non WIL array variable cannot be converted to an array by using array subscript syntax with the existing non array variable's name. Doing so will result in an "Expression continues past expected end. Use the BYREF variant type in combination with another type to create a reference to a variant of the indicated type.
The BYREF type can also be used in combination with another type when specifying a COM Automation object method parameter's type using the BYREF type combination followed by a single colon : and then the expression that evaluates to the parameter's value.
This change prevents 'Type mismatch' errors when assigning values to uninitialized COM variant array elements. Fixed a parser defect that caused an error message when a colon : concatenation operator immediately followed the end of a multiline text string constant without any intervening white space. Added a third parameter to the "WindowOnTop" function. Set to True to have the function use the current timeout setting.
Set to False or omit, to have the function immediately generate an error when the target window is not found. The parameter is ignored when the first parameter is a window id.
Note that IntControl 46 can be used to change the current retry timeout setting default is 9 seconds. Added support for multiline string to DllStructAlloc's member-descriptor parameter. Multiple pairs can be on a single line, however.
WinBatch Studio Fixed several incorrect syntax coloring problems related to multiline string constants. Fixed 'Projects' menu's 'Open Project File' menu item not being enabled when a project file is selected.
The Project Tree toolbar dialog is now toggled on and off solely by the 'Project Tree' menu item of the 'View' menu bar menu. Previously, the 'Restore workspace at startup' option blocked display of the Project Tree toolbar at WinBatch Studio startup when the 'Restore workspace at startup' option was not checked.
Modified the bit and bit debuggers to set the debug process's current working directory to the location of the script being debugged. The current working directory is restored to its previous setting when the debug session ends. Added 'Run' menu item to the context menu of the project toolbar window. The 'Run' menu item only displays for WIL file type files. Added a new 'Debug Parameters Use this menu item to displays a Debug Parameter dialog.
Debug parameters remain associated with a script for as long as the script file is an open document associated with a workspace. The parameters will remain associated with a file in the current workspsce between WinBatch Studio sessions when the "Restore workspace at startup" option is selected. The parameters will also remain associated with a file even when the "Restore workspace at startup" is not selected, if the file's saved workspace is not the current workspace at session end.
The Debug Parameters dialog displayed by selecting the 'Debug Parameters The dialog displays the list of parameters, one per line, along with a toolbar. The list's toolbar buttons and the dialog's buttons perform the following tasks: New button Creates a new parameter. Enter the parameter value in the edit box displayed in the toolbar's list and press return or click on the list outside of the edit box to create the parameter. Delete button Deletes a selected parameter from the list.
Move up button Moves a selected parameter toward the top of the parameter list. This changes the order in which the parameters are passed to the WIL script. Move down button Moves a selected parameter toward the bottom of the parameter list.
OK Saves changes and dismisses the dialog. Cancel Closes the dialog without saving changes. Note that it is unnecessary to quote parameter values unless you want quotes to be part of the parameter value passed to the WIL script.
When this type is used the values of the function's 3rd and 4th parameters are ignored. Corrected problem in the DllStructPeek function that sometimes caused truncation of returned Unicode string structure members. Added support for multiline text string constants: Multiline text string constants are text string constants that occupy more than one line in the body of a script. This includes the ASNI new line line-feed character that delimits each line in scripts and any white-space characters.
In order to maintain preprocessor performance the colon : and number-sign characters must be escaped in multiline text string constants. To place a single colon or number-sign in a multiline text string, specify a double colon :: or number-sign.
The failure to escape these characters results in an error. To use multiline text string constants in the 'then' or 'else' clause of the single statement form of the 'if' statement syntax, each line of the constant after the first line must begin with either a 'then' or an 'else'. Any white-space characters before the 'then' or 'else' and one white-space character after the 'then' or 'else' are not included in the text constant.
Note that multiline text string constants are used as is without the special single line syntax requirements in structured 'if' syntax code blocks. Substitution is permitted in multiline text string constants. PopMenu Modified active window detection so that it blocks use of Windows Runtime application windows on Windows 10 unless no regular desktop window is active. This change does not affect PopMenu on older versions of Windows.
Miscellaneous usability fixes and improvements. Added multiline string syntax coloring. This release introduces the concepts of tabbed editing, workspaces and projects to WinBatch Studio: Added a 'Tab View' menu item to the View menu bar menu. Selecting this menu item turns tab style file viewing on and off in the main editor window. Tabs are located Microsoft Excel style near the bottom of the main window. Added a 'Project Tree' menu item to the View menu bar menu.
This menu item toggles the display of a dialog toolbar window containing a hierarchical display of all user created projects associated with the current workspace. Added a new 'Projects' menu item to the main menu bar.
This menu item contains menu and sub menu use to create, modify, and control workspaces and projects. Many changes made with these menu items are reflected in the project dialog toolbar.
Project related menu items are only enabled when the project toolbar window is visible. The new menu has the following menu items: 'Add' This sub menu displays 4 menu items: 'New Project' This menu item displays a dialog that allows you to create a new project in the current workspace or as a sub project of the current project in the workspace.
Note that the file is not physically created on the computer's file system. Note that the 'Add' menu items are also available as Project Tree dialog toolbar context menus items. Note that double-clicking a file item in the project tree dialog toolbar will also open the selected file in the main file viewing area of the editor.
Note that removed files are not deleted from the file system. This dialog allows you to create, remove rename or select a workspace as the active workspace. A workspace consists of user defined tools, projects, project files and open windows. The workspace dialog is described below.
The names of the most recently used workspaces are display below the 'Close Workspace' item. Selecting a workspace name makes the workspace the active workspace. The Workspace Manager dialog is displayed by selecting the 'Workspaces' menu item. It allows you to create, rename, open and close WinBatch Studio workspaces. FileSizeEx file-list [ ,format] Finds the total size of a group of files including open files. FileTimeGetEx filename, time-field Gets extended time information for a file or directory.
FileTimeSetEx file-list, datetime, time-field Sets extended time information for one or more files. FileVerInfo filename, language-key, resource-string Returns a version resource string from a binary file.
InstallFile filename, targname, default-targdir, delete-old, flags Installs a file. ShortcutEdit link-name, target, params, start-dir, show-mode [, shortcut-type] Modifies the specified shortcut file. ShortcutExtra link-name, description, hotkey, icon-file, icon-index [, shortcut-type] Sets additional information for the specified shortcut file.
ShortcutInfo link-name [, shortcut-type] Returns information on the specified shortcut file. ShortcutMake link-name, target, params, start-dir, show-mode [, shortcut-type] Creates a shortcut for the specified filename or directory. PipeClientSendRecvData pipe-handle, data, read-timeout Writes a message to a named pipe and then reads a message back. PipeServerCreate pipe-name, timeout Creates an instance of a named pipe and waits for a client to connect.
RegApp program-name, path Creates registry entries for a program under "App Paths". RegConnect computer-name, handle [,remoteOSflag] Connects to a predefined registry handle on another computer. RegCreateKey keyhandle, sub-key string [,view-flag] Returns a handle to a new registration database key.
RegDeleteKey keyhandle, sub-key string [,view-flag] Deletes a key and data items associated with the key. RegDelValue handle, subkey-string [,view-flag] Deletes a named value data item for the specified subkey from the registry.
RegEntryType handle, subkey-string [,view-flag] Returns the type of data for the specified subkey. RegExistKey handle, subkey-string [,view-flag] Checks whether a registry key exists. RegExistValue handle, subkey-string [,view-flag] Checks whether a value for a registry key exists.
RegOpenKey keyhandle, sub-key string [,view-flag] Returns a handle to an existing registration database key. RegOpenKeyEx handle, subkey-string, mode, view-flag, reserved Opens a registry key with specified access rights.
RegQueryBin handle, subkey-string [,view-flag] Returns binary value at subkey position. RegQueryEx handle, subkey-string, delimiter, type [,view-flag] Retrieves a value from the registry. RegQueryItem handle, subkey-string [,view-flag] Returns a list of named data items for a subkey. RegQueryKeys handle Returns a tab-delimited list of subkey names under a specified key.
RegQueryStr handle, subkey-string [,view-flag] Retrieves and expands a string value from the registry. RegQueryValue keyhandle, sub-key string [,view-flag] Returns data item string at sub-key position. RegSetBin handle, subkey-string, value [,view-flag] Sets a binary value in the Registration Database.
RegSetEx handle, subkey-string, value, delimiter, type [,view-flag] Sets a value in the registry. RegSetValue keyhandle, sub-key string, value [,view-flag] Sets the value of a data item in the registration database. IsFloat string Tests whether a number can be converted to a floating point number. StrClean source-string, characters, replacement, match-case, mode Removes or replaces characters in a string.
StrCnt string, sub-string, start-pos, end-pos, flags Counts the occurrences of a substring within a string. StrFix base-string, pad-string, length Pads or truncates a string to a fixed length using characters. StrFixBytes base-string, pad-string, length Pads or truncates a string to a fixed length using bytes. StrFixBytesL base-string, pad-string, length Pads or truncates the left side of a string to a fixed length using bytes. StrFixChars base-string, pad-string, length Pads or truncates a string To a fixed length using characters.
StrFixCharsL base-string, pad-string, length Pads or truncates the left side of a string to a fixed length using characters. StrFixLeft base-string, pad-string, length Pads or truncates the left side of a string to a fixed length using characters. StrIndex base-string, sub-string, start, direction Locates a string within a larger string. StrIndexNc base-string, sub-string, start, direction Locates a string within a larger string, ignoring case.
StrInsert base-string, new-string, [pad-string [, start [, length]]] Inserts a new string into an existing string. StrLenWild string, pattern, start Returns the length of wildcarded text within a larger string. StrOverlay base-string, new-string, [pad-string [, start [, length]]] Overlays a new string onto an existing string. StrReplace string, old, new Replaces all occurrences of a sub-string with another. StrScan string, delimiters, startpos, direction Finds an occurrence of one or more delimiter characters in a string.
StrSubWild string, pattern, start Extracts a substring matching wildcarded text from within a larger string. StrTypeInfo string, flag Gets character-type information for a string, or information for a character-type. AppWaitClose program-name [, flags [, retries]] Suspends WIL program execution until a specified application has been closed.
ComputerNameSet new-computername, format Sets the name associated with the local computer. DllHinst partial-winname Obtains an application instance handle for use in DllCalls when required. DllHwnd partial-winname Obtains a window handle for use in DllCalls when required. Exclusive mode Controls whether or not other Windows programs will get any time to execute. IntControl request , p1, p2, p3, p4 Special function which permits an internal operation.
KeyToggleSet key, value Sets the state of a toggle key and returns the previous value. SysParamInfo request, value, ini-update Retrieves or sets the value of one of the system-wide parameters. WinExeName partial-winname Returns the name of the executable file which created a specified window. WinResources request [, format] Returns information on available memory and resources.
The following example from TimeJulianDay grabs the current time and day of the week. The following example from TimeJulianDay grabs the current time and day of the year. TimeDiffDays datetime1, datetime2 Returns the difference in days between the two dates. TimeDiffSecs datetime1, datetime2 Returns the time difference in seconds between the two date times. FindWindow window class name Returns a window title matching a specified class name. WinActiveChild partial-parent-windowname, partial-child-windowname Activates a previously running child window.
WinExistChild partial-parent-windowname, partial-child-windowname Tells if a specified child window exists. WinItemChild partial-parent-windowname Returns a list of all the child windows under this parent. WinItemizeEx partial-winname, multiple, hidden [, return-type] Returns the full name of window s matching a partial window name.
WinPlace x-ulc, y-ulc, x-brc, y-brc, partial-winname Changes the size and position of an application window on the screen. WinPlaceChild x-ulc, y-ulc, x-brc, y-brc, partial-parent-winname, partial-child-winname Places a child window. WinPositionChild partial-parent-winname, partial-child-winname Returns child window position. WinTitle old-partial-winname, new-winname Changes the title of an application window.
WinWaitChild partial parent winname, partial child winname, timeout Waits for a child window to exist. WinWaitClose partial-winname [, timeout] Waits until an application window is closed.
WinWaitReady partial-winname, timeout Waits until an application is waiting for user input. All rights reserved. Arithmetic Functions Abs integer Returns the absolute value of a number. IsNumber value Determines if a string represents a valid number. Max number [ ,number Min number [ ,number Random integer Generates a positive random number. TimeAdd datetime, datetime difference Adds two YmdHms variables. TimeDiff datetime1, datetime2 Returns the difference between two points in time.
TimeJulianDay datetime Returns the Julian day given a datetime. Array Functions ArrayFileGet filename [, null-char [, extra-alloc]] Converts a file to a one-dimension array. Arrayize list, delimiter Converts a delimited list to an array.
ArrDimension dim1 [, dim2 [, dim3 [, dim4 [, dim5 ] ] ] ] Creates an array. ArrInfo array, request Gets information about an array. ArrInitialize array, value Initializes an array. Binary Functions BinaryAlloc buffsize Allocates a memory buffer of the desired size. Or help your users manage multiple sets of open applications, displaying windows in their proper positions and sizes automatically, at the press of a key.
WIL provides over functions that allow you to control nearly every part of Windows and Windows applications. Traditional batch-language file management capabilities such as copying files, changing the directory of launching applications Support for system control -- read and change system values like the time, the current wallpaper or check to see if a mouse button or shift key is pressed Direct manipulation of applications via recording and sending keystrokes Manipulate windows change their size or location , control multimedia hardware like sound cards and CD-ROM drives Extensive string manipulation and integer and floating point arithmetic Complete binary access to any type of file Support for structured programming, including IF Since you've got over functions at your fingertips, it's no problem to automate and bullet-proof login procedures for any kind of user including you.
Or create an application that prints files overnight to multiple printers from multiple sources before shutting down your computer.
0コメント