# Send keystrokes to VMWare Horizon Client

**URL:** <https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550>\
**Category:** General Programming\
**Created:** [18 September 2023 12:28 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550 "2023-09-18T12:28:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sander](https://ifnotnil.com/user_avatar/ifnotnil.com/sander/32/3725_2.png) [@Sander](https://ifnotnil.com/u/Sander)\
**Post date:** [18 September 2023 12:28 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550/1 "2023-09-18T12:28:01Z")

</div>

I use VMWare Horizon to access my work’s desktop. Unfortunately the sysadmin has set a ridiculously short inactive timeout ( 3minutes) that locks the session so a new login is mandatory. I remember the sendkeys() VB function. Can I use Xojo and a timer to send a keypress to the VMWare session every minute or so, maybe via a WinAPI function?  
Thanks,

---

<div class="post-metadata">

**Author:** ![TomasJ](https://ifnotnil.com/user_avatar/ifnotnil.com/tomasj/32/4998_2.png) [@TomasJ](https://ifnotnil.com/u/TomasJ)\
**Post date:** [18 September 2023 17:50 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550/2 "2023-09-18T17:50:44Z")

</div>

No, this doesn’t work cause what you see in your Webbrowser is basically a RDP2HTML Gateway like Apache Guacamole or xrdp. The keystrokes what your app would do are not the keystrokes in your HTML interface.

---

<div class="post-metadata">

**Author:** ![Sander](https://ifnotnil.com/user_avatar/ifnotnil.com/sander/32/3725_2.png) [@Sander](https://ifnotnil.com/u/Sander)\
**Post date:** [19 September 2023 09:55 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550/3 "2023-09-19T09:55:34Z")

</div>

It is able to receive keystrokes from my keyboard buffer. So technically, it should be possible to give the window focus and stuff some characters in the keyboard buffer.

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [19 September 2023 19:53 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550/4 "2023-09-19T19:53:10Z")

</div>

In theory sure  
But theory & practice often have a fairly wide gap

ITs its possible you’ll need some declares to put keystroke in the keyboard buffer and activate the other app to retrieve those keystrokes  
Xojo has nothing built in  
So declares or a plugin might be needed

---

<div class="post-metadata">

**Author:** ![DaveDuke](https://ifnotnil.com/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@DaveDuke](https://ifnotnil.com/u/DaveDuke)\
**Post date:** [20 September 2023 11:44 UTC](https://ifnotnil.com/t/send-keystrokes-to-vmware-horizon-client/3550/5 "2023-09-20T11:44:03Z")

</div>

PM me I maybe able to help
