This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create action from switch attached to GPIO
#6
(2017-05-20, 03:35 PM)PaddyB Wrote:
(2017-05-20, 02:52 PM)Littlechay Wrote: I thought a tool like "xdotool" might work (ctrl+space is the keyboard shortcut to drop a MOB marker) but it doesn't seem to do anything on the Pi.. ??

I was thinking to use an action to issue a command like
Code:
xdotool search --name "OpenCPN 4.6.1" key ctrl+space

which runs without error but doesn't do anything either; anybody any ideas on this ? 

P.S. I haven't tried running this as an action yet. I've only been experimenting in a terminal

 xdotool search "OpenCPN 4.6.1" windowactivate --sync key --clearmodifiers l

That works to turn on and off the light in opencpn so you must be close, can't get it working with cntrl  space though. Good find!

Thanks.. I'll go and ask in the OCPN forum
Reply


Messages In This Thread
RE: Create action from switch attached to GPIO - by Littlechay - 2017-05-20, 11:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)