


TinTin enhancements
Pueblo extends the TinTin language with several enhancements. This page lists
the changes in Pueblo’s implementation of TinTin:
expressions
We’ve added string support to TinTin++, so that you can compare and
concatenate strings. You may also use underscores and numbers in variable names. For
example, $apple_1 and $1_pickle are both valid variable names.
#if
The #if command has been extended to support commands that should be executed if the
expression is false. (This is equivalent to an ‘else’ directive in most
programming languages.)
#alert
Pueblo supports the ability to alert the user. The user, in turn, can select
their alert sound, alert volume, and can indicate a maximum for how often they
wish to hear the alert. The #alert command allows a macro to trigger an alert to the user.
#name
The new #name command allows you to specify a new name for a session. This is because
Pueblo sessions are not always created through the #session command, so they don’t always start out with names.
Once a session has a name, it may be manipulated with the
#<session name> command without actually making the session active.
#playsound
This new command allows you to play an arbitrary sound file stored on your
system.
#random
Allows you to assign a random number to a variable. Useful for making actions
which don’t do the same thing every time.
#tickkey
Provides a unique key that is appended to tick events. This new commands
allows you to create unique tick events which you can use to trigger actions.
#<session name> changes
Pueblo’s implementation first checks for commands before checking for #<session name> . The original TinTin++ implementation check for sessions before checking for
commands. Why did we do this? Say you created a session named ‘math’. Then
whenever you used the #math command, it would try to send commands to the
session ‘math’, which isn’t what you want. With the Pueblo implementation, session
names don’t override commands.