ControlSend, Notepad, {b down}{b up}, Untitled - Notepad

I want to send b key input to Notepad window (so that b key would be pressed, when Notepad's window is not active).

No error, no feedback, nothing happens. I found out Notepad's class by using Window Explorer program and the title is the default unsaved document's. What am I doing wrong here? I was trying to find something working that would help solve this problem, but there isn't so much information.

有帮助吗?

解决方案

You are confusing Class and ClassNN.
ControlSend requires ClassNN as the second parameter

Notepads default ClassNN is Edit1.

ControlSend, Edit1, {b down}{b up}, Untitled - Notepad
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top