# Is faking keyboard input possible?

**URL:** <https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150>\
**Category:** General\
**Created:** [29 July 2023 06:37 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150 "2023-07-29T06:37:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 July 2023 06:37 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150/1 "2023-07-29T06:37:29Z")

</div>

I have a RasPi with a largish screen (touch) and want to know if there is a way I can simulate keyboard input to do things.

Ok, the Pi is running Stretch (Yeah, SO OLD now) and an old version of Firefox.  
I want to make it FULL SCREEN in some instances.  
I believe it is `F11` to do this now/normally.

Any suggestions how I could do this?

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [29 July 2023 06:42 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150/2 "2023-07-29T06:42:42Z")

</div>

not sure this is what you want. but try this

> [@Sendkeys to enter fullscreen](https://discourse.nodered.org/t/sendkeys-to-enter-fullscreen/4642/5):
>
> I get through this forum and get it to. [{"id":"911e3d0e.7d6e9","type":"ui\_template","z":"fb66ed32.2ae5","group":"5a956c96.cfca64","name":"","order":2,"width":0,"height":0,"format":"\n\<md-button ng-click="send({payload:action()})"\>\n Fullscreen\n","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":300,"y":1380,"wires":[]},{"id":"5a956c96.cfca64","type":"ui\_group","z":"","name":"Saving Data","tab":"f2edd282.5445a","order":3,"disp":true,"width":6,"collapse":false},{"id":"…

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [29 July 2023 10:34 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150/3 "2023-07-29T10:34:44Z")

</div>

Is the keyboard simulation ONLY for the F11?  
If yes, then search this forum for **Full screen** or place your pi in [kiosk mode](https://www.raspberrypi.com/tutorials/how-to-use-a-raspberry-pi-in-kiosk-mode/)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 July 2023 22:07 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150/4 "2023-07-29T22:07:45Z")

</div>

Well, yes that would be possible too.

But it isn't ONLY for this scenario.

I've written a _flow_ to do some network diagnostics and when running _FULL SCREEN_ would be better than not.  
Not that it is a deal breaker.

I am about to try the other code.

So having the RasPi in Kiosk mode would be bad when I am using it for its other uses.  
With the other code I load FireFox, look at the local NR flow, press a button to make it full screen and do the _diagnostic_ stuff then move on.

Anyway, enough talking from me. Gotta actually do things now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 August 2023 22:08 UTC](https://discourse.nodered.org/t/is-faking-keyboard-input-possible/80150/5 "2023-08-12T22:08:12Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
