Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

CAL.exe

Cal.exe is a command line utility that exposes the capabilities of the CAL APIs. Cal.exe uses CAL and leverages all available methods of connectivity, as well as using target friendly names that have been defined in Target Manager.

Cal.exe is located in the Brew MP Toolset installation in the folder.

For help, open a command prompt in the folder and enter the following:

cal.exe -h

A list of command-line options displays in the command prompt.

Command line syntax is: cal.exe command <-option>

The following table lists command line options, their description, and corresponding CAL APIs. For more information on CAL APIs, see the Connect Abstraction Layer API Reference.
Command Description CAL APIs
- h (help) Display help information n/a
-lt (list targets) Display information for all known targets

ConnectAL_GetConnectedTargets

ConnectAL_GetTargets

ConnectAL_GetTargetsInfo

-cp (Copy) Copy files or directories to/from a target ConnectAL_CopyFileFromTarget

ConnectAL_CopyFileToTarget

ConnectAL_CopyFileWithinTarget

ConnectAL_CopyDirFromTarget

ConnectAL_CopyDirToTarget

ConnectAL_CopyDirWithinTarget

-mkdir (CreateDir) Create a directory on the target ConnectAL_CreateDir
-rm (Remove) Remove a file or directory on the target ConnectAL_DeleteDir

ConnectAL_DeleteFile

-ls (ListDir) List items in a directory on the target ConnectAL_GetDirList
-ex (Exist) Check if a file or directory exits on the target ConnectAL_DirExists

ConnectAL_FileExists

-ga (GetFileAttrib) Get the target file attribute

ConnectAL_GetFileSize

ConnectAL_GetFileAttributes

-rn (Rename) Rename a file or directory on the target ConnectAL_RenameFile

ConnectAL_RenameDir

-mv (Move) Move a file or directory within the target ConnectAL_MoveFile ConnectAL_MoveDirectory
-ip (InstallPackage) Install the package on the target ConnectAL_InstallPackage
-um (UnInstallModule) Uninstall the module on the target ConnectAL_UninstallModule
-lc (ListCol) List the module collections available on the target ConnectAL_GetCollections
-lv (ListVol) List the filesystem volumes available on the target ConnectAL_GetVolumes
-regm (RegModule) Register a module with a target ConnectAL_RegisterMod
-me (ModuleExist) Check if a module exists on the target ConnectAL_ModuleExists
-sk (SendKeyPress) Send key events including keypress and key release to the foreground application of the target ConnectAL_SendKeyPress
-sv (SendBrewEvent) Send Brew MP events to the application with the ClassID ConnectAL_SendBrewEvent
-ssv (SendBrewStringEvent) Send a Brew MP event with an event code and string payload to the application of ClassID ConnectAL_SendBrewStringEvent
-kd (SendKeyDown) Send key press event to the foreground application ConnectAL_SendKeyDown
-ku (SendKeyUp) Send key release event to the foreground application ConnectAL_SendKeyUp
-sc (ScreenCapture) Get the latest screen for the connected target ConnectAL_GetScreenUpdate
-log (Log) Display log messages

ConnectAL_EnableLogging

ConnectAL_GetLogMessage

ConnnectAL_StopLogging

ConnectAL_DeRegisterLogging

-rt (ResetTarget) Reset a Target ConnectAL_ResetTarget
-starta (StartApplet) Start an applet on the target ConnectAL_StartApplet
-stopa (StopApplet) Stop an applet running on the target ConnectAL_StopApplet
-pe (PostEvent) Post an event to the foreground application ConnectAL_PostEvent
-gai (GetAppId) Get the ClassID of a foreground application ConnectAL_GetForegroundAppId
-gra (GetAppletInfo) Get information about a running applet on the target ConnectAL_GetRunningAppletInfo