Overview
Simulates both keyboard and mouse. Advanced functions and variables allow to create complex macros. Handles keystrokes like {{ctrl}{alt}{f1}} or even {{shift}{home}}{{ctrl}{c}} [Select text and copy to clipboard]. Supports a large variety of programs and games.
What's new?
EXEC
command allows to run applications straight from SuperMacro.
Format:{{EXEC:FILENAME|RUNASADMIN|ARGUMENTS}}
e.g.{{EXEC:C:\WINDOWS\NOTEPAD.EXE|0|C:\myfile.txt}}
- Can also be used to load websites e.g.
{{EXEC:https://barraider.com}}
EXEC function now allows first parameter to be a variable. - New command VarSetFromEnv allows setting variables from Windows Environment Variables.
- New DateTime functions:
AddDays
/AddMonths
/AddSeconds
/AddMinutes
/AddHours
- Add days/months/seconds/minutes/hours to an existing datetime (hint: negative value will reduce the days/months/...)DateDiff
- Compares two datetimes and return the time difference between them (result can be in days/hours/minutes/seconds/miliseconds) Example{{FUNC:DATEDIFF:RES:$date1:$date2:d}}
DateFormat
- Allows to format a date. Example:{{FUNC:DATEFORMAT:RES:$date1:dd/MM/yyyy HH:mm:ss}}
- New Math functions:
Round
- Rounds a value to the specified number of fractional digits.Floor
- Returns the largest integral value less than or equal to the specified number.Ceiling
- Returns the smallest integral value greater than or equal to the specified number.Abs
- Returns the absolute value of a specified number Example{{FUNC:ROUND:RES:3.14159265:2}}
- New command
AppendToFile
works just like OutputToFile but appends the file instead of overwriting it. - New command
SetIconFromFile
allows to set the Key's icon to a png file on the computer. - Added new Predefined Variable:
$SMSPACE
will represent a single space.