Community
    • Login

    Hit keys _ Mac

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AL Hasan Haj AsaadA
      AL Hasan Haj Asaad
      last edited by

      I would really thank you for this nice simple program
      in fact I left Mac cause you don’t release any version in Mac’s platform
      will you release it _ ?
      second :
      when keys are pressed over keyboard _ is there any preference which make me listening a sound like I listen to the key hits _ ?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @AL Hasan Haj Asaad
        last edited by

        Hello @AL-Hasan-Haj-Asaad,

        I’m not quite sure if I understand your question correctly.
        Do you want a sound to be played while pressing a key?
        If so, npp doesn’t support this natively. I assume it can be solved
        but as said, I’m not sure whether I understood your question correctly.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • AL Hasan Haj AsaadA
          AL Hasan Haj Asaad
          last edited by

          @Claudia-Frank said:

          assume

          Yes It is so
          Sad …
          Mac platform still a big problem
          I don’t know why does not a big program such NPP++ support this platform _?

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @AL Hasan Haj Asaad
            last edited by

            Hello @AL-Hasan-Haj-Asaad

            Mac platform still a big problem

            there are different possibilities to run notepad++ on a mac (not natively but it is possible)
            A) run npp within a vm -> parallels support windows
            B) use software like winebottles to run npp on mac

            I don’t know why does not a big program such NPP++ support this platform _?

            npp uses windows api heavily and os’s like osx and linux do have different api,
            so in order to support those os’s you need to either provide three different versions
            or introduce an additional layer which abstracts each os api with the benefit to slow
            down npp execution.

            In regards to your question,
            is a bit of a hack and works only if char is added.
            What needs to be done first is described here

            The script itself

            import winsound
            
            soundfile = "C:\Windows\Media\chimes.wav"
            
            def callback_CHARADDED(args):
                winsound.PlaySound(soundfile, winsound.SND_FILENAME)
            
            editor.clearCallbacks([SCINTILLANOTIFICATION.CHARADDED])
            editor.callback(callback_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED])
            

            Of course you need to change the path to the soundfile.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors