Braina Forums

Braina Assistant => Braina and Braina PRO Support => Topic started by: garyw63 on Aug 06, 2015, 06:23 AM

Title: Custom Commands
Post by: garyw63 on Aug 06, 2015, 06:23 AM
Concerning custom commands, is there a command prefix to get Braina to act on the command?

For example if I wanted Braina to restart my PC, selected custom command "Restart" as a title
then shutdown -t 0 -r -f as the command to run.

Do I need a command prefix to run that command?
Title: Re: Custom Commands
Post by: Brainasoft Team on Aug 07, 2015, 04:50 AM
@garyw63

Restart Computer is an in-built command to restart your computer. If you want to restart your computer simply using the command Restart then follow the steps below:

1) Enter "Restart" as command name and click on Ok.

  (http://4.bp.blogspot.com/-K2rJaIO6zBk/VcQrYYU1QFI/AAAAAAAABP4/NtS_z3pjhKI/s1600/restart-command.PNG)

2) Enter "Restart Computer" as command value and click on Ok.
  
  (http://4.bp.blogspot.com/-7r7TJEIx8X0/VcQrKWFQarI/AAAAAAAABPs/-nuFFTZUTvs/s1600/restart-computer-braina.PNG)

3) Done. Now you can simply enter Restart to restart your computer.

But it seems that this is not what you want to do. It looks like you want to specify the system's shutdown command with no timeout period so that the system gets restarted as soon as you give the Restart command. In this case you will have to use "cmd:" (without quotes) as prefix as shown below:

   (http://1.bp.blogspot.com/-Wl0nhG4zJak/VcQ4wRwIsOI/AAAAAAAABQQ/N2RXZ3hALC0/s1600/restart-custom-command.PNG)

Note: This functionality of using system commands using "cmd:" prefix is not yet released officially.
Title: Re: Custom Commands
Post by: garyw63 on Aug 07, 2015, 07:28 AM
Hi, Thanks for the prompt and detailed reply, impressed with your software  :)