For all those who'd like to use new command: {cb:<text>} I'm describing how it can be used:
You only need to download autohotkey.com
Personally I would recommend Windows 'command line' but unfortunately you can't do with it one of the simplest thing that should be standard component of cmd after so many years of Microsoft existment.
To be honest you can do it with PowerShell Get-Clipboard, but still that should be only alternative for getting content of clipboard in cmd.
You only can put something to clipboard:
echo someText | CLIP
or take to clipboard from saved file:
clip < %HOMEPATH%/desktop/someText.txt
But you can't do something what should be between these two operations, so you can't take text from (content of) clipboard, or just read it and assign to some variable. *first or second line you type in 'command line' console (type cmd in run bookmark of Windows Start button) or save in .txt file as batch file (so with .bat extension instead of .txt). Then run.
And here comes Autohotkey with very simple way to do the above. When you download and install it, you create .ahk file (later if you need compiled to .exe) and put inside this code line:
FileAppend, , %A_ScriptDir%\%clipboard%.txt
return
FileApend is command to create files (not only text ones) as well as putting some content inside. The above line checks location of just executed script file and create there empty text file, giving it name of clipboard content.
This script can be ran by XMBC, for ex. by this commands in simulated keystrokes:
{cb:someText}{run:C:\Users\Maro\Desktop\script.ahk}
where someText is that you want to put to clipboard, what will be used by the .ahk script to name new .txt file, after XMBC run second command (that with a path)
Why to do it? There are probably many goals of its usage, but for me it's to run a JavaScript file with many different functions. They can be used in some programs better than imitation of human actions you usually do using XMBC simulated keystrokes.
Instead of {run:D:\text.txt}{waitms:500}{ctrl}a{ctrl}c{alt}{f4} and so on, like open internet browser, translator, paste text, move mouse cursor to some point, and click, you can write a script which will do the same but for sure with no fail. That was of course cheap example, and personally I woulnd't wirte any script to do that examplary action, just used what XMBC gives. But there are some situations where some things doens't happen once, and you don't want to click all the time to run XMBC action. The more beside using loop, sometimes program has to decide how to act.
------------------------------------------------------------------------------------------------------------------------------------
ITEM 1:
Phil, I have new idea what you could do in next beta, that XMBC users will use CB command for other needs than my. Beside PATHS and VARIABLES bookmarks/buttons you can add another one: TEXTS or CONTENT.
As you see now we can put rather short text lines to {cb:<text>}. But if there was TEXT section, we can could store there long some longer texts which could be used as variable to be put to CB command.
I have no idea why someone had to do it, so maybe it's not worth of even thinking of it

but hmmm I could keep there snippsets, general constructions of codes I could constantly use creating some functions or objects. After clicking certain XMBC buttons it would paste to my editor some unfilled / undone schemes, where then I would type in only things I need at the moment, so without writing everything from beggining.
ITEM 2a:
Maybe that could be also good for creting files/folders with name of clipboard? Not the way it's now because you could by clicking some XMBC button have only one name. If current CB command was extended of reading clipboard by for ex.: {CBR} then we could make such simulate keystroke code:
{crt:C:\Users\Maro\Desktop, CBR, csv}
where there would be 2 - 3 arguments. TWO (path and fileName with extension) if someone did that without CBR so:
{crt:C:\Users\Marek\Desktop, someFile.csv}
and THREE if CBR was used as second parameter, then extension would take 3rd place.
ITEM 2b:
something like saving content from TEXTS button or text taken to clipboard to already existing file could automate many repeated human actions too:
{sav: <path>, <variable>} where path is location of file we want to "secretly" open (so without visual action) and paste variable (text). Path could be taken from PATHS bookmark, while text would be CBR or content of TEXTS bookmark.
ITEM 2c:
Let's go forward. We "have" now

PATHS, VARIABLES and TEXTS bookmarks (to make all easier they could be opened as .txt files stored in ...\Highresolution Enterprises\XMouseButtonControl folder as separate files, each for other category). Inside of each (opened by clicking related button in simulated keystrokes window) users would put their variables due to some easy described rules. So if that was VARIABLES file then content of it could look like:
save = {ctrl}s{tab}{enter};
copy = {ctrl}a{ctrl}c{run:notepad.exe}{ctrl}v;
pass = {tab}userName{waitms:250}{tab}12345{waitms:250}{enter};
PATHS:
desktop = 'C:\Users\User\Desktop\';
PS = 'C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)';
XMBC = 'C:\Users\User\AppData\Roaming\Highresolution Enterprises\XMouseButtonControl';
TEXTS (divided by lines?), it's hard to make some contructions of code in notepad, as they have indentations, even there can be problem with plain text, so it'll fail
Anyway I started 2c to propose new button/bookmark: CLIPBOARDS, with array-like construction. So if we had TCB (to clipboard) or CBA (clipboard array/add) and someone used it with XMBC to bind to some button that person could write this code:
{ctrl}a{ctrl}c{CBA} or {seco}{CBA} if someone set in variables 'seco' for select all and copy commands.
How that could be used? even with only {CBA} in simulated keystrokes. For example someone browse internet for looking some information on many pages. Or someone like me search for some codes, but needs to have only some parts of them to keep and use later or look into more carefuly. He doesn't need to add some of them to favorites, as he needs only some part of text on these sites. So he marks with mouse that interesting part of text and click for ex. Middle Button which sends selected content to CLIPBOARDS section. Later when he has time he opens CLIPBOARD bookmark and some of them delete, while some keep, and then by hand or automatically (if there is such option), transfer it to .txt file, while content of CLIPBOARD section is cleared.
OK, I didn't know I will write so much again. I had to come with little tutorial about new command {cb}

so probably I mistaken topics
