Archive

Posts Tagged ‘Execute’

Browse and click menu commands of tested application

July 11th, 2009

Starting version 1.6 RoutineBot can click on certain menu commands in tested application. The process is now automated to make it easy to find necessary menu name, address to it and click it.

The step-by-step it looks like:

  1. Run RoutineBot and go to the Tools > Menu Browser. As as result you will have a list of all menus avaliable in the system right now sorted by application.

    The menu browser in RoutineBot - select menu item and click it automatically

    The menu browser in RoutineBot - select menu item and click it automatically

  2. Find the menu you need and click OK.
  3. In your script will be added the code like this:

ExecuteMenuItem(‘notepad.exe’,'New’);

This code will click on “New” menu in running notepad.exe.

Known limitations:

  • The function will ExecuteMenuItem will work only with default system menues, if application use some custom designed menu, it will not work;
  • The ExecuteMenuItem command addresses the menu by menu name and application name, so if there are more than two applications with the same .exe name are running, then RoutineBot will execute action for the first application only
  • Share/Bookmark

admin Articles , ,

Execute function in RoutineBot

June 17th, 2009

Syntax
Execute( Path:String, Params:String [optional] )

Parameters

Path:String

string that specifies the file to execute. File can be executable file or some document.

Params:String [optional]

string that specifies the parameters to be passed to the application.

Return value

If file exists function returns 1, otherwise function returns 0.

Remarks

Function does not wait, before application will be closed.

Examples

open textfile
Execute('D:\SomeText.txt');
open notepad.exe
Execute('C:\WINDOWS\notepad.exe');
open file ‘D:\SomeText.txt’ in notepad
Execute('C:\WINDOWS\notepad.exe','D:\SomeText.txt');
Download example Execute

Reference
ShellExecute function

  • Share/Bookmark

Developer Articles ,