Skip to content

release v16.02.04

Compare
Choose a tag to compare
@Arcitectus Arcitectus released this 05 Mar 12:41

changes since v16.00.19:

sending a message to a chat channel

void ChatSendMessage(WindowChatChannel windowChat, string messageText)
{
     if(null == windowChat) return;

     Sanderling.MouseClickLeft(windowChat?.MessageInput);
     Sanderling.TextEntry(messageText);
     Sanderling.KeyboardPress(VirtualKeyCode.RETURN);
}

void ChatCorpSendMessage(string messageText) => ChatSendMessage(
        Sanderling.MemoryMeasurementParsed?.Value?.WindowChatChannel?.FirstOrDefault(c => c?.Caption?.RegexMatchSuccessIgnoreCase("corp") ?? false),
        messageText);

employing the #r directive to make use .NET assembly of your choice

#r "System.Speech" // Assembly name, in this case to be found in GAC

using System.Speech.Synthesis;

var synth = new SpeechSynthesizer();

synth.Speak("BotSharp at your service.");