# Sending non-character keystrokes to EC 4.5.2.0

**URL:** <https://techcommunity.softwareag.com/t/sending-non-character-keystrokes-to-ec-4-5-2-0/178672>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Other-Addons, Natural-Related-Products, Terminal-Emulation-and-Screen-Scraping\
**Created:** [September 24, 2014, 7:04pm UTC](https://techcommunity.softwareag.com/t/sending-non-character-keystrokes-to-ec-4-5-2-0/178672 "2014-09-24T19:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_A1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@M\_A1](https://techcommunity.softwareag.com/u/M_A1)\
**Post date:** [September 24, 2014, 7:04pm UTC](https://techcommunity.softwareag.com/t/sending-non-character-keystrokes-to-ec-4-5-2-0/178672/1 "2014-09-24T19:04:26Z")

</div>

Our application is trying to send keystrokes to Entire Connection 4.5.2, characters and digits are written with no problems. However when we try to send {ENTER}, {TAB}, {RIGHT}, etc… nothing happens on the emulator side.  
If we send something like HELLO {ENTER} WORLD, the emulator screen will show

> [@](#):
>
> HELLOWORLD

instead of

> [@](#):
>
> HELLO  
> WORLD

We tried sending the keystrokes using SendKeys.SendWait like

```auto
SendKeys.SendWait("{ENTER}");
```

also tried post message like

```auto
PostMessage(hWnd, WM_KEYDOWN, VK_RETURN, 0);
```

but neither worked.

Same code worked fine on other emulators. Is there a different mechanism to be followed for EC?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:32pm UTC](https://techcommunity.softwareag.com/t/sending-non-character-keystrokes-to-ec-4-5-2-0/178672/2 "2021-04-02T15:32:06Z")

</div>


