Sync vertical scroll between two windows

7,543

Solution 1

I suggest you use AutohotKey for this. You then can try to

  1. Listen for MouseWheel Event in either Application (Reader, Safari)
  2. Switch focus to the other application, Send Mousewheel Event
  3. Switch back

I Hope this is fast enough to appear "seemless"

[EDIT]

Here is the script I have made following this answer :

WheelDown::
SetTitleMatchMode, 2
IfWinActive, SafariTitle ; Replace 'SafariTitle' by the title of the safari windows
{
        CoordMode, Mouse, Screen
        WinGet, active_id, ID, A
        IfWinExist, Adobe
        {
                Send {WheelDown}
                WinActivate ; Automatically uses the window found above.
                Send {WheelDown}
                Send {WheelDown}
                WinActivate, ahk_id %active_id%
        }
}
Else
{
        Send {WheelDown}
}
return

WheelUp::
SetTitleMatchMode, 2
IfWinActive, SafariTitle ; Replace 'SafariTitle' by the title of the safari windows
{
        CoordMode, Mouse, Screen
        WinGet, active_id, ID, A
        IfWinExist, Adobe
        {
                Send {WheelUp}
                WinActivate ; Automatically uses the window found above.
                Send {WheelUp}
                Send {WheelUp}
                WinActivate, ahk_id %active_id%
        }
        }
        Else
        {
                Send {WheelUp}
        }
return

Solution 2

Notepad++ has the ability to do sync'd vertical scrolling for plain text docs and source code - as do many other 'dev'-type document apps - but as slhck says it would help to know what you are currently using and what type of docs you are trying to view.


Edit: based on your useful feedback - here's a possible solution:

It's pretty straightforward to convert any doc to a PDF so if you get both docs in that format you can use something like DiffPDF to scroll through them both:

http://www.qtrac.eu/diffpdf.html (program description and downloads)

http://soft.rubypdf.com/software/diffpdf (Windows version)

DiffPDF can compare two PDF files. It offers two comparison modes: Text and Appearance.

By default the comparison is of the text on each pair of pages, but comparing the appearance of pages is also supported.

Share:
7,543
kowalski
Author by

kowalski

Developper

Updated on September 18, 2022

Comments

  • kowalski
    kowalski over 1 year

    I need to visually compare two documents of different formats, hence I would like to be able to vertically scroll in two different applications at the same time. I'd prefer to use the mouse wheel to do so. I know Notepad++ has a similar functionality.

    Currently I'm viewing the documents in Adobe Reader and Safari.

    Do you know a software that would help, under Windows?

  • kowalski
    kowalski over 12 years
    Thank you, i should have been more precise. See my comment on the original question. I was thinking of Notepad++ when I asked this, and would like to have the same functionality between two different applications.
  • kowalski
    kowalski over 12 years
    Perfect ! I edit your answer to show the script I have written for this task.
  • kowalski
    kowalski over 12 years
    Thanks for the references, I would +1 if I could ! In this case though, I cannot rely on a diff tool, the control can only be human made. I note your references for another task.
  • Cilvic
    Cilvic over 12 years
    Is the performance ok?
  • kowalski
    kowalski over 12 years
    Yes, not real time but good for the task. Thanks
  • Ooker
    Ooker over 6 years