-
-
[求助]delphi给X64DBG命令行处发送消息失败
-
发表于: 2019-6-30 07:15 2470
-
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.
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.
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
他的文章
看原图
赞赏
雪币:
留言: