【发布时间】:2015-05-08 14:23:01
【问题描述】:
我创建了一个脚本,它会自动与我选择的用户发起视频通话。
运行时,脚本会停止视频通话,同时 lync 视频通话窗口会闪烁。
如何在脚本运行时让这个窗口最大化并进入全屏模式?
非常感谢您的帮助。
下面是我的代码
$assemblyPath = “C:\Program Files (x86)\Microsoft Office 2013\LyncSDK\Assemblies\Desktop\Microsoft.Lync.Model.DLL”
Import-Module $assemblyPath
$LyncClient = [Microsoft.Lync.Model.LyncClient]::GetClient()
$StartVideoCallMethod = {
$Conversation = $this.ConversationManager.AddConversation();
$contact = $LyncClient.ContactManager.GetContactByUri("useremailhere")
[void]$Conversation.AddParticipant($contact);
[void]$Conversation.Modalities['AudioVideo'].BeginConnect({}, 0);
};
Add-Member -InputObject $LyncClient -MemberType ScriptMethod -Name StartVideoCall -Value $StartVideoCallMethod -Force;
# Initiate the video call
$Conversation = $LyncClient.StartVideoCall();
【问题讨论】:
-
看看这个函数。我过去曾在 Lync 上成功使用过它:gist.github.com/jakeballard/11240204
标签: powershell lync