zoukankan      html  css  js  c++  java
  • c#调起qq临时回话

               var openKey64 = @"SOFTWAREWow6432NodeTencentQQ2009";
                var openKey32 = @"SOFTWARETencentQQ2009";
                var openTim64 = @"SOFTWAREWow6432NodeTencentTIM";
                var qqPath = "";
                RegistryKey reg64 = Registry.LocalMachine.OpenSubKey(openKey64);
                RegistryKey reg32 = Registry.LocalMachine.OpenSubKey(openKey32);
                RegistryKey regTim = Registry.LocalMachine.OpenSubKey(openTim64);
                if (reg64 != null)
                {
                    qqPath = reg64.GetValue("Install").ToString();
                }
                else if (reg32 != null)
                {
                    qqPath = reg32.GetValue("Install").ToString();
                }
                else {
                    qqPath = regTim.GetValue("Install").ToString();
                }
                if (!string.IsNullOrEmpty(qqPath))
                {
                    var address = qqPath + @"BinTimwp.exe";
                    var arg = "tencent://message/?uin=qq号";
                    Process.Start(address, arg);
                }
                else {
                    Console.WriteLine("未检测qq程序");
                }
    

      记录。

    原文:https://blog.csdn.net/weixin_43563837/article/details/109164671

  • 相关阅读:
    12月4日
    12月3日
    12月2日
    12月1日
    11月30日
    11月29日
    11月28日
    11月27日
    jquery mobile-按钮控件
    ap web
  • 原文地址:https://www.cnblogs.com/yeyuqian/p/15329539.html
Copyright © 2011-2022 走看看