Results 1 to 3 of 3

Thread: autokey: how to select an item by a hotkey in a context menu

  1. #1
    Join Date
    Jan 2018
    Beans
    1

    autokey: how to select an item by a hotkey in a context menu

    I try to call the context menu in Firefox and save image:

    Code:
    mouse.click_relative_self(0, 0, 3)
    time.sleep(1)
    keyboard.send_keys("о")
    ("о" is Russian hotkey for "Save Image as" item in Firefox context menu)

    Context menu is brought up, and no further action is performed, send_key() variant doesn't work too.

    What have I missed?

    Thank you in advance.

  2. #2
    Join Date
    Dec 2007
    Beans
    12,533

    Re: autokey: how to select an item by a hotkey in a context menu

    So this is when you right-click on an image in a web page?

  3. #3
    Join Date
    Dec 2007
    Beans
    12,533

    Re: autokey: how to select an item by a hotkey in a context menu

    Try
    Code:
    sleep 10s && xdotool click 3 && xdotool mousemove_relative --sync 25 100 && sleep 1s && xdotool click 1
    where you may need to change 100 (and possibly 25) to suit your screen. Once you've got things going, you can remove the first sleep and remove the second sleep if the code works without it.

    If you don't have xdotool get it from the repos.
    Last edited by vasa1; January 14th, 2018 at 01:29 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •