23:07 Как программно в VBA и спользуя winapi иммитировать нажатие на клавиатуре кнопок | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SendKeys Method
Office XP
Sends keystrokes to the active application. expression.SendKeys(Keys, Wait) expression Optional. An expression that returns an Application object. Keys Required Variant. The key or key combination you want to send to the application, as text. Wait Optional Variant. True to have Microsoft Excel wait for the keys to be processed before returning control to the macro. False (or omitted) to continue running the macro without waiting for the keys to be processed. RemarksThis method places keystrokes in a key buffer. In some cases, you must call this method before you call the method that will use the keystrokes. For example, to send a password to a dialog box, you must call the SendKeys method before you display the dialog box. The Keys argument can specify any single key or any key combined with ALT, CTRL, or SHIFT (or any combination of those keys). Each key is represented by one or more characters, such as To specify characters that aren't displayed when you press the corresponding key (for example, ENTER or TAB), use the codes listed in the following table. Each code in the table represents one key on the keyboard.
You can also specify keys combined with SHIFT and/or CTRL and/or ALT. To specify a key combined with another key or keys, use the following table.
ExampleThis example uses the SendKeys method to quit Microsoft Excel. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Всего комментариев: 0 | |