jveitch
Posts: 8
Joined: Sat Dec 17, 2016 1:25 am

Using program inputs over VNC

Fri Jan 20, 2017 6:31 am

Hello everyone,
Problem:
I have written a program in Python2 on my RPi and it runs happily.
The program takes a keystroke from the connected keyboard and turns on/off/speeds up a DC motor.

When I try to submit a keystroke from my MacBook Air via VNC the program does not accept the keystroke as an input to the program it just prints the keystroke.

I have VNC running and it seems to do everything it should be doing. I can connect to the RPi using SSH from my Mac. All connections seem fine, but I can not remotely "input" a keystroke.

What to do???
Thank you for any help.
It's hot here in Australia, hope it's nice where you are.
JV

jveitch
Posts: 8
Joined: Sat Dec 17, 2016 1:25 am

Re: Using program inputs over VNC

Fri Jan 20, 2017 6:41 am

Oh, I should have said I have a RPi-3-B, does that matter?
JV

mattmiller
Posts: 2166
Joined: Thu Feb 05, 2015 11:25 pm

Re: Using program inputs over VNC

Fri Jan 20, 2017 7:41 am

Don't know but posting your code inside code tags would help others help you :)

User avatar
Cancelor
Posts: 759
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: Using program inputs over VNC

Fri Jan 20, 2017 7:58 am

as a possible work around, although I am sure it is fixable, try the on screen keyboard of the RPi
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

Return to “Beginners”