KeyBind User @Macros

As far as KeyBind is concerned, a @Macro is just some data; usually text; the value of which might change at any time.

Some have near-fixed values, like @Documents, which is unlikely to change during the execution of some task. Others are more dynamic, like @Sec and @MSec, which change every second and millisend, respectively. You can also make your own on-the-fly, which KeyBind calls "variables"; these can be used in the same way as @Macros and are also accessed via the "@Word" convention.

In short, all KeyBind tasks and paths accept @Macros. KeyBind will tranlate the @Macro to its live value, the moment it's used, so @Sec, for example, could be used to produce a file name timestamp accurate to one second.

You can mix KeyBind @Macros and your own @Variables and use them inside .kc scripts exactly as you would in in any Task. They are also used extensively inside the default ini file, KeyBind transforming the @Macro values into their "real" values at runtime.

The @Macro/@Variable then, is simply a placeholder for some current value, whatever it is.

As mentioned, you can use @Macros in supported KeyBind.ini settings, which is basically all of those where it might be useful to do so. The INI examples below (from the main [KeyBind] section) will hopefully give you a better idea of their potential.

Note: In the text below, any command, setting or rename pattern which might be useful to paste somewhere, click it, and it will be automatically selected for you, ready to copy / run* / whatever.

* If KeyBind is running with its default HotKeys, you can use Ctrl+Win+Alt+R to run the selection directly in KeyBind.

A few conventions..

Macros are spelt exactly as shown, checking is case-insensitive, so capitalize however you like. If a macro has no value right now (nothing selected, empty clipboard, etc.), it quietly becomes an empty string.

Some macros only make sense inside certain commands; where that applies, it says so in the entry.

The @Macros:

@AudioDevice

See also: @DisplayCount, @SSID, @USBDrive, @USBID, @USBLabel

@Center

See also: @DesktopX, @WindowX, @WorkAreaX

@ClipBoard

See also: @ClipData, @Selected

@ClipData

See also: @ClipBoard, @Selected

@Count

See also: @ExitValue, @Item

@DataDir

See also: @Desktop, @Documents, @HomeDir, @ProgramFiles, @ScriptsDir, @TempDir, @UserDir

@Date

See also: Date @Macros, @DateTimeX, @Time

Date @Macros

@MDay, @Mon, @Weekday, @WDay, @YDay and @Year

See also: @Date, @DateTimeX

@DateTimeX

@DateTime0 to @DateTime5

See also: @Date, Date @Macros, @Time

@Desktop

See also: @DataDir, @Documents, @HomeDir, @TempDir

@DesktopX

@DesktopWidth and @DesktopHeight

See also: @Center, @WindowX, @WorkAreaX

@DisplayCount

See also: @AudioDevice, @SSID, @USBDrive, @USBID, @USBLabel

@Documents

See also: @DataDir, @Desktop, @HomeDir, @UserDir

@ExitValue

See also: @Count, @HttpStatus, @Item

@ExplorerSelection

See also: @DroppedItem, @DroppedItemName, @Item, @Selected, @WatchedFile, @WatchedFileName

@HomeDir

See also: @DataDir, @Documents, @HomeDrive, @HomePath, @UserDir

@HomeDrive

See also: @HomeDir, @HomePath

@HomePath

See also: @HomeDir, @HomeDrive

@HttpStatus

See also: @ExitValue

@Item

See also: @Count, @ExitValue, @ExplorerSelection

@KeyBind

See also: @ProgramFiles, @ScriptsDir

@Me

See also: @Voice

@LookUp

See also: @Selected, @ClipBoard, Define(), DefineSelected(), WebSearchSelected()

@MyDocuments

Alias of @Documents

@ProgramFiles

See also: @HomeDir, @KeyBind, @ScriptsDir

@ScriptFullPath

Alias of @KeyBind

@ScriptsDir

See also: @DataDir, @KeyBind, @ProgramFiles

@Selected

See also: @LookUp, @ClipBoard, @ClipData, @ExplorerSelection

@SSID

See also: @AudioDevice, @DisplayCount, @USBDrive, @USBID, @USBLabel

@TempDir

See also: @DataDir, @Desktop, @Documents

@ThisApp

Alias of @KeyBind

@Time

See also: @Date, @DateTimeX, Time @Macros

Time @Macros

@Hour, @Min, @MSec and @Sec

See also: @Date, @Time

@USBDrive

See also: @AudioDevice, @DisplayCount, @SSID, @USBID, @USBLabel

@USBID

See also: @AudioDevice, @DisplayCount, @SSID, @USBDrive, @USBLabel

@USBLabel

See also: @AudioDevice, @DisplayCount, @SSID, @USBDrive, @USBID

@User

Alias of @Me

@UserDir

See also: @DataDir, @Documents, @HomeDir

@UserName

Alias of @Me

@UserProfileDir

Alias of @UserDir

@Voice

See also: @Me

@WindowX

@WindowX, @WindowY, @WindowWidth and @WindowHeight

See also: @Center, @DesktopX

@WorkAreaX

@WorkAreaLeft, @WorkAreaTop, @WorkAreaRight and @WorkAreaBottom

See also: @Center, @DesktopX, @WindowX

Sentinel @Macros

@Append

See also: @DroppedItem, @DroppedItemName, @LastRandom, @Random, @Sequence, @Stamp, @StampDate, @StampTime

@DroppedItem

See also: @Append, @DroppedItemName, @ExplorerSelection, @WatchedFile, @WatchedFileName

@DroppedItemName

See also: @Append, @DroppedItem, @ExplorerSelection, @WatchedFile, @WatchedFileName

@LastRandom

See also: @Random

@Random

See also: @Append, @LastRandom, @Sequence, @Stamp, @StampDate, @StampTime

@Sequence

See also: @Append, @LastRandom, @Random, @Stamp, @StampDate, @StampTime

@Stamp

See also: @Append, @LastRandom, @Random, @Sequence, @StampDate, @StampTime

@StampDate

See also: @Append, @LastRandom, @Random, @Sequence, @Stamp, @StampTime

@StampTime

See also: @Append, @LastRandom, @Random, @Sequence, @Stamp, @StampDate

@WatchedFile

See also: @DroppedItem, @DroppedItemName, @ExplorerSelection, @WatchedFileName

@WatchedFileName

See also: @DroppedItem, @DroppedItemName, @ExplorerSelection, @WatchedFile

User @variables

Your own variables: @name

See also: @Date, @Me, @Time

Welcome to autoconfig.corz.org!

Downloads @ /machine are offline while I update the server. Need something NOW, Mail Me!