如何隐藏Windows程序并发送点击和填写表格?

发布于 2024-08-22 13:10:51 字数 1437 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

那些过往 2024-08-29 13:10:51

您可以隐藏像 MadBoy 显示的窗口,然后使用 AutoIt 的“ControlCommand”功能填充/调整控件,如下所示:

WinSetState("Screen Resolution", "", @SW_HIDE)
ControlCommand("Screen Resolution", "", "ComboBox1", "SetCurrentSelection", "2")
WinSetState("Screen Resolution", "", @SW_SHOW)

要检测控件具有哪个类名,您必须使用 AutoIt 附带的 AutoIt 窗口信息工具,并且默认安装。

例如,要填写文本框,您可以使用:

ControlCommand("WinTitleHere", "", "Edit1", "EditPaste", "This is some text")

这甚至适用于隐藏窗口。

You can hide windows like MadBoy showed and then fill/adjust controls using the "ControlCommand"-Function of AutoIt like this:

WinSetState("Screen Resolution", "", @SW_HIDE)
ControlCommand("Screen Resolution", "", "ComboBox1", "SetCurrentSelection", "2")
WinSetState("Screen Resolution", "", @SW_SHOW)

To detect which Classname a control has you must use the AutoIt Window Info tool which comes with AutoIt and is installed by default.

To fill out TextBoxes for example you would use:

ControlCommand("WinTitleHere", "", "Edit1", "EditPaste", "This is some text")

This even works with hidden windows.

若有似无的小暗淡 2024-08-29 13:10:51

要隐藏应用程序,您需要使用 (AutoIt v3):

 WinSetState($application_name, "", @SW_HIDE) 

 WinSetState($application_name, "", @SW_SHOW)

其中 $application_name 是您的应用程序名称。第一个是隐藏,第二个是显示。

我不确定您是否可以在隐藏时填写表格,但我想您可以自己验证。可能您必须使用 ControlSend 直接向控件发送文本。

To hide application you need to use (AutoIt v3):

 WinSetState($application_name, "", @SW_HIDE) 

 WinSetState($application_name, "", @SW_SHOW)

Where $application_name is your application name. First one is to hide, 2nd one is to show.

I am not sure if you can fill out forms when it's hidden thou but i guess you could verify it yourself. Probably you would have to use ControlSend to directly send text to control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文