DEV Community

Discussion on: Hacking in everyday life (fun with the Sprint API)

Collapse
 
andy profile image
Andy Zhao (he/him) • Edited

This is great! I love reading stuff like this, where someone cuts through the red tape and solves their own problem. Makes me really excited to be a developer in this day and age.

While I didn't automate anything, I did do something similar. I have a Logitech G400s mouse that I used for a long time. The back and forward buttons didn't work on macOS/OS X though, and Logitech didn't have good support or drivers for macOS. I downloaded some software called USB Overdrive, and it allowed me to remap the buttons to run an AppleScript (script). After about 30 minutes of figuring out the really poorly documented syntax, I managed to get my buttons to work!

It was funny though; I only needed the buttons to work on Chrome, and I realized that if I hit them on a different window or a different app, it would go back/forward one page, even though I wasn't focused on that window. Figured out some more AppleScript, specifically for Chrome, and then bam it worked like a charm. Then I got back to my regularly scheduled programming (no pun intended).