Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== KeyboardEvent ====== Method of [[:scripting:api:shell:start|IShell]] ===== Description ===== Emulates Keyboard Event ===== Parameters ===== * [[scripting:api:data-type:char|char]] **nVirtualCode** * [[scripting:api:data-type:char|char]] **nScanCode** * [[:scripting:api:keyboard-event-flag|eKeyboardEventFlag]] **dwFlags** * [[scripting:api:data-type:ULONG|ULONG]] **dwExtraInfo** = 0 (optional) ===== Syntax ===== ==== JavaScript ==== <code javascript> Shell.KeyboardEvent(nVirtualCode, nScanCode, dwFlags, dwExtraInfo); </code>==== Visual Basic Script ==== <code vb> Shell.KeyboardEvent nVirtualCode, nScanCode, dwFlags, dwExtraInfo </code>==== C++ ==== <code cpp> HRESULT hr = Shell.KeyboardEvent(nVirtualCode, nScanCode, dwFlags, dwExtraInfo); </code>===== See Also ===== [[:scripting:api:shell:start|IShell]] ~~NOTOC~~