Python Forum

Full Version: "Switch-to-spreadsheet" entry. Feasible in Python?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My situation:

Know almost nothing about coding, and I need to do this...

Hit a switch or button (in this case a switch) outside of the keyboard, and make this input go into the computer, through a piece of (hopefully uncomplicated) software and end up making an entry into a spreadsheet.

For example:

Hit a switch. It types "a" into a cell on a spreadsheet. Hit another switch. It types "b" into another cell. And so on. Just like a key on a keyboard, except its a switch not on the keyboard, and it bypasses the keyboard and goes straight into the computer. But where? As far as I can see, onto the software that has to be built, which would then transfer it to the spreadsheet.

I've tried using the JoyToKey program but I've found it has some pretty severe problems at least in my case, so I'm thinking I may one day have to somehow develop something on my own.

My question:

Would Python be a good option to try to develop this in? I've read its one of the easier programming things to learn, which really catches the attention of someone like me who basically knows nothing. If you think Python is NOT the thing to use, can you recommend a better possibility for me?

Thanks!
You can create a program with that functionality simply with assembly language. It would help you create a keyboard on a your actual keyboard. Actually, I am suggesting assembly language because we have learned this technique in that language during my curriculum. I am not aware of any method that can help you do it with python.
Your question is very vague and general, but it should be possible to take input from game controler and process it as per your needs.
https://www.google.com/search?q=game+controller+python

I refer to game controller, because you mention JoyToKey, answer will depend on actual switch hardware you use.