Domanda

 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.

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top