KeyBind User Commands

These are the commands which can be used inside a KeyBind Task.

Commands can be chained together (with "**") to run sequentially or better yet, placed inside .kc scripts, which are just plain text lists of commands. Commands can be paths to .kc scripts and .kc scripts can have commands which are themselves paths to other .kc scripts and so on; big fun.

There are many commands here; hopefully you should be able to accomplish most tasks. If not, let me know.

A few conventions..

Where a function has multiple values and you only want to specify one of the later values, sending "-" for the earlier values will usually get you the default value, whatever it is. For some commands this will mean "what you previously set as the default", i.e. by moving an InfoBox() to a new position.

In text you type directly, \n inserts a line break, e.g. Text(This is some text\nAnd another line here). This also works for ClipBoard text, file data, Input() prompts, box messages and other places. In Speak(), it separates spoken text. Paths (like C:\new files) are recognised and will retain their backslashes.

Parameters are usually split by pipe characters "|". Where a command includes a Task, the task will be last, so its own commands' pipes don't get confused with the current command's parameters. Oh my! Even that sentence was confusing. Each Command's sections should hopefully make everything clear.

Everything is runnable.

This page will be a lot more fun if you have KeyBind installed; click anywhere on any runnable Task to instantly select the entire Task, perfect for your RunSelected() HotKey!. Mash your KeyBind keys (Ctrl+Win+Alt; everything left of the spacebar) + R, to run the example Task directly inside KeyBind. You will see the results instantly.

Note: If you play with File*() command examples, real files will be created on your desktop!


The Commands:

Abort()

HotKey: Ctrl+Win+Alt+Pause

See also: Quit(), Reload(), Suspend()

Access()

Activate()

See also: CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Launch(), Maximize(), Minimize(), Restore(), Wait(), WindowOnTop(), WinMove()

AppUsage()

See also: ListView(), OpenDataDir(), Report(), Usage()

Assign()

Alias of VarAssign()

Beep()

See also: Chord(), PlaySound(), Silence(), StopAudio()

CDTrayClose()

See also: CDTrayOpen(), OpticalTrayClose(), OpticalTrayOpen()

CDTrayOpen()

See also: CDTrayClose(), OpticalTrayClose(), OpticalTrayOpen()

ChangeCase()

See also: ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), Text(), VarAssign(), WordCount()

ChoiceBox()

See also: If(), InfoBox(), Input(), MessageBox(), Variable Commands

Chord()

See also: Beep(), Silence(), StopAudio()

ClearSlots()

