-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS Global Hotkey Docs #1593
Comments
Regarding 1, seems like it's because of #1292. My fingers aren't flexible enough to use the default Cmd-Alt-Shift-4 global hotkey for flameshot, so I used a separate tool (BetterTouchTool, not free) to map Cmd-4 to Cmd-Alt-Shift-4, it works really well. |
Nice! Can you elaborate on the settings that you used for this? Is it just mapping cmd-4 to cmd-alt-shift-4? |
Oh, there's a global hotkey already?? 🤯 Where did you find this? This is already almost good enough! I would add a quick note to the docs to make this more prominent, if you can point me to the source of this information. |
Yes please submit a PR to clarify this and I'll get it merged. |
Hi @karlhorky ignoring application responses
tell application "System Events" to tell process "Flameshot"
tell menu bar item 1 of menu bar 2
click
end tell
end tell
end ignoring
delay 0.1
do shell script "killall System\\ Events"
tell application "System Events" to tell process "Flameshot"
tell menu bar item 1 of menu bar 2
click menu item "Take Screenshot" of menu 1
end tell
end tell It is way faster, but sometimes I need to hit the button twice or more then just twice. I don't know why, but it is the best solution at the moment. best regards |
Hi @karlhorky I have now a solution for the problem, that the script doesn't work always. :) I hope this works! Focus-part: tell application "System Events"
tell application "flameshot" to activate
repeat while (value of attribute "AXfocused" of group 1 of scroll area of ¬
process "Flameshot" is {false})
keystroke "<" using command down
end repeat
end tell Take screenshot part: ignoring application responses
tell application "System Events" to tell process "Flameshot"
tell menu bar item 1 of menu bar 2
click
end tell
end tell
end ignoring
delay 0.1
do shell script "killall System\\ Events"
tell application "System Events" to tell process "Flameshot"
tell menu bar item 1 of menu bar 2
click menu item "Take Screenshot" of menu 1
end tell
end tell |
Need some help to set "Ctrl+`" as a shortcut to capture screen shot. I tried keystroke using "Ctrl+`" surely doing something wrong. |
Is your feature request related to a problem?
It would be nice to be able to use a global hotkey with macOS, just like the Linux instructions for Ubuntu / Gnome / KDE.
I would take over writing a short section on this in the docs, but cannot figure out a nice (fast) way to achieve this :( If the Flameshot screenshot doesn't launch fast, then it's not as much value as it could be.
I have tried the following:
/Applications/flameshot.app/Contents/MacOS/flameshot gui
- this appears to do nothingCredit for the Apple Script: https://stackoverflow.com/a/16497564/1268612
Anyone have any ideas how to do this?
The text was updated successfully, but these errors were encountered: