Вопрос

 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