问题标签 [findwindowex]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
vb.net - Putty FindwindowEx“编辑”子窗口
我正在尝试使用 API FindwindowEx 在 Putty 文本框中输入 IP 地址。我知道文本框窗口被称为“编辑”,问题是腻子父窗口中有三个“编辑”窗口。
有没有办法将三个“编辑”子窗口分开,所以我只向一个发送文本?
python - FindWindowEx doesn't find MessageBox appearing over Remote Desktop Connection
We have a build machine on which we do daily builds and execute tests at the application we develop. The problem is that some tests are failing because some of our executables are crashing. And if they would crash normally it would just be a failed test.
But instead of that they fail with a popup that prevents them from finishing. They will be killed after some determined time (5-10 minutes usually). We overcome this issue by creating a "watchdog" that periodically checks for popups and closes them when found. The python code for checking is here:
The problem is that the MessageBox
is above the remote desktop connection login and is not found by the previous method. After I login to the remote desktop connection popups are found by the function that is periodically called.
The MessageBox is from csrss.exe (I saw this with Process Explorer) and has the following text:
"XXXXX.exe - Application Error"
"The instruction at <...> referenced memory at <...> . The memory could not be read."
Click on OK to terminate the program
Click on CANCEL to debug the program
I could do this: Can the "Application Error" dialog box be disabled?
But I want to know why FindWindowEx
doesn't find the MessageBox in this case. Any ideas what should I do to find that MessageBox?
Thanks!
Later Edit: The solution to disable the popups can be found here.
c# - 如何使用 FindWindowEx 在 C# 中查找仅消息窗口?
我想我已经用中文和英文搜索了这个星球上所有相关的主题,但找不到解决方案。
我创建了一个仅消息窗口来接收和处理来自 WM_COPYDATA 的数据,但我在发送端找不到窗口,下面是演示(C# 的 WPF):
收到:
发送:
发送中的 BtnSend_Click 方法,在这里找不到正确的窗口句柄,这个托盘中的人可以帮忙吗?
PS:我应该先描述一下我的要求:我想用C#创建一个windows服务,它是接收器并处理来自WM_COPYDATA的数据,所以我认为只有消息窗口是必要的,因为windows服务中没有窗口。
所以在 Sender 中,我首先需要找到这个只有消息的窗口才能将窗口句柄传递给 SendMessage,这就是重点。
多谢你们
c++ - FindWindow( ... ) 不是“查找”创建的消息窗口
在我的代码中,我有一个消息类,我想从另一个进程中“查找”。
然后在我的主应用程序的某个地方。
所以,不管我做什么,我似乎从来没有“找到”创建的窗口。
如何使用 FindWindow[Ex] 创建一个可以“找到”的窗口
vba - 等待从 IE 下载文件完成的 VBA 代码
我正在尝试从网页下载 excel 文件,到目前为止,我能够打开网页、导航并单击保存按钮,但下载后我需要访问该 excel 文件。但有时根据文件的大小,下载需要一些时间。有什么方法可以检查窗口并查看下载是否完成,然后才能继续打开下载的文件。下面是代码。
以上代码将保存下载文件
autoit - FindWindowEx Windows API 在 AutoIt 中不返回任何内容
我正在使用以下代码返回从记事本显示的打开文件对话框的句柄。
这总是返回0x00000000
,但给定的参数似乎是正确的。
为什么这个函数在这里什么都不返回?
更新
以下语法有效,但我仍然无法指定父窗口:
这会找到每个对话框(画图、写字板等),但我只想获取父对话框的句柄作为记事本。
c# - 从另一个 C# winform 应用程序获取所有文本
我正在尝试编写一个 C# 应用程序来从另一个 C# winform 应用程序中获取所有文本。我要获取的文本是Button的文本,Textbox的文本内容,Lable的文本等。我尝试了很多不同的方法,例如使用UIAutomation,FindWindowEx,但仍然没有成功。有人可以给我看一个示例 C# 代码来完成这项工作吗?
freepascal - 使用 FindWindowEx() 为编辑框找到正确的句柄
我正在尝试将一些文本发布到 Windows 树上第 3 级的编辑框。以下代码适用于记事本(vrr02),但不适用于另一个程序(Var03)。
下图以蓝色显示我要发布到的编辑,但那里没有显示任何内容。我在这里做错了什么?
谢谢。
c# - 为什么“FindWindowEx”找不到 RichTextBox 组件
我正在做一个自动程序(C#,而不是 C++),我需要在表单中获取 RichTextBox。我已经使用Spy++
来获取标题和类名,但FindWindowEx
始终找不到RichTextBox
,并GetLastError
获取单词0
。然后这是一个简单的例子。
但结果是richtextbox can't find
。帮我。