by cfiggers · 3y ago · 0 comments
I have HUNDREDS of little AHK hotkeys. I use some of them dozens of times a day. I've been wanting some way to directly target Excel like this for literal years.
Thank you!!!
I’ll bet I find more weird corner cases with this hot key. My first attempt didn’t handle the autocomplete, and that was a big letdown until I found the workaround. I’m sure I’ll run into something else as well.
; Excel horizontal scroll with Shift + Mousewheel
#IfWinActive, ahk_exe EXCEL.EXE
+WheelUp::
SetScrollLockState, On
SendInput {Left}
SetScrollLockState, Off
Return
+WheelDown::
SetScrollLockState, On
SendInput {Right}
SetScrollLockState, Off
Return
#ifI just have my formula bar set at 3 lines and F2 edits in the formula box always. I find that works well for me.
What frustrations do you have with the default setup?
To insert a newline you have to press [Alt]+[Enter]. To indent you can’t use [Tab], so you have to manually space it out.
My script swaps the [Enter] key behavior so regular pressing inserts the newline and Alt+Enter commits the formula. It also converts a Tab press to 4 spaces (rather than focusing away from the bar)
https://news.ycombinator.com/item?id=34178234
I downloaded it but haven’t had a chance to tinker.