예제 #1
0
        static public VonSensor.WindowAgent AlsWindowAgent(this MemoryStruct.WindowAgent WindowAgent)
        {
            if (null == WindowAgent)
            {
                return(null);
            }

            return(new VonSensor.WindowAgent(WindowAgent.AlsWindowNurBase(), WindowAgent.AgentName(), null, null));
        }
예제 #2
0
        static public string AgentName(this MemoryStruct.WindowAgent WindowAgent)
        {
            var HeaderCaptionTextMatch = Regex.Match(WindowAgent?.Caption ?? "", WindowAgentHeaderCaptionTextRegexPatternAgentConversation(), RegexOptions.IgnoreCase);

            if (HeaderCaptionTextMatch.Success)
            {
                return(HeaderCaptionTextMatch.Groups[2].Value.Trim());
            }

            return(null);
        }