doublename 2015-01-07 09:32 采纳率: 0%
浏览 1685

C#如何给QQ发送粘贴板?

目前只可以发文字,不知道如何发粘贴板? private bool SendQQMsg(IntPtr hWnd, string qqcaption, string sendtext)
{
try
{
NativeMethods.ShowWindow(hWnd, NativeMethods.ShowWindowCommands.Normal);

            NativeMethods.BringWindowToTop(hWnd);

            SendKeys.SendWait(sendtext);

            SendKeys.SendWait("{ENTER}");
            return true;
        }
        catch
        {
            return false;
        }

    }怎么改造
  • 写回答

4条回答 默认 最新

  • threenewbee 2015-01-07 09:38
    关注

    SendKeys.SendWait("^c");

    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统