C# 클래스 ACAT.Lib.Extension.AppAgents.Notepad.NotepadAgentBase

Base class for the Application agent for Notepad.
상속: ACAT.Lib.Core.AgentManagement.GenericAppAgentBase
파일 보기 프로젝트 열기: brlima94/acat-localization

공개 메소드들

메소드 설명
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. Displays the alphabet scanner. Also, if this is a new window that has come into focus, adds its contents to the word prediction temporary batch model for more contextual prediction of words

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

보호된 메소드들

메소드 설명
createEditControlTextInterface ( IntPtr handle, AutomationElement focusedElement, bool &handled ) : ACAT.Lib.Core.AgentManagement.TextInterface.TextControlAgentBase

Creates the text control agent for notepad

비공개 메소드들

메소드 설명
getFileNameFromWindow ( ) : String

Parses the title of the notepad window and extracts the file name from it

getNotepadText ( ) : String

Returns text from the notepad window

launchLectureManager ( ) : System.Threading.Tasks.Task

Launches lecture manager with text from the notepad window. This function returns only after lecture manager has exited

메소드 상세

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. Displays the alphabet scanner. Also, if this is a new window that has come into focus, adds its contents to the word prediction temporary batch model for more contextual prediction of words
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

createEditControlTextInterface() 보호된 메소드

Creates the text control agent for notepad
protected createEditControlTextInterface ( IntPtr handle, AutomationElement focusedElement, bool &handled ) : ACAT.Lib.Core.AgentManagement.TextInterface.TextControlAgentBase
handle System.IntPtr Handle to the notepad window
focusedElement System.Windows.Automation.AutomationElement automation element for the notepad text control
handled bool set to true if handled
리턴 ACAT.Lib.Core.AgentManagement.TextInterface.TextControlAgentBase