

And it always scrolls toward left, it never scrolls toward up, right, and down. It randomly happens every 5-10 seconds, so I can't work in detail with zoom-in. It includes path, brush, heal, pencil, I think all the tools while I am zooming in. While GIMP is a great tool and I am enjoying learning it, one thing is really annoying me - GIMP suddenly changes horizontal scroll frequently when I zoom in some area and do some work. Hint: You might want to make the script run automatically at Windows startup.I am a novice when it comes to GIMP, I started to learn GIMP a few days ago. > Text Document -> Make a file called "myscript.ahk"ģ) Copy-paste the script from below -> Save the fileĥ) Small H-icon should appear to your taskbar notification area Ke圜ategory:=wdKe圜ategoryMacro, Command:=""įInally, define the Word macros in your Normal template (or adjust the references to them above): Sub ScrollRight()Īdding my Autohotkey scipts on separate answer since editing the accepted answer was rejected twice Setting up Autohotkeyįor those who are new to AutoHotKey, here are the steps: 1) Download and install AutoHotKey from Ģ) Right click on your desktop (or any other folder) -> New Ke圜ategory:=wdKe圜ategoryMacro, Command:="" KeyBindings.Add Ke圜ode:=BuildKe圜ode(wdKeyM, wdKeyShift, wdKeyAlt), _ Set up Word key bindings (you may alternatively use the keyboard customization dialog to do this): ' Alt-Shift-M Right (keycode 39) (I also have mappings for the WheelLeft and WheelRight events below because my mouse sends them just fine I just need Word to do something useful with them.) #If WinActive("ahk_class OpusApp") I'm using Alt-M RightArrow and Alt-M LeftArrow. It only works on the main document view in Word (which is good enough for me).įirst, use AutoHotKey to send a custom keystroke to Word in response to the mouse action.


Here's a hacky solution for Word (only) requiring both AutoHotKey and Word macros. SendMessage, 0x114, 1, 0, %fcontrol%, A 0x114 is WM_HSCROLL and the 1 after it is SB_LINERIGHT. SendMessage, 0x114, 0, 0, %fcontrol%, A 0x114 is WM_HSCROLL and the 0 after it is SB_LINELEFT. Loop 4 <- Increase this value to scroll faster. This script seems to work pretty much everywhere except MS Word - if anyone can solve that, then let me know! It's probably something like finding out the window class for Word and coding for it specifically like was done with Excel (just with a different set of key bindings). MS Excel seems to have some strange ways of handling it's user interface (though somehow, after many years of seeing what the MS Office developers have given us, I'm not that surprised). After some looking around, eventually found a way (using AutoHotKey) that works in Excel and everywhere else, without obviously breaking anything (adapted from a couple of different solutions on the AutoHotKey forums, though I didn't record sources so can't give appropriate credit sorry).
