飘云阁

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 3366|回复: 3

[Delphi] delphi给X64DBG命令行处发送消息失败

[复制链接]
  • TA的每日心情
    无聊
    2024-4-11 09:12
  • 签到天数: 614 天

    [LV.9]以坛为家II

    发表于 2019-6-30 07:17:05 | 显示全部楼层 |阅读模式
    unit Unit1;

    interface

    uses
      Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
      Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;

    type
      TForm1 = class(TForm)
        Memo1: TMemo;
        Button1: TButton;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;

    var
      Form1: TForm1;

    implementation

    {$R *.dfm}

    procedure TForm1.Button1Click(Sender: TObject);
    var
      a, b: PAnsiChar;
      h: HWND;
    begin
      h := FindWindow(nil, 'x64dbg');
      h := FindWindowEx(h, 0, 'Qt5QWindowIcon1', nil);
      SendMessage(h, WM_SETTEXT, 255, Integer(PChar('我来测了')));
    end;

    end.
    PYG19周年生日快乐!
  • TA的每日心情
    开心
    2023-7-4 01:41
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2019-7-1 14:04:52 | 显示全部楼层
    试试if h<>0 then
    PYG19周年生日快乐!
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    无聊
    2024-4-11 09:12
  • 签到天数: 614 天

    [LV.9]以坛为家II

     楼主| 发表于 2019-7-2 08:02:05 | 显示全部楼层


    网上说   Qt程序  好像只有一个id参数,所以无法发送到控件上
    PYG19周年生日快乐!
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    无聊
    2023-9-19 05:06
  • 签到天数: 425 天

    [LV.9]以坛为家II

    发表于 2019-7-2 09:41:56 | 显示全部楼层
    分享精神,是最值得尊敬的!
    PYG19周年生日快乐!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

    快速回复 返回顶部 返回列表