0
我正在編寫Windows窗體應用程序,並使用Windows窗體應用程序用戶能夠連接技術人員獲得技術支持,在這種情況下使用能夠發起聊天實例。如何在logmein Rescue中配置實例聊天
尋找這種解決方案的LogMeIn救援
我正在編寫Windows窗體應用程序,並使用Windows窗體應用程序用戶能夠連接技術人員獲得技術支持,在這種情況下使用能夠發起聊天實例。如何在logmein Rescue中配置實例聊天
尋找這種解決方案的LogMeIn救援
第1步:登錄LogMeIn的救援管理中心,並轉到頻道選項卡,並複製定製實時支持形成具有自託管即時聊天
步驟2:在windows窗體應用程序中創建新的html頁面並將此html粘貼到此頁面中。
Stpe 3:在窗體應用程序中添加WebBrowser控件webBrowser1。並在此瀏覽器控件導航裝箱新的HTML頁面
public partial class InstanceChat : Form
{
public InstanceChat()
{
InitializeComponent();
webBrowser1.Navigate(AppDomain.CurrentDomain.BaseDirectory + "logmein from.html");
}
}
步驟4:HTML頁面中包含使用Windows的應用程序techincian和客戶端之間
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="https://secure.logmeinrescue.com/InstantChat/InstantChat.aspx"></script>
<script type="text/javascript">
function loadInstantChat(){
var ICLoader = new RescueInstantChatLoader();
ICLoader.ICContainer = "ICContainer";
ICLoader.HostedCSS = "https://secure.logmeinrescue.com/InstantChat/Standard/InstantChat.css";
ICLoader.HostedLanguagesForChatOnlyMode = "https://secure.logmeinrescue.com/InstantChat/LanguagesForChatOnlyMode.js";
ICLoader.HostedLanguagesForAppletMode = "https://secure.logmeinrescue.com/InstantChat/LanguagesForAppletMode.js";
ICLoader.EntryID = "421042";
ICLoader.Name = document.getElementById("Name").value; /* optional */
ICLoader.Comment1 = document.getElementById("Comment1").value; /* optional */
ICLoader.Comment2 = document.getElementById("Comment2").value; /* optional */
ICLoader.Comment3 = document.getElementById("Comment3").value; /* optional */
ICLoader.Comment4 = document.getElementById("Comment4").value; /* optional */
ICLoader.Comment5 = document.getElementById("Comment5").value; /* optional */
ICLoader.Tracking0 = ""; /* optional */
ICLoader.Language = ""; /* optional */
ICLoader.HostedErrorHandler = function(ErrorName){} /* optional */
ICLoader.Start();}
function handleRebootOrRefresh(){
if ((window.location + "").indexOf("rescuewebsessionid") != -1){document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
if (window.location.hash.length == webSessionIdLength + 1){document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
}
</script>
</head>
<body onload="handleRebootOrRefresh();">
<table>
<tr><td>Please enter your name: </td><td><input id="Name" type="text" maxlength="64" /></td></tr>
<tr><td>Custom Field 1: </td><td><input id="Comment1" type="text" maxlength="512" /></td></tr>
<tr><td>Custom Field 2: </td><td><input id="Comment2" type="text" maxlength="512" /></td></tr>
<tr><td>Custom Field 3: </td><td><input id="Comment3" type="text" maxlength="256" /></td></tr>
<tr><td>Custom Field 4: </td><td><input id="Comment4" type="text" maxlength="64" /></td></tr>
<tr><td>Custom Field 5: </td><td><input id="Comment5" type="text" maxlength="64" /></td></tr>
</table>
<input type="button" value="Channel 01" onclick="document.getElementById('ICContainer').style.display=''; loadInstantChat();" />
<div id="ICContainer" style="position: absolute; left: 0px; top: 0px; width: 400px; height: 500px; display: none"></div>
</body>
</html>