A few examples are commands to launch any program invisible, use mouse buttons and display ascii graphics.
Click a command for a better description and usage information.
Use Windows Common Dialog box to browse for a file.
Close any application Window.
The batch file script will wait the specified number of milliseconds before running the next command.
Tip #1 - You MUST use the prefix "rem " for the compiler to recognize the Advanced Commands. There must be only one space between REM and the Advanced Command or it will remain a COMMENT.
rem HideSelf
rem HideSelf
Tip #2 - Advanced Commands with the "At" suffix (graphical commands) will hide the console cursor.
The cursor is hidden so you can string graphical commands together without the cursor blinking on the screen.
You may want to use the CursorShow command after you use these commands.
Use Windows Common Dialog box to browse for a file. Use %~dps0 for the Start_Path to browse in the EXE path. Selected file is stored in variable %result%.
Use a Windows Dialog to browse for a folder. Selected folder is stored in the variable %result%.
Changes the color text will be printed on the screen.
Changes the color text will be printed on the screen back to default colors (FG=7 BG=0).
Close an application window. You must know the window title. Surround the Window_Title with quotes. Watch for double spaces.
Divides Number1 by Number2 and returns the result in the variable %result%.
Generates a random integer no larger than MaxInteger and returns the number in the variable %result%.
Lets the user type input (MASKED for passwords) and returns the result in the variable %result%.
Finds the percent [Number1] out of [Number2] and returns the result in the variable %result%.
If Number1 >= Number2 (Greater than or equal to) returns 1 if true and a 0 if false in the variable %result%.
Hide any window on the screen. You must know the window title. Surround the Window_Title with quotes. Watch for double spaces.
Launches any executable completely silent. Use double quotes "" if no options. Wait(1=YES 0=NO)
Filename and path cannot contain spaces. Recommend Embedding the target EXE. Use %MYFILES%\filename.exe to launch it.
If you must run an App with spaces in the path, use CD command to change the current directory then just enter the EXE filename without path.
If Number1 <= Number2 (Less than or equal to) returns 1 if true and a 0 if false in the variable %result%.
Limits the DecimalNumber to X number decimal places and returns the result to the variable %result%.
Moves the cursor Y number of spaces down and X number of spaces right from the top left corner.
Hides Cursor. Moves the cursor Y number of spaces down and X number of spaces right from the top left corner.
Makes the DecimalNumber an integer and returns the result in the variable %result%.
Create a button/hotspot that can be clicked with the mouse. Separate multiple buttons with a space.
Compile "rem MouseCMD GET" to get the coordinates of your buttons at run-time. They are stored in the clipboard.
The variable %result% will return which button number was pressed. See example.
Multiplies two numbers and returns the result in the variable %result%.
Hides Cursor. Paints a box on the screen at the Y X coordinates with the specified dimensions and BGcolor.
Prints a box centered on the screen with the specified border type.
Hides Cursor. Prints a box on the screen at the Y X coordinates with the specified dimensions and border type.
Prints one centered line of text on screen with the specified colors in the row Y.
Prints text on the screen with the specified colors without printing a Return after. Use PrintReturn command if you must.
Hides Cursor. Prints colored text on the screen at the Y X coordinates without printing a Return. Use PrintReturn.
Hides Cursor. Shades a box on the screen at the Y X coordinates with the specified dimensions.
Reveal a hidden window. You must know the window title. Surround the Window_Title with quotes. Watch for double spaces.