This AHK script runs the rescan fix, then hits a key setup in ID to
switch to the second monitor = (ctrl-shift-F11)
About 2s (2000ms) is required on my system after the rescan.
Runwait "C:\Program Files (x86)\Input Director\InputDirector" -hide
Sleep, 2000
Send {ctrl down}{shift down}{f11}{ctrl up}{shift up}