I'm trying to make a script that scrolls through a PDF that's being viewed in IE.
I need to make the script to make a IE window active and points the mouse in that window over the pdf. Then presses down the mousewheel, pulling the mouse down just a little bit and holding the mousewheel down for a couple of seconds so that the whole PDF scrolls so I can view it.
I figured that ControlClick might be the command to use and I've tried to make it work but I can't.
I tried this but it doesn't do much:
Code: Select all
WinActivate ahk_class IEFrame
ControlClick X1803 Y185 ahk_class IEFrame X1803 Y185 Wheeldown X10 Y10 Sleep 7000 Wheelup