Ejemplo n.º 1
0
        /// <summary>
        /// Creates a keylogger interface for all those edit controls that
        /// don't support the TextPattern.  Depending on the type of the field
        /// we enable/disable abbreviations, smart punctuations, learning and
        /// spell check
        /// </summary>
        /// <param name="handle">handle of the window</param>
        /// <param name="editTextElement">edit control automation element</param>
        /// <returns>the keylogger object</returns>
        protected override TextControlAgentBase createKeyLoggerTextInterface(
            IntPtr handle,
            AutomationElement editTextElement)
        {
            Log.Debug("subtype = " + outlookControlSubType);

            TextControlAgentBase textInterface;

            Log.Debug("outlookcontrolsubtype: " + outlookControlSubType);
            if (isMessageBodyField(outlookControlSubType))
            {
                Log.Debug("creating outlookagentkeylogger with learn, spell and abbr" + outlookControlSubType);

                textInterface = new OutlookAgentKeyLoggerTextInterface();
            }
            else if (isSubjectField(outlookControlSubType))
            {
                Log.Debug("iSSubjectfield creating outlookagentkeylogger WITHOUT learn");
                textInterface = new OutlookAgentKeyLoggerTextInterface(false);
            }
            else
            {
                Log.Debug("creating outlookagentkeylogger WITHOUT learn, spellcheck and smart puncutationss");

                textInterface = new OutlookAgentKeyLoggerTextInterface(false, true, false, false);
            }

            return(textInterface);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a keylogger interface for all those edit controls that
        /// don't support the TextPattern.  Depending on the type of the field
        /// we enable/disable abbreviations, smart punctuations, learning and
        /// spell check
        /// </summary>
        /// <param name="handle">handle of the window</param>
        /// <param name="editTextElement">edit control automation element</param>
        /// <returns>the keylogger object</returns>
        protected override TextControlAgentBase createKeyLoggerTextInterface(
                                                                            IntPtr handle,
                                                                            AutomationElement editTextElement)
        {
            Log.Debug("subtype = " + outlookControlSubType);

            TextControlAgentBase textInterface;

            if (isMessageBodyField(outlookControlSubType))
            {
                Log.Debug("creating outlookagentkeylogger with learn, spell and abbr" + outlookControlSubType);

                textInterface = new OutlookAgentKeyLoggerTextInterface();
            }
            else if (isSubjectField(outlookControlSubType))
            {
                Log.Debug("iSSubjectfield creating outlookagentkeylogger WITHOUT learn");
                textInterface = new OutlookAgentKeyLoggerTextInterface(false);
            }
            else
            {
                Log.Debug("creating outlookagentkeylogger WITHOUT learn, spellcheck and smart puncutationss");

                textInterface = new OutlookAgentKeyLoggerTextInterface(false, true, false, false);
            }

            return textInterface;
        }