硬着头皮看man page,发现一个FakeKeypress命令可能实现这个功能:
1.先建两个函数:(大意是如果窗口是AcroRead,则按下Up或Down)
DestroyFunc KeyPressUp
AddToFunc KeyPressUp
+ I All ( "AcroRead" ) FakeKeypress \
press Up
DestroyFunc KeyPressDown
AddToFunc KeyPressDown
+ I All ( "AcroRead" ) FakeKeypress \
press Down
2.把这两个函数bind到鼠标的滚轮
Mouse 4 W A Function KeypressUp
Mouse 5 W A Function KeypressDown
3.这样bang定有一个问题,当在其它窗口用滚轮时,AcroRead也跟着滚动,如果把函数改成:
DestroyFunc KeyPressUp
AddToFunc KeyPressUp
+ I Current ( "AcroRead" ) FakeKeypress \
press Up
问题更大,只能在AcroRead中使用滚轮,其它窗口一律无效。
各位大侠有什么办法解决这个问题吗?