在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sbmpost/AutoRaise开源软件地址:https://github.com/sbmpost/AutoRaise开源编程语言:Objective-C++ 97.7%开源软件介绍:When you hover a window it will be raised to the front (with a delay of your choosing) and gets the focus. There is also an option to warp the mouse to the center of the activated window when using the cmd-tab key combination. See also https://stackoverflow.com/questions/98310/focus-follows-mouse-plus-auto-raise-on-mac-os-x Compiling AutoRaise To use AutoRaise, download the master branch from here and use the following commands to compile the binaries:
Advanced compilation options
Example advanced compilation command:
Running AutoRaise After making the project, you end up with these two files:
AutoRaise can be used directly from the command line in which case it accepts command line parameters. The other binary, AutoRaise.app, can be used without a terminal window and relies on the presence of a configuration file. Note also that AutoRaise.app runs on the background and can only be stopped via "Activity Monitor" or the AppleScript provided near the bottom of this README. Command line usage:
The delay is specified in units of 50ms and the warp parameters are factors between 0 and 1. If you only would like to use the warp feature, simply set delay to 0. When warping the mouse, the scale parameter allows you to specify the mouse cursor size. To disable this, set it to the system configured scale (normally 1.0). If no parameters have been specified, AutoRaise disables warp and defaults to -delay 1 (i.e. no delay). If the mouseStop flag is set, AutoRaise requires the mouse to stop moving for a moment before raising. Responsiveness will be lower but in return you will be able to select top menubar items even if there is another application 'in the way'. To pass the command line parameters by means of a file, create either a ~/.AutoRaise file or a ~/.config/AutoRaise/config file. The file format is as follows:
AutoRaise.app usage:
To toggle AutoRaise on/off with a keyboard shortcut, paste the AppleScript below into an automator service workflow. Then bind the created service to a keyboard shortcut via System Preferences|Keyboard|Shortcuts. This also works for AutoRaise.app in which case "/Applications/AutoRaise" should be replaced with "/Applications/AutoRaise.app" Applescript:
Troubleshooting & Verbose logging If you experience any issues, it is suggested to first check these points:
If after checking the above you still experience the problem, I encourage you to create an issue in github. It will be helpful to provide (a small part of) the verbose log, which can be enabled like so:
The output should look something like this:
Note1: Dimentium created a homebrew formula for this tool which can be found here: https://github.com/Dimentium/homebrew-autoraise Note2: Lothar Haeger created a gui on top of the command line version which can be found here: https://github.com/lhaeger/AutoRaise |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论