See also: ChangeCase(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

Click()

Alias of MouseClick()

ClickDrag()

See also: MouseClick(), MouseDown(), MouseMove(), MouseUp()

ClipBoardSlots()

See also: ClearSlots(), CopyAppend(), CutAppend(), PasteSlot()

CloseWindow()

See also: Activate(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Minimize(), Restore(), WindowOnTop(), WinMove()

ColorReport()

See also: CopyColor(), Mag(), SwitchColorFormat()

ConfigEditor()

HotKey: Ctrl+Win+Alt+X

See also: EditIniFile(), KeyBind()

Confirm()

See also: ChoiceBox(), If(), MessageBox()

Copy()

See also: ChangeCase(), ClearSlots(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

CopyAppend()

HotKey: Ctrl+Shift+C (sample HotKeys)

See also: ChangeCase(), ClearSlots(), Copy(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

CopyColor()

HotKey: Ctrl+Win+Alt+C

See also: ColorReport(), Mag(), SwitchColorFormat()

Count()

See also: FileReadData(), FileWriteData()

CountDown()

See also: Beep(), PlaySound()

CreateStartupTask()

Cut()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

CutAppend()

HotKey: Ctrl+Shift+X (sample HotKeys)

See also: ChangeCase(), ClearSlots(), ClipBoardSlots(), Copy(), CopyAppend(), Cut(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

Date()

HotKey: Ctrl+Alt+A (sample HotKeys)

See also: Text(), Time()

DeDupeLines()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

Define()

See also: ConfigEditor(), Copy(), DefineSelected(), FileAppendData(), HttpGET(), If(), MessageBox(), Speak(), SpeakSelected(), VarAssign(), WebSearchSelected()

DefineSelected()

HotKey: Ctrl+Win+Alt+D

See also: Define(), HttpGET(), HttpPOST(), SelectWord(), SpeakSelected(), Variable Commands, WebSearchSelected()

Delete()

See also: EmptyRecycleBin(), Recycle()

Dimensions()

HotKey: Ctrl+Win+Alt+0

See also: ClipBoardSlots(), PasteSlot(), SnapWin(), WinMove()

DoubleClick()

See also: ClickDrag(), MouseClick()

Download()

See also: FileReadData(), HttpGET(), HttpPOST(), Url()

EditIniFile()

HotKey: Ctrl+Win+Alt+I

See also: ConfigEditor(), KeyBind()

Else()

See also: EndIf(), If(), IfNot()

EmptyRecycleBin()

See also: Delete(), Recycle()

EndIf()

See also: Else(), If(), IfNot()

Execute()

See also: ExecuteSelected(), Launch(), RunSelected()

ExecuteSelected()

HotKey: Ctrl+Win+Alt+E

See also: Execute(), RunSelected()

FileAppendData()

See also: FileReadData(), FileWriteData()

FileCopy()

See also: FileMove(), FolderCopy()

FileCreate()

See also: FileWriteData(), FolderCreate()

FileLineCount()

See also: FileReadData(), FileSize(), Num2Words(), VarAssign(), WordCount()

FileList()

See also: FileReadData(), FolderCopy(), ListView()

FileMove()

See also: FileCopy(), FolderMove()

FileOpenDialog()

See also: FileSaveDialog(), FolderSelect(), MessageBox()

FileReadData()

See also: FileAppendData(), FileWriteData(), Variable Commands

FileSave()

Alias of FileWriteData()

FileSaveDialog()

See also: FileOpenDialog(), FolderSelect(), MessageBox()

FileSize()

See also: FileTime(), If(), Variable Commands

FileTime()

See also: FileSize(), If(), Variable Commands

FileWriteData()

See also: FileAppendData(), FileCreate(), FileReadData()

FindReplace()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines(), VarAssign(), WordCount()

FolderCopy()

See also: FileCopy(), FolderMove()

FolderCreate()

See also: FileCreate(), FolderCopy(), FolderMove()

FolderMove()

See also: FileMove(), FolderCopy()

FolderSelect()

See also: FileOpenDialog(), FolderCreate(), MessageBox()

FolderSync()

See also: FolderCopy(), FolderMove()

ForEach()

See also: FileList(), Wait()

GetWindow()

See also: Activate(), CloseWindow(), Dimensions(), KillWindow(), Maximize(), Minimize(), Restore(), WindowOnTop(), WinMove()

HIIT()

See also: CountDown(), Beep(), Speak()

History()

Alias of ShowRunHistory()

HotKeyControl()

See HotKeyControl() under *Control().

HttpGET()

See also: DefineSelected(), Download(), HttpPOST(), Launch(), Url(), VarAssign(), WebSearchSelected()

HttpPOST()

See also: DefineSelected(), Download(), HttpGET(), Launch(), Url(), VarAssign(), WebSearchSelected()

If()

See also: Else(), EndIf(), IfNot(), IfRunning()

IfNot()

See also: Else(), EndIf(), If()

IfRunning()

See also: If(), KillProcess(), Terminate()

InfoBox()

See also: MessageBox(), ProgressBar()

Input()

See also: FileReadData(), Variable Commands

KeyDelay()

See also: Date(), Text(), Time()

KillProcess()

See also: IfRunning(), KillWindow(), Terminate()

KillWindow()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillProcess(), Maximize(), Minimize(), Restore(), WindowOnTop(), WinMove()

Launch()

See also: Execute(), HttpGET(), HttpPOST(), Url()

ListView()

See also: @ExplorerSelection, ClipBoardSlots(), FileList(), ForEach()

LockPC()

See also: SystemHibernate(), SystemSleep()

LockWorkStation()

Alias of LockPC()

Mag()

HotKey: Ctrl+Win+Alt+M

See also: ClipBoardSlots(), ColorReport(), CopyColor(), Dimensions(), PasteSlot(), SwitchColorFormat()

MagPicker()

Alias of Mag()

Mail()

Alias of SendMail()

Maximize()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Minimize(), Restore(), SetTransparency(), WindowOnTop(), WinMove()

HotKey: Ctrl+Win+Alt+left-click

See also: NewHotKey(), ShowHotKeys()

MessageBox()

See also: InfoBox(), ProgressBar()

Minimize()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Restore(), SetTransparency(), WindowOnTop(), WinMove()

MouseClick()

See also: ClickDrag(), DoubleClick(), MouseMove()

MouseDown()

See also: ClickDrag(), MouseUp()

MouseMove()

See also: ClickDrag(), MouseClick()

MouseUp()

See also: ClickDrag(), MouseDown()

MouseWheel()

See also: Record(), {WheelUp} / {WheelDown}

MsgBox()

Alias of MessageBox()

NewHotKey()

See also: HotKeyControl(), Menu(), ShowHotKeys()

NewSchedule()

See also: ScheduleControl(), Schedules()

NewSentinel()

HotKey: Ctrl+Win+Alt+S

See also: Ignore(), MoveTo(), OpenWith(), Rename(), Sentinel(), SentinelControl()

NewTrigger()

HotKey: Ctrl+Win+Alt+N

See also: ReloadWindowTriggers(), Triggers()

Num2Words()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FileLineCount(), FindReplace(), Paste(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

OnTop()

Alias of WindowOnTop()

OpenDataDir()

HotKey: Ctrl+Win+Alt+O

See also: ConfigEditor(), EditIniFile(), OpenTempDir()

OpenSentinelFolder()

See also: MoveTo(), OpenTargetDir(), Sentinel()

OpenTempDir()

See also: OpenDataDir()

OpticalTrayClose()

Alias of CDTrayClose()

OpticalTrayOpen()

Alias of CDTrayOpen()

Options()

See also: AppUsage(), KeyBind(), Report().

Paste()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), PastePlainText(), PasteSlot(), SortLines(), WordCount()

PastePlainText()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PasteSlot(), SortLines(), WordCount()

PasteSlot()

See also: ChangeCase(), ClearSlots(), ClipBoardSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), SortLines(), WordCount()

Pause()

See also: KeyDelay(), Wait()

PlaySound()

See also: Beep(), SetVolume(), Silence(), StopAudio()

ProgressBar()

See also: InfoBox(), MessageBox()

Quit()

HotKey: Ctrl+Win+Alt+Q

See also: Abort(), Reload()

Record()

HotKey: Ctrl+Win+Alt+F9

See also: RecorderControl(), StopRecording()

RecorderControl()

See RecorderControl() under *Control().

Recycle()

See also: Delete(), EmptyRecycleBin()

Reload()

HotKey: Ctrl+Win+Alt+F5

See also: KeyBind(), Quit(), ReloadWindowTriggers()

ReloadWindowTriggers()

See also: NewTrigger(), Reload(), Triggers()

Rename()

See also: MoveTo(), OpenWith(), ResetSequence()

Report()

See also: AppUsage(), HotKeyControl(), ScheduleControl(), SentinelControl(), TriggerControl().

ResetSequence()

HotKey: Ctrl+Win+Alt+U

See also: Rename(), Sentinel()

Restore()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Minimize(), SetTransparency(), WindowOnTop(), WinMove()

Run()

See also: Execute(), RunSelected()

RunSelected()

HotKey: Ctrl+Win+Alt+R

See also: Execute(), ExecuteSelected(), Launch()

ShowRunHistory()

See also: History(), RunSelected()

ScheduleControl()

See ScheduleControl() under *Control().

Schedules()

HotKey: Ctrl+Win+Alt+Z

See also: Sentinel(), Suspend(), Triggers()

Screen()

See also: ScreenSaver(), SystemSleep()

ScreenSaver()

See also: Screen(), SystemSleep()

SelectWord()

See also: DefineSelected(), SpeakSelected(), WebSearchSelected()

SendMail()

See also: Download()

Sentinel()

HotKey: Ctrl+Win+Alt+F

See also: Ignore(), MoveTo(), NewSentinel(), OpenWith(), SentinelControl()

SentinelControl()

See SentinelControl() under *Control().

SetTransparency()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Minimize(), Restore(), WindowOnTop(), WinMove()

SetVolume()

See also: Beep(), PlaySound(), Speak()

ShowHotKeys()

HotKey: Ctrl+Win+Alt+K

See also: Menu(), NewHotKey()

Silence()

HotKey: Ctrl+Win+Alt+A

See also: PlaySound(), Speak(), StopAudio(), StopSpeaking()

Sleep()

Alias of Pause()

SnapWin()

See also: Dimensions(), WinMove()

SortLines()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), WordCount()

Speak()

See also: Define(), SetVolume(), Silence(), SpeakSelected(), StopSpeaking()

SpeakSelected()

HotKey: Ctrl+Shift+S (sample HotKeys)

See also: Define(), DefineSelected(), SelectWord(), Speak(), StopSpeaking()

StopAudio()

See also: Beep(), PlaySound(), Silence()

StopRecording()

See also: Record(), RecorderControl()

StopSpeaking()

See also: Silence(), Speak(), SpeakSelected()

Suspend()

HotKey: Ctrl+Win+Alt+B

See also: Schedules(), Sentinel(), Triggers()

SwitchColorFormat()

See also: ColorReport(), CopyColor(), Mag()

SystemBeep()

See also: Beep(), HIIT()

SystemHibernate()

See also: LockPC(), SystemShutdown(), SystemSleep()

SystemLogOff()

See also: LockPC(), SystemReboot(), SystemShutdown()

SystemReboot()

See also: SystemLogOff(), SystemShutdown()

SystemShutdown()

See also: SystemHibernate(), SystemLogOff(), SystemReboot()

SystemSleep()

See also: LockPC(), Screen(), SystemHibernate()

Terminate()

See also: IfRunning(), KillProcess()

TestMailSettings()

See also: Options(), SendMail().

Text()

See also: Copy(), Date(), KeyDelay(), Time()

Time()

See also: Date(), Text()

TriggerControl()

See TriggerControl() under *Control().

Triggers()

HotKey: Ctrl+Win+Alt+T

See also: NewTrigger(), ReloadWindowTriggers(), Schedules(), Suspend()

Url()

HotKey: Ctrl+Alt+Home (sample HotKeys)

See also: Download(), HttpGET(), HttpPOST(), Launch(), WebSearchSelected()

Usage()

Alias of AppUsage()

VarAssign()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarDelete(), VarLoad(), VarSave(), VarsDeleteAll(), VarsDisplay(), VarsLoadAll(), VarsSaveAll()

VarDelete()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarLoad(), VarSave(), VarsDeleteAll()

VarLoad()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarDelete(), VarSave(), VarsLoadAll()

VarSave()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarDelete(), VarLoad(), VarsSaveAll()

VarsDeleteAll()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarDelete(), VarsDisplay(), VarsLoadAll(), VarsSaveAll()

VarsDisplay()

HotKey: Ctrl+Win+Alt+V

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarLoad(), VarSave(), VarsLoadAll()

VarsLoadAll()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarLoad(), VarsDisplay(), VarsSaveAll()

VarsSaveAll()

See also: DefineSelected(), FileLineCount(), FileReadData(), Input(), VarAssign(), VarSave(), VarsDeleteAll(), VarsLoadAll()

Visit()

Alias of Url()

Wait()

See also: Activate(), IfRunning()

WebSearchSelected()

HotKey: Ctrl+Win+Alt+W

See also: Define(), DefineSelected(), HttpGET(), HttpPOST(), SelectWord(), Url()

{WheelUp} / {WheelDown}

See also: MouseWheel()

WindowMove()

Alias of WinMove()

WindowOnTop()

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Minimize(), Restore(), SetTransparency(), WinMove()

WinMove()

HotKey: Ctrl+Alt+Numpad0-9, F1 (sample HotKeys)

See also: Activate(), CloseWindow(), Dimensions(), GetWindow(), KillWindow(), Maximize(), Minimize(), Restore(), SnapWin(), WindowOnTop()

WinSnap()

Alias of SnapWin()

WordCount()

See also: ChangeCase(), ClearSlots(), Copy(), CopyAppend(), Cut(), CutAppend(), DeDupeLines(), FileLineCount(), FindReplace(), Num2Words(), Paste(), PastePlainText(), PasteSlot(), SortLines()

*Control()

These are the master control functions, with them you can set or edit any aspect of your HotKeys, Triggers, Sentinels and Schedules (there's also one for recorder options).

HotKeyControl()

See also: NewHotKey(), , Report(), ScheduleControl(), ShowHotKeys()

RecorderControl()

See also: Record(), StopRecording()

ScheduleControl()

See also: Schedules()

SentinelControl()

See also: HotKeyControl(), NewSentinel(), ScheduleControl(), Sentinel()

TriggerControl()

See also: HotKeyControl(), NewTrigger(), SentinelControl(), Triggers()



KeyBind()

Lastly, the KeyBind() command. Think of this as the Master command, the meta-command. You can alter almost any setting directly, using this command.

Most settings accept only particular values. For example, KeyBind(hooks|sausage) leaves the low-level hook setting unchanged because "sausage" is not an accepted value. See the settings list below for the values each setting accepts.

Note: The KeyBind() command does not accept "toggle" operations, only named instructions which set a specific state, e.g. "on".

There are built-in handlers for most of these commands, writing the ini and setting the new state live. These handlers are there to stop you shooting yourself in the foot, creating settings which would break your setup. Settings without a handler pass straight through as-supplied.

KeyBind()

See also: ConfigEditor(), EditIniFile(), Reload()

Sentinel Commands:

Some commands work only with the Sentinel, or work differently when applied to a Sentinel, as there is no need to supply a file name; Sentinel is always working with whatever file appeared in its watched folder, which is kinda the whole point!

Folder Sentinel tasks must contain MoveTo() unless their first command is Ignore(). MoveTo() may appear anywhere in the sequence. File Sentinel tasks do not have this requirement.

You can of course add regular KeyBind commands to your Sentinel command, but these are the "special" commands which are only understood, at least in this form, by the Sentinel:

Ignore()

See also: MoveTo(), OpenWith(), Rename(), Sentinel()

MoveTo()

See also: Ignore(), OpenTargetDir(), OpenWith(), Rename()

OpenWith()

See also: MoveTo(), OpenTargetDir(), Rename()

OpenTargetDir()

See also: MoveTo(), OpenSentinelFolder()

Rename()

See also: MoveTo(), OpenWith(), ResetSequence()

Welcome to corz.org!

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