Jump to content

apjcs

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by apjcs

  1. On 5/25/2021 at 10:48 PM, deanishe said:

    Create a workflow, add your Hotkey of choice, then connect it to a Run Script action with Language = /usr/bin/osascript (JS). Paste this code in the Script box:

     

    
    ObjC.import('CoreGraphics');
    
    function run() {
        let ev = $.CGEventCreateMouseEvent(null, $.kCGEventMouseMoved, {x: 100, y:10}, $.kCGMouseButtonLeft);
        $.CGEventPost($.kCGHIDEventTap, ev);
    }

     

    That will move your cursor to 100 pixels from the left of the screen and 10 from the top. Should be close to the File menu, but that moves depending on how long the name of the application is.

     

    Thanks, I'm giving this a try.  Ideally, I'd like to see the App menu as a context menu at the current mouse cursor position as opening the app menu in it's standard location is disruptive to my visual focus of the window I am working in.

  2. I have a 4k screen (non retina) and when I have say a small window open at the bottom left hand corner of the monitor, it is a very very long mouse(or trackpad) movement to get to the file minuet the top left of the monitor.  

     

    I would like to be able to assign a gesture, for example, double 4 finger tap to showing the menubar menus as a context menu (or not) right where my pointer is.

     

    If this is possible already and I have missed it, I apologise.   I had a trial of BetterTouchtool which has this capability, but I love Alfred and don't really want to add another app just for one feature.

     

    Thanks

     

×
×
  • Create New...