调用默认浏览器打开链接tencent://message/?uin=QQ即可发起临时会话
参数uin为目标QQ Java示例
import java.awt.Desktop;
import java.net.URI;
import java.io.IOException;
public class TempSession {
public static void main(String[] args) throws IOException {
Desktop.getDesktop().browse(URI.create("tencent://message/?uin=980639902"));
}
}
Qt示例
QDesktopServices::openUrl(QUrl("tencent://message/?uin=980639902"));
05-11 14:04