C# 클래스 ACAT.Lib.Extension.AppAgents.WindowsExplorer.WindowsExplorerAgentBase

Base class application agent for Windows Explorer. Enables navigation through files and folders in Explorer, create folders, clipboard operations, opening files etc.
상속: ACAT.Lib.Core.AgentManagement.GenericAppAgentBase
파일 보기 프로젝트 열기: brlima94/acat-localization

보호된 프로퍼티들

프로퍼티 타입 설명
autoSwitchScanners bool

공개 메소드들

메소드 설명
CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void

Invoked to set the 'enabled' state of a widget. This will depend on the current context.

OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void

Displays the contextual menu

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void

Invoked when the foreground window focus changes. Depending on which element has focus in the acrobat reader window, display the appropriate scanner

OnFocusLost ( ) : void

Focus shifted to another app. This agent is getting deactivated.

OnRunCommand ( String command, object commandArg, bool &handled ) : void

Invoked to run a command

보호된 메소드들

메소드 설명
getMenu ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, String &panelClass ) : bool

Gets the menu for the Explorer window in focus. Checks if the file explorer is active and returns the contextual menu name for it

getWindowElement ( IntPtr hWndMain ) : AutomationElement

Returns the automation element for the window handle

isDesktopWindow ( AutomationElement focusedElement ) : bool

Checks if the focused element is the desktop

isFileExplorer ( AutomationElement windowElement ) : bool

Checks if the window element is the Windows Explorer window

비공개 메소드들

메소드 설명
displayScanner ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void

Displays the scanner appropriate for the element that is currently in focus in the Windows explorer window

showMenu ( String menuName, String title ) : void

Dispays the menu indicated by the menu name

메소드 상세

CheckWidgetEnabled() 공개 메소드

Invoked to set the 'enabled' state of a widget. This will depend on the current context.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs contains info about the widget
리턴 void

OnContextMenuRequest() 공개 메소드

Displays the contextual menu
public OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
리턴 void

OnFocusChanged() 공개 메소드

Invoked when the foreground window focus changes. Depending on which element has focus in the acrobat reader window, display the appropriate scanner
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Foreground window info
handled bool set to true if handled
리턴 void

OnFocusLost() 공개 메소드

Focus shifted to another app. This agent is getting deactivated.
public OnFocusLost ( ) : void
리턴 void

OnRunCommand() 공개 메소드

Invoked to run a command
public OnRunCommand ( String command, object commandArg, bool &handled ) : void
command String The command to execute
commandArg object Optional arguments for the command
handled bool set this to true if handled
리턴 void

getMenu() 보호된 메소드

Gets the menu for the Explorer window in focus. Checks if the file explorer is active and returns the contextual menu name for it
protected getMenu ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, String &panelClass ) : bool
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo fg window info
panelClass String returns the panel class of the menu
리턴 bool

getWindowElement() 보호된 메소드

Returns the automation element for the window handle
protected getWindowElement ( IntPtr hWndMain ) : AutomationElement
hWndMain System.IntPtr window handle
리턴 System.Windows.Automation.AutomationElement

isDesktopWindow() 보호된 메소드

Checks if the focused element is the desktop
protected isDesktopWindow ( AutomationElement focusedElement ) : bool
focusedElement System.Windows.Automation.AutomationElement element in focus
리턴 bool

isFileExplorer() 보호된 메소드

Checks if the window element is the Windows Explorer window
protected isFileExplorer ( AutomationElement windowElement ) : bool
windowElement System.Windows.Automation.AutomationElement element in focus
리턴 bool

프로퍼티 상세

autoSwitchScanners 보호되어 있는 프로퍼티

If set to true, the agent will autoswitch the scanners depending on which element has focus. Eg: Alphabet scanner if an edit text window has focus, the contextual menu if the main document has focus
protected bool autoSwitchScanners
리턴 bool