Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1585

Python • Using Python with a GUI that performs keyboard strokes

$
0
0
So let me break down what I want to do.

I find myself having to type in certain things over and over at my job. I'm looking to create a simple GUI, this GUI just need to have a bunch of buttons. Depending on which button you click, the code will type out on whatever screen has focus(not the python app) on.

So picture a horizontal GUI with 5 buttons.

If I click button 1. whatever screen I'm on (say firefox, whatever) types angler@email.com or if I push button 2. it types literally anything I want. Similar to hot keys. I'm sure there's plenty of free software that does this but I can't use that per policy. Now if I write my own, well good to go.

If anyone can point me in the right direction that would be awesome. I have little to no GUI experience in python. I built one little PW generator that had a GUI, it had one button lol (create random password) then it would display it on the screen for you to copy/paste. That's my extent with GUI.

Thanks in advance!

Statistics: Posted by anglerfish27 — Tue Jun 03, 2025 5:25 pm



Viewing all articles
Browse latest Browse all 1585

Trending Articles