MarvNC/StampNyaa

Clicking on a sticker pulls up the Accessibility System Settings (macOS)

Crystallized21 opened this issue · 8 comments

Clicking a sticker pulls up system settings to change Accessibility settings. Even though the option is already toggled on.
Maybe change the function to copy the image instead of injecting it into Discord?

Sequence.01_1.mp4
MarvNC commented

It does copy the image and pastes onto the previous window. Does this happen every time? In your recording there doesn't seem to be any window open before StampNyaa so it doesn't seem to be a bug exactly.

MarvNC commented

I added a notice in the readme for Mac users.
chrome_MarvNCStampNyaa_A_simple_desktop_app_for_downloadi_2023-07-13_12-52-35

It does copy the image and pastes onto the previous window. Does this happen every time? In your recording there doesn't seem to be any window open before StampNyaa so it doesn't seem to be a bug exactly.

Discord is opened at that time, however even though the accessibility settings is turned on, it still redirects me to the system settings page.

Does this happen every time?

Forgot to clarify, but yes it happens every time. I can’t paste the sticker, since it takes me back the settings page.

Tried to turn it off and back on, still had no effect.

MarvNC commented

Unless Discord is cropped out in the recording, it doesn't seem to be active before StampNyaa.

What StampNyaa does is:

  • Copy the sticker to the clipboard
  • Hide the application as this should focus on the previously focused window
  • Paste ctrl + v

There isn't an easy way to actually focus on a separate window, so StampNyaa just does this method which makes the most sense imo. I don't know why the accessibility settings show up like that.

The intended use case is:

  • Use chat app
  • Use hotkey to show StampNyaa on top of the previously active app
  • Send sticker, close StampNyaa to focus on the previous chat app, paste the sticker image.

If you use it this way, does it work?

  • Copy the sticker to the clipboard
  • Hide the application as this should focus on the previously focused window
  • Paste ctrl + v

Test it out again, but it indeed copys the sticker. But still brings up the System Settings Application, even if restarted.
I've upgraded to macOS Sonoma Developer Beta 3 so I think thats why?

Screen.Recording.2023-07-14.at.11.43.22.AM.mov
MarvNC commented

Ohh that's really strange, thanks for demonstrating. What if you use a hotkey instead of clicking the dock icon?

I haven't done anything to specify accessibility settings or anything, I think it's just automatically done because the app tries to press command v. From this video my best possible guess is that using the dock icon unfocuses discord somehow in a different way than using the hotkey would. If it still doesn't work after the next update I might have to add a setting to disable the command v step.

What if you use a hotkey instead of clicking the dock icon?

Neither the Hotkey works. My best guess is that macOS Sonoma Dev Beta 3 fiddled with something, causing it not work as expected. Before then, it worked.

MarvNC commented

Oh okay, thanks for the clarification. Will keep an eye out but I don't know anything I can do unfortunately. For what it's worth, I have a friend using an older version and it seems to work fine (excluding the other issues you reported which are fixed now).