4 ms·
Maybe this might help? https://www.caffeine-app.net https://www.caffeine-app.net
by lancesells 2y ago
Maybe this might help? https://www.caffeine-app.net https://www.caffeine-app.net
- accrual 2y agoI haven't used Caffeine but used the very similar app Amphetamine and found it worked great. https://apps.apple.com/us/app/amphetamine/id937984704?mt=12 https://apps.apple.com/us/app/amphetamine/id937984704?mt=12
- skunkworker 2y agomacOS has `caffeinate` built in as well. https://ss64.com/mac/caffeinate.html https://ss64.com/mac/caffeinate.html
- fingerlocks 2y agoThis will not show you as active. Teams and Slack and check the presence of HID events. If you have Xcode/swift installed you can script this instead: #!/usr/bin/swift import Foundation import AppKit let source = CGEventSource(stateID: CGEventSourceStateID.hidSystemState) CGEvent(keyboardEventSource: source, virtualKey: 0x37, keyDown: true)?.post(tap: .cghidEventTap) CGEvent(keyboardEventSource: source, virtualKey: 0x37, keyDown: false)?.post(tap: .cghidEventTap) This simulates one press/depress of the command key (0x37). The rest of the key codes can be found in Events.h in the location of your MacOS SDK library (deep in Xcode usually). Add it to a cron job or whatever.
- loco5niner 2y agoBut that isn't the goal. Keeping the computer from going to lock screen is.
- fingerlocks 2y agoThis will also do that. It has the same effect as tapping a key repeatedly