Tagged: Sendkeys

Sendkeys in Visual Basic Scripts

Sendkeys can also be used from a Visual Basic Scripts, which means you can ex. build a vbs file, that can be used for starting up applications, or executing steps that you often have to do.

This is an example on starting the Notepad and afterwards, as the first thing to do writing the word Hallo: Read more »

Keys in SendKeys

Most keys can be represented by the character of the key itself. E.g, the key sequence HALLO can be represented simply by “HALLO”.

Some special keys, such as the control keys, function keys etc are encoded in a string enclosed by {braces}
See the table below:
Read more »

Issues with Sendkeys

When using Sendkeys there is one big issue, you can not see when/if the application is in the correct state. This means you have to build in some kind of wait states and then after each wait, you must assume that the application is in the correct state.
Read more »

Sendkeys in Navision

code-dynamics

With SendKeys you simulate user keystrokes – which mean it is possible to start applications, enter information, choose menus, buttons etc.

SendKeys is a part of Windows Script Host.

Currently I am using this functionality to take over a second Navision Client, to start an export of objects without any user interventions.

Read more »