Can Braina perform "Macro" commands?

Started by bill144, Sep 26, 2015, 02:46 PM

Previous topic - Next topic

bill144

I remember seeing on your website that it it possible to perform a series of commands complete with delays with one keystroke/voice command. I am unable to find the specific page that shows it as I would like to  try it out on the following scenario:

1.) Command Braina to open E-Mail
2.) Inside my E-mail Page, Command Braina to Click "Compose"
3.) Navigate to body of message, Command Braina "Dictation Mode On", and Dictate as normal.
4.) Command Braina "Dictation Mode Off"
5.) Enter e-mail address and others on keyboard
6.) Command Braina to click "Send" to send the e-mail.

saurav

@bill144 Yes, you will be able to perform the things you want to do if the "Compose" and "Send" button are accessible through the keyboard (generally pressing TAB key switches the focus and when the button has focus, pressing the ENTER key is same as clicking on the button). This can be achieved by using custom commands and keyboard macros. We are working on creating a tutorial to achieve this and will post here when it is ready.

saurav

To achieve the goal, we will need to create two custom commands here. One custom command to compose email and second custom command to send email.

What will "Compose email" custom command do?
1.) Command Braina to open your e-mail client
2.) Inside E-mail Page, Command Braina to Click "Compose"
3.) Navigate to the body of message

What will "Send email" custom command do?
1.) Command Braina to turn off Dictation mode
2.) Command Braina to click "Send" to send the e-mail.

Important Note: In this tutorial, we have supposed GMail as an email client. You can change the command to open any other email client. Also note that the number of TAB key presses needed to change focus to the "Compose" button may vary in different email clients. In the upcoming version of Braina, we will not need to use keyboard to click on a button as it will come with a mouse click automation feature.

1) While creating the "compose email" custom command, specify the command to be executed as:

open https://mail.google.com and press {DELAY 5000}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}~{DELAY 600}{TAB}{TAB}Command Explanation:
1) open https://mail.google.com - Commands Braina to open the email client
2) press {DELAY 5000}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}~{DELAY 600}{TAB}{TAB} - Commands Braina to wait for 5 seconds till the email client gets opened. Presses TAB key 11 times to shift keyboard focus to "Compose" button. The "~" (tilde sign} is used to press Enter. Waits for 600 ms till the email compose window gets opened. Presses TAb key two times to navigate to the body of message.

Alternatively, if you are using Gmail then you may also specify the command to be executed as:

open https://goo.gl/aM8bCG and press {DELAY 5000}{TAB}{TAB}
2) While creating the "send email" custom command, specify the command to be executed as:

Dictation mode off and press ^(~)Command Explanation:
1) Dictation mode off - Commands Braina to turn off dictation mode
2) press ^(~) - Commands Braina to press Ctrl+Enter keys together, which is generally the keyboard shortcut to send email in most of the email clients. Note: If your email client doesn't support Ctrl+Enter keyboard shortcut then you will need to use the TAB key presses to change focus on the send key like we did in the case of "Compose" button.

How to use the commands now?
After creating the custom commands, you may give the commands in following sequence:
1) Give "Compose email" command.
2) Give "Dictation mode on" command.
3) Dictate your email body, subject and fill the recipients email address
4) Give "Send email" command.

saurav

#3
Another simpler method instead of using "compose email" custom command:



Note: Braina will open the default email client on your computer. If no email client is configured on your system then no action will take place. In this case, please configure a default email client on your PC. For more information, check the links below:

After composing the email, you can give "send email" custom command that we created in the tutorial above.N