Shhhh Macro Commands

These are the script commands offered by the Shhhh Macro language.

The scripting language may be used to build a variety of quick text macros or to prompt for variables when you run the macro.

For instance the script:

Copyright {copyright} {year} {prompt:Name}

Would first prompt you for input via an input box asking for a value for the "Name" variable. Let's suppose we enter Shhhh! Digital as the name. After we finished entering that value and pressed Ok, the macro output would look like this:

Copyright © 2015 Shhhh! Digital


About Send Modes

Some applications don't support the Windows direct keyboard input method Shhhh! uses and in such case from the main interface of the program click [Settings...] then select one of the Send Mode options from the selection group:

Simulated Keystrokes: Sends the Shhhh password or text macro using the keyboard driver typing them as if they came from the hardware keyboard. This method of operation is not compatible with all applications but is for most.

Clipboard: Sends the Shhhh password or text macro using the clipboard. That means that the entirety of the output is loaded onto the Windows® clipboard and may be reproduced just like any other clipboard text via the Ctrl+V keyboard combination (holding down the Ctrl key and then pressing the V key).

Both: Attempts to send the Shhhh password or text macro using the keyboard driver and also loads the output text to the clipboard. This is the recommended setting.

If while using the Clipboard or Both setting there is no output after you've attempted to use a macro, try pressing Ctrl+V as this will paste the output from the Windows® clipboard.


Shhhh! Macro Commands

Here is a list of the script commands with their documented function.

{DESKPAINT} in v0.94.7.603
Opens the Deskpaint window. Deskpaint is a very simple paint tool that can be used to paint over areas of the desktop or any window beneath it which can then be clipped and saved to a Windows bitmap or Jpeg image.

{LAUNCH:URL} in v0.93.6.504
Can be used to launch any folder, document, program or website. URL specifies the target of the command. URL may be a local or UNC network folder or it may be a document or application or it may be website.

Eg:

{LAUNCH:mspaint.exe} runs the Windows paint application.
{LAUNCH:C:\Users\Alicia\Documents\Research}  opens the C:\Users\Alicia\Documents\Research folder.
{LAUNCH:http://shhhhdigital.blogspot.ca} opens the default web browser to the page http://shhhhdigital.blogspot.ca.
{LAUNCH:C:\Users\Alicia\Documents\Research\SY349_Schedule.xls} opens the SY349_Schedule.xls excel worksheet.

The {LAUNCH} command can be bound to its own hotkey and quickly launched any time.

{SHORTTIME} 
Displays the time in short time format.

{LONGTIME} 
Displays the time in long time format.

{SHORTDATE} 
Displays the date in short date format.

{LONGDATE} 
Displays the date in long date format.

{DAYOFMONTH} 
Displays the day of the month.

{DAYOFMONTH2} 
Displays the day of the month. If the number is less than 10, it left pads the number with a 0 (zero).

{SHORTDAY} 
Displays the short day name eg Mon, Tues...

{LONGDAY} 
Displays the long day name eg Monday, Tuesday...

{MONTHOFYEAR} 
Displays the month number of the year.

{MONTHOFYEAR2} 
Displays the month number of the year. If the number is less than 10, it left pads the number with a 0 (zero).

{SHORTMONTH} 
Displays the short month name eg Sept, Oct...

{LONGMONTH} 
Displays the long month name eg September, October...

{YEAR} 
Displays the full four digit year.

{AMPM} 
Displays the AM/PM hours eg 11,12,1...

{HOURS12} 
Displays the AM/PM hours eg 11,12,1...

{HOURS24} 
Displays the 24 hour format hours eg 11, 12, 13...

{MINUTES} 
Displays the minutes of the current hour.

{MINUTES2} 
Displays the minutes of the current hour. If the number is less than 10, it left pads the number with a 0 (zero).

{SECONDS} 
Displays the seconds of the current minute.

{SECONDS2} 
Displays the seconds of the current minute. If the number is less than 10, it left pads the number with a 0 (zero).

{COPYRIGHT} 
Displays the Copyright symbol eg ©.

{TRADEMARK} 
Displays the Registered Trademark symbol eg ®.

{NAME} 
Displays the Name of the current Shhhh Account.

{USERNAME} 
Displays the User Name of the current Shhhh Account.

{URL} 
Displays the Url of the current Shhhh Account.

{SHHHH} 
Displays the Shhhh for the current account. The randomly or custom password you created for this Shhhh account. This can be useful for building macros that fill out forms (such as the double verification entry for a password change on a web form. It can also be used with the {NAME} command to fill out the username and the password for a login prompt.

{TAB} 
Inserts a tab character into the macro output. In macros that send their output via the keyboard (and not the clipboard) this is the same as pressing the tab key and will set the focus to the next field in an application or a web form that has focus.

{PROMPT:Param} 
Prompts the user for a text string which will appear in the final macro output. Param is the prompt text is used when the user is asked for the text string. It also acts as a macro keyword you can use again after you've prompted for its value.

For example the following macro when run:

Copyright {COPYRIGHT} {YEAR} {PROMPT:OWNER}
{PROMPT:PRODUCT}{TRADEMARK} is a registered trademark of {OWNER}

would first prompt the user to enter a value for the OWNER variable (let's assume it was Shhhh! Digital). Then the user would be prompted for the PRODUCT variable (let's assume it was Shhhh! For Windows). The final macro would then output to look like this:

Copyright © 2015 Shhhh! Digital
Shhhh! For Windows® is a registered trademark of Shhhh! Digital

Copyright © 2015 Brian Joseph Johns

No comments:

Post a Comment