码迷,mamicode.com
首页 > Windows程序 > 详细

delphi - 获取Teamview ID,口令

时间:2019-02-28 21:12:21      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:col   proc   ttext   dcl   min   page   获取   custom   object   

procedure TForm1.btnFindClick(Sender: TObject);
var
  hr, hr1, hr_id, hr_pwd: THandle;
  WindowText: array[0..MAX_PATH] of Char;
begin
  hr := FindWindow(#32770, TeamViewer);
  hr := FindWindowEx(hr, 0, MainWindowRemoteControlPage, nil);
  hr1 := FindWindowEx(hr, 0, IncomingRemoteControlComponentView, nil);
  hr_id := FindWindowEx(hr1, 0, CustomRunner, nil);
  hr := FindWindowEx(hr_id, 0, Edit, nil);
  SendMessage(hr, WM_GETTEXT, MAX_PATH, Longint(@WindowText));
  lblID.Caption := WindowText;
  hr_pwd := FindWindowEx(hr1, hr_id, CustomRunner, nil);
  hr := FindWindowEx(hr_pwd, 0, Edit, nil);
  SendMessage(hr, WM_GETTEXT, MAX_PATH, Longint(@WindowText));
  lblPWD.Caption := WindowText;
end;

 

delphi - 获取Teamview ID,口令

标签:col   proc   ttext   dcl   min   page   获取   custom   object   

原文地址:https://www.cnblogs.com/masg/p/10452927.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!