Jump to content

mikedvzo

Member
  • Posts

    212
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by mikedvzo

  1. I am using a Python Script that someone else wrote to control the macOS Media keys for music playback.  It stopped working in Monterey 12.3 with Python deprecation even though I added support for Python as instructed.  I am not a programmer so any help is appreciated.  I get the error message "No module named Quartz" even after doing a "pip install pyobjc-framework-Quartz". Below is the code:

     

    #!/usr/local/bin/python

    # CLI program to control the mediakeys on OS X. Used to emulate the mediakey on a keyboard with no such keys.
    # Easiest used in combination with a launcher/trigger software such as Quicksilver.
    # Main part taken from http://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac
    # Glue to make it into cli program by Fredrik Wallner http://www.wallner.nu/fredrik/

    import Quartz
    import sys

    # NSEvent.h
    NSSystemDefined = 14

    # hidsystem/ev_keymap.h
    NX_KEYTYPE_SOUND_UP = 0
    NX_KEYTYPE_SOUND_DOWN = 1
    NX_KEYTYPE_PLAY = 16
    NX_KEYTYPE_NEXT = 17
    NX_KEYTYPE_PREVIOUS = 18
    NX_KEYTYPE_FAST = 19
    NX_KEYTYPE_REWIND = 20

    supportedcmds = {'playpause': NX_KEYTYPE_PLAY, 'next': NX_KEYTYPE_NEXT, 'prev': NX_KEYTYPE_PREVIOUS, 'volup': NX_KEYTYPE_SOUND_UP, 'voldown': NX_KEYTYPE_SOUND_DOWN}

    def HIDPostAuxKey(key):
        def doKey(down):
            ev = Quartz.NSEvent.otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
                NSSystemDefined, # type
                (0,0), # location
                0xa00 if down else 0xb00, # flags
                0, # timestamp
                0, # window
                0, # ctx
                8, # subtype
                (key << 16) | ((0xa if down else 0xb) << 8), # data1
                -1 # data2
                )
            cev = ev.CGEvent()
            Quartz.CGEventPost(0, cev)
        doKey(True)
        doKey(False)

    if __name__ == "__main__":
        try:
            command = sys.argv[1]
            assert(command in supportedcmds)
            HIDPostAuxKey(supportedcmds[command])
        except (IndexError, AssertionError):
            print "Usage: %s command" % (sys.argv[0],)
            print "\tSupported commands are %s" % supportedcmds.keys()

  2. That is my experience too. At the same time I posted this on the Alfred form I also replied to a post in December about this problem. The user had retracted it and said it wasn’t an issue but it clearly is Still a problem. I updated my original post here because I meant to say the problem goes away if I quit 1Password and restart it

  3. I have noticed this problem with Alfred Text expansion in the latest update of 1Paasword8 8.60 and Alfred 4.6.2. 1Password blocks secure input. I know this has been a known issue with Terminal for a long time, but only recently, with the latest release of 1Password, have seen this issue. The problem is usually fixed if I quit and restart 1Password.

     

    Anyone else seen this issue?

  4. The latest updated of Alfred seems to have increased the size of the Large Type output. On my 32" 4K Monitor it is just too large and requires pan and scan to read it.  Is there an option planned to change the font size. I saw no reason to increase the size of the font.  Most people run large format monitors these days.  

  5. I have been using Alfred Remote from the beginning and now noticed there is an option for different grid sizes.  How is this implemented? I have an iPhone 11 Max pro. Is this only for iPAD. If I change the grid size nothing happens. Is this supported on iPhone 11 max Pro and if so do all the pages have to be the same size for it to work.  I can find no docs on this.  

  6. Thanks that is exactly what I was looking for.  For some reason my new Logitech keyboard with Logi Options daemon was interfering although I could not find a setting for the keyboard shortcut and it appeared to do nothing.  I uninstalled it and set the shortcuts in Alfred and reinstalled it and now it is fine.  

  7. I have noticed this once or twice before.  I was using a hotkey ctrl-opt-cmd-k and ctrl-opt-cmd-t for over a year now to launch 2 different apps.  I went into my hockey workflow and remove the mappings and changed int for a brief moment and now I cannot put it back. If I try to change back to he original hotkey Alfred does not respond to the input when changing the hotkey.  As if it is being used by another app.  It is baffling.  

  8. All this rhetoric is totally unnecessary as there are no problems in the App and it works beautifully.  However, all of this can be dispelled with a simple answer of whether we can expect an update in 6 months, 1 year, 2 years etc..... Just a rough guideline since there has been no feedback on this for a very long time - over a year now.  

     

    As I have stated in the past, I would like to see a new updated version for the iPhone with the latest iOS features but understand that Andrew has to allocate his time appropriately.  I personally am willing to pay for such an update.  

  9. On 3/26/2018 at 12:10 PM, Andrew said:

    Alfred Remote will be receiving a big "Version 2" update, I'm already planning the feature set and improvements.

     

    It's also worth noting that we've been adding features to Alfred Remote through added objects within Alfred itself, so while Alfred Remote hasn't had a core update, it has had new abilities added over the past few years.

     

    Cheers,

    Andrew

    It has been almost 2 years this since was first discussed and I have not seen anything on expected release time frame.  With all the changes in IOS an update is much needed.  I would rather pay for the update and get it sooner than later.  

  10. Andrew,

     I use Alfred Remote every day and I was wondering if there is any update on when Alfred Remote Version 2 will be out?

     I am very interested and hoping it integrates more tightly with iOS.  Looking for features like Siri and Shortcut support and

    an option to Connect to Alfred via Direct and Bonjour from the same device.  Thx 

  11. No Calendar and Reminder access will be prompted by Mac OS permissions when you run a work flow that needs access to Calendar or Reminders.  At that point you need to say yes and grant access to Alfred.  It will then show up here.  You can run this simple workflow and it will request access but you need to download and install iCalbuddy.

     

    https://www.dropbox.com/s/pnx2xgm987nmii6/TEST.alfredworkflow?dl=0

     

     

    Screen Shot 2019-06-07 at 5.18.44 PM.png

×
×
  • Create New...