getcursorpos(p);
h:=windowFromPoint(p);如何通过这个handle来获得 该控件的name,
(只限delphi控件的name即可了,可以获取别的进程的)
(findControl只能对本进程有效)
h:=windowFromPoint(p);如何通过这个handle来获得 该控件的name,
(只限delphi控件的name即可了,可以获取别的进程的)
(findControl只能对本进程有效)
解决方案 »
- FastReport报表组件中的Edit Text Tool和Text object有什么区别?
- 多线程中使用showmesage函数的问题
- 怎么产生1ms的事件,timer控件只能去到56ms
- 请问哪里有李维的《inside VCL 架构剖析》电子版的下载地址啊?
- 急啊!请问各位高手,怎样调用Windows自己的包含有YesToAll和NoToALl按钮的对话框?谢谢啊:)
- 用Database Destop 建立数据表的问题?
- 怎么样设置一个目录的属性,比如只读,隐藏。请指教!谢谢!
- 关于表Table的使用
- 如何在Application最小化的情况下,在屏幕上显示一个窗口?
- 怎么获取视频采集卡的ID号!
- 三层结构下数据更新的回传问题
- 问个难以启齿的简单问题!Dbgrideh的打印问题
就可以了
var
handle: hwnd;
begin
handle := windowfrompoint(pos);
result := nil;
while handle <> 0 do
begin
result := findcontrol(handle);
if result <> nil then exit;
handle := getparent(handle);
end;
end;
我的问题主要是获得其他进程的啊,呵呵
LPTSTR lpClassName,
int nMaxCount
);
ParametershWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.
lpClassName
[out] Pointer to the buffer that is to receive the class name string.
nMaxCount
[in] Specifies the length, in TCHAR, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the buffer and is always null-terminated.
Return ValueIf the function succeeds, the return value is the number of TCHAR copied to the specified buffer.If the function fails, the return value is zero. To get extended error information, call GetLastError.
我没找到,只有listview的,是c++的,但是他是用sendmessage(wm_gettext)来获取文本的,
我想获取的是他的name;注入目标进程,我想也非此不可,但是如何获得name,头疼.
(只要能获取delphi的vcl控件的name即可了)肯请高手出招