Braina Forums

Braina Assistant => Braina and Braina PRO Support => Topic started by: knight2000 on Jun 16, 2016, 08:18 PM

Title: Change open file response
Post by: knight2000 on Jun 16, 2016, 08:18 PM
Hello,

Is there a way to change the "opening file" response that braina gives when opening a file? I tried creating a custom command but that didnt work.
Title: Re: Change open file response
Post by: saurav on Jun 23, 2016, 07:28 AM
@knight2000 Hello,

Yes, it is possible to change the "opening file" response using custom commands. Please check the following tutorial : http://blog.brainasoft.com/2015/04/custom-replies-for-custom-commands.html
Title: Re: Change open file response
Post by: knight2000 on Jun 27, 2016, 03:21 PM
Thank you for the link saurav!

Unfortunately the echo portion doesn't work. When I add the following custom reply Open C:\my-path and clear your reply and echo <font color="green">hello</font> it just says "opening file" still. However if I remove the echo part then the reply is blank. I have the latest version of braina installed
Title: Re: Change open file response
Post by: saurav on Jun 28, 2016, 03:42 AM
Please try the following:

Open C:\my-path and clear your reply. echo <font color="green">hello</font>
Title: Re: Change open file response
Post by: knight2000 on Jun 28, 2016, 02:20 PM
Thanks a bunch!! Adding the period and removing the second "and" worked!
Title: Re: Change open file response
Post by: knight2000 on Jun 29, 2016, 09:23 PM
One more thing, how can i close a program using the custom command? I tried doing the opposite which was to add "close" instead of "open" like below

close C:\my-path and clear your reply. echo <font color="green">hello</font>

but that didnt work.
Title: Re: Change open file response
Post by: saurav on Jun 30, 2016, 02:09 AM
@knight2000 You need to specify program title instead of program path for closing it. e.g. Close Notepad
Title: Re: Change open file response
Post by: knight2000 on Jun 30, 2016, 10:43 PM
Is there a way to set a custom command to close a program? something like "close program-name and clear your reply. echo some-response

Title: Re: Change open file response
Post by: saurav on Jul 01, 2016, 04:18 AM
Yes, For e.g., if you want to close Notepad, try following custom command:

close Notepad and clear your reply. echo <font color="green">hello</font>
Title: Re: Change open file response
Post by: knight2000 on Jul 01, 2016, 02:48 PM
@saurav Thanks for all the help you've given me .

The close command is not working for me. Does it search the entire computer for the title to close? i have a hardware monitor program located in a child folder on the desktop. so the structure looks like this Desktop > programs > hardwareMonitor > hardwareMonitor.exe

I created the following custom command to execute

close hardwareMonitor

but no luck

also tried
close path-to-hardwareMonitor.exe

but no luck.
Title: Re: Change open file response
Post by: saurav on Jul 02, 2016, 03:42 AM
@knight2000 Does hardwareMonitor.exe have a UI Window or is it just a hidden background process? Only programs with a window can be closed. Also hardwareMonitor seems to be program file name rather than program title. Program title can be seen in the title bar of the window. For example, Braina has a title i.e. "Braina - Human Language Interface". You can also specify a part of the program title. For example, Close Human Language will also close Braina.
Title: Re: Change open file response
Post by: knight2000 on Jul 05, 2016, 03:01 PM
Yep, tried it using the title and it worked! Thanks again for all your help! Greatly appreciated!