0

I'm trying to send Ctrl+ (to zoom in on a browser) but can't find the correct key for +. I've tried NumPadAdd,+ and a few other variants. Any ideas what the key name is?

I've added the following to /home/pi/.config/lxsession/LXDE-pi/autostart in Jessie with Pixel. The URL is a site that requires a login. The login is saved but requires 'Return' to accept the credentials. It then needs zooming to 125% (Ctrl+ x2)

############## Browser auto launch ################### 
# Comment out the line below with a hash, after setting the Chrome-browser launch page 
#@leafpad /home/pi/.config/lxsession/LXDE-pi/autostart 
@chromium-browser --kiosk --disable-restore-session-state --display=:0 http://www.google.co.uk

sleep 20 && xte 'key Return' -x:0
sleep 5 && xte 'keydown Control_L' 'key NumPadAdd' 'keyup Control_L' -x:0
  • Turns out that zooming can also be achieved by holding down Ctrl and rolling the mouse wheel. So the xte options I'm after are MouseWheelUp or NumberPadAdd - rolling the wheel up twice or pressing the plus key (numberpad or above the = key). – Andy Anderson Mar 30 '17 at 11:39
  • *** SOLVED - delayed remote zoom achieved *** sleep 2 && xte 'keydown Control_L' 'key equal' 'keyup Control_L' -x:0 – Andy Anderson Mar 30 '17 at 14:13
  • Mouse wheel up/4 down/5:: $ xte 'mouseclick 4' – Andy Anderson Mar 30 '17 at 21:53
0

Found the answers myself (with help!). (Ctrl + plus) = $ xte 'keydown Control_L' 'key equal' 'keyup Control_L' (Mousewheel up/down) = xte 'mousebutton 4' 'mousebutton 5' Where 4 is scroll up and 5 is scroll down.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.