ExecuteCommand

Executes the specified Flex Terminal Emulator command.


Syntax

FlexScreen.ExecuteCommand(CommandName)


Parameters


CommandName

String, input



Name of the command to execute.


Command names available:

FileNewWorkspace

FileOpenWorkspace

FileSaveWorkspace

FileSaveWorkspaceAs

FileSaveAll

FileSaveWorkspaceAsLink

FileNewSession

FileSaveSession

FileSaveSessionAs

FilePrint

FilePageSetup

FilePrintPreview

FilePrintMultiScreen

FileOptions

FileWorkspaceSettings

FileLockdown

FileAbout

FileToggleRibbon

FileHelp


Note: FileExit is not allowed.


EditCut

EditCopy

EditCopyAppend

EditPaste

EditPasteContinue

EditSelectAll

EditClear


CommunicationSetup

CommunicationConnect

CommunicationTrace


TransferHostType (parameter required, valid parameter: CMS, TSO, CICS, FTP)

TransferIndHost (parameter required, for example: Session)

TransferFtpServer (parameter required, for example: vpn.atf)

TransferIndHostCustomize (parameter optional)

TransferFtpServerCustomize (parameter optional)


MacroEdit


FontFamily (parameter required, for example: Courier New)

FontSize (parameter required, for example: Auto Exact)

FontBold


CursorLine

CursorHalf

CursorFull

CursorBlink


RulerOff

RulerVertical

RulerHorizontal

RulerCross


ViewRibbonBar

ViewStatusBar

ViewFields

ViewShortName

ViewExtensions (parameter required, for example: PF Keys.axs)

ViewExtensionsCustomize (parameter required, for example: custom.axe)

ViewKeyboardLayout

OptionsEmulation


ViewTheme (parameter required, for example: Metro Dark)


SchemeColor (parameter required, for example: Default)

SchemeEdit (parameter required, for example: Line Mode)

SchemeHotspots (parameter required, for example: PF Keys)

SchemeKeyboard (parameter required, for example: IBM)

SchemeMouse (parameter required, for example: MyMouse.aps)


SchemeColorCustomize (parameter optional, for example: IBM)

SchemeEditCustomize (parameter optional)

SchemeHotspotsCustomize (parameter optional)

SchemeMouseCustomize (parameter optional)

SchemeKeyboardCustomize (parameter optional)


SessionNextActive

SessionPrevActive

SessionFloat

SessionDock

SessionToggleDock


WorkspaceCascade

WorkspaceTileHorz

WorkspaceTileVert

WorkspaceRestore


Examples

Sub Main()

   Ok = FlexScreen.ExecuteCommand("EditCopy")
End Sub



Sub Main()

   Ok = FlexScreen.ExecuteCommand("SchemeEdit:Line Mode")
End Sub



Sub Main()

   MsgBox "Press OK to change the Workspace layout to Tile Vertical."

      Ok = FlexScreen.ExecuteCommand("WorkspaceTileVert")

   MsgBox "Press OK to Restore the saved Workspace layout."

      Ok = FlexScreen.ExecuteCommand("WorkspaceRestore")
End Sub