This is very interesting, I've done a few tests and found out some things, possibly the more specific underlying problem.
Code: Select all
q:: ;move/resize IE window to fill the left third of the screen
w:: ;move/resize IE window to fill the middle third of the screen
WinGet, hWnd, ID, A
WinGetClass, vWinClass, % "ahk_id " hWnd
if vWinClass not in IEFrame
WinGetPos,,,, vPosH, ahk_class Shell_TrayWnd
if InStr(A_ThisHotkey, "q")
WinMove, % "ahk_id " hWnd,, 0, 0, % A_ScreenWidth/3, % A_ScreenHeight-vPosH
if InStr(A_ThisHotkey, "w")
WinMove, A,, % A_ScreenWidth/3, 0, % A_ScreenWidth/3, % A_ScreenHeight-vPosH
Try using the middle mouse button to scroll, then press q or w to move the window, and try scrolling again (by physically using the middle mouse button).
Also move the window to the left third via AHK, then manually move it a little bit (e.g. a few pixels), then move it to the middle third via AHK, and try to scroll.
Also try PgDn/PgUp as well as WheelUp/WheelDown.
Basically, what I see is that when you move the window via AHK to the left third of the screen, scrolling via WheelUp/WheelDown is affected (it can stop working), but when you move it back it to the middle via AHK, it works again. PgUp/PgDn always seems to work.
Also, if you get scrolling (via physically using the middle mouse button) working, when the window is in the left third, (by manually moving the window a tiny bit,) and then move the window via AHK to the middle of the screen, and try to scroll (via physically using the middle mouse button), you get the same problem, but this time the problem (of scrolling not working) occurs when the window is in the *middle* of the screen. (If you then move the window back to the left third via AHK, manual scrolling works again, on the *left* third).
Chrome and Firefox have the same problem as Internet Explorer. Notepad does not have the problem.
If you move the window manually, it appears that scrolling still works. So the problem seems to be if you move the window via AutoHotkey (via WinMove).