x74353 / KeyJerk-Reactions

An app to trigger macOS Sonoma video reactions using hot keys.
Other
20 stars 1 forks source link

Errormessage #1

Closed frag-p closed 2 weeks ago

frag-p commented 11 months ago

Hello! When using KeyJerk-Reactions while using PhotoBooth I get the following message in a PopUp Window: "The Audio Video Control menu bar item wasn't found. Make sure there is a running app that is actively using your camera."

although the green video Icon is active kin the Menu bar and PhotoBooth opened!

Is there any solution?

angeloruggieridj commented 10 months ago

Hello! When using KeyJerk-Reactions while using PhotoBooth I get the following message in a PopUp Window: "The Audio Video Control menu bar item wasn't found. Make sure there is a running app that is actively using your camera."

although the green video Icon is active kin the Menu bar and PhotoBooth opened!

Is there any solution?

When you open the green icon, do you see only the preview of your Facetime HD Camera or also the reactions panel?

frag-p commented 10 months ago

I get the following:

Am 11.01.2024 um 20:54 schrieb Angelo Ruggieri @.***>:

Hello! When using KeyJerk-Reactions while using PhotoBooth I get the following message in a PopUp Window: "The Audio Video Control menu bar item wasn't found. Make sure there is a running app that is actively using your camera."

although the green video Icon is active kin the Menu bar and PhotoBooth opened!

Is there any solution?

When you open the green icon, do you see only the preview of your Facetime HD Camera or also the reactions panel?

— Reply to this email directly, view it on GitHub https://github.com/x74353/KeyJerk-Reactions/issues/1#issuecomment-1887867127, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE4W3JW7QXNLUMCWOEYVCKDYOA7Q3AVCNFSM6AAAAABBCJUQM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXHA3DOMJSG4. You are receiving this because you authored the thread.

x74353 commented 10 months ago

@frag-p - For KeyJerk Reactions to work, the Reactions menu needs to be present. Like in the attached screen shot. Your most recent comment looks like you tried to add a screen shot but all I see is a [OBJ] icon. Maybe try reposting your screen shot? ScreenShot 2024-01-11 at 17 25 24

frag-p commented 10 months ago

uh, sorry about that - I hope it works this time. In addition I upload the screenshot of the error message: GREEN PANEL ERRORMESSAGE

kantmichel commented 10 months ago

Same issue here when using loom.

Maybe it's because we don't have an English setup?

I'd love to set this up on the stream deck. A tutorial on that would also be nice to add to the readme. Found this walkthrough for scripts on stream deck: https://www.reddit.com/r/elgato/comments/z93cbm/this_post_is_for_my_applescript_loving_stream/

But first getting it to run when loom is on is a good step haha.

Thanks!

x74353 commented 10 months ago

@kantmichel @frag-p The issue might be that English is not the language used for macOS. If so, should hopefully be a simple fix to the script.

Sindbad5 commented 10 months ago

Tried it with MacOS "german setup". I am not so firm with AppleScript and MacOS naming conventions. So it is not so easy to fix it.

In the english version: … if description of menuBarItem is "Audio and Video Controls" then … In the german version: … if description of menuBarItem is "Audio- und Videosteuerung" then … This works well for me.

Then there’s in the original version : … window "Control Center" of application process "Control Center" … I have to use at the end of the line „ControlCenter“ without a blank character : … window "Control Center" of application process "ControlCenter" …

And I get an error message without knowing anything how to fix it: ... „window "Control Center" of application process "ControlCenter" couldn’t be read. I tried all english and german variations for „Control Center“ - no success.

Any idea where to find the right naming for the window?

Thanks!

frag-p commented 10 months ago

...might it be "Kontrollzentrum"?

Sindbad5 commented 10 months ago

Nope ... Screnshot

x74353 commented 10 months ago

I had to run a script to return all of the elements to determine what that names were. Not 100% certain, but I modified something like this to get the desired target element names:

https://stackoverflow.com/questions/42231133/use-applescript-to-list-the-names-of-all-ui-elements-in-a-window-gui-scripting

perenstrom commented 10 months ago

I also ran into problems with the script. After listing the names I found that my window was called Control Centre, as in the UK spelling. So updating all click UI element 2 of group 2 of group 1 of window "Control Center" of application process "ControlCenter" to click UI element 2 of group 2 of group 1 of window "Control Centre" of application process "ControlCenter" worked for me.

To check your window name, add the following after the line click menuBarItem

tell application "System Events"
    tell its application process "ControlCenter"
        repeat with selectedWindow in every window
            log name of selectedWindow as string
        end repeat
    end tell
end tell

And @x74353, perhaps just change it to the following to skip the localisation bugs:

try
    tell application "System Events"
        click UI element 2 of group 1 of group 1 of window 0 of application process "ControlCenter"
    end tell
end try
Sindbad5 commented 10 months ago

For me, the solution: I had set "Automatically show and hide menu bar" to "always" in the system settings. If I set it to "Never" it works.

Is there a way to keep it "always" and activate it in the script if necessary?

Sindbad5 commented 10 months ago

Another Question ... When I am using Facetime and OBS Studio at the same time and the ScreenShare- Mode (MacOS Sonoma) is activated it looks like in the Screenshots.

When Facetime is activated it works. When OBS is activated there is additionally the Screenshare-Feature activated and the script doesn't work anymore.

How to address the right "section" (the section 'Blackmagic Design' below 'Screenshare', where 'Reactions' are located)?

Thanks in forward.

Screenshot

x74353 commented 3 weeks ago

@frag-p @angeloruggieridj @perenstrom @kantmichel @Sindbad5

I've just uploaded a dmg for KeyJerk Reactions 2. This new release includes initial support for non-English system languages. After the Welcome window is dismissed, KeyJerk Reactions will check whether your Mac's system language is set to English. If not, you will be prompted to define the spellings of the various UI elements that KeyJerk Reactions needs to click/interact with. Once that setup is complete, KeyJerk Reactions should be able trigger Reactions in any language. That said, I have only tested with German so far.

If you've previously set KeyJerk Reactions to not show the Welcome window when launched, you probably will need to Reset Settings in KeyJerk Reactions' Settings window.

Also in this release is initial support for screen sharing mode.

The "Automatically show and hide menu bar" → "Always" in system settings issue will likely persist, but I will look into whether a solution can be developed for that, though I am not too confident one is possible.