How to use SendKey using automation on Nav Server

I want to use a send-key functionality using Automation on Nav 2013 and getting a below error.

Any Idea about how to create automation variable to nav server.

Microsoft Dynamics NAV Development Environment

You cannot create an Automation object “WSHShell” on Microsoft Dynamics NAV Server. You must create it on a client computer.


Welcome to DUG!!!

Look at following blog

You need to instantiate the automation with OnClient parameter = TRUE.

Here’s an example of usage in NAV 2013: