开发者

how to hide windows program and send clicks and fill out forms? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago.

开发者_StackOverflow社区 Improve this question

i need to hide a windows program (not visible in taskbar, system tray. visible in taskmgr). and send clicks and fill out forms on this windows program (while hidden).

possible with autoit or autohotkey ? any other suggestions ?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