Code: Select all
F13 & 1::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMove(sorted_monitors[1].ind,-1,-1)
return
F14 & 1::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMoveWindow(sorted_monitors[1].ind)
return
F13 & 2::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMove(sorted_monitors[2].ind,-1,-1)
return
F14 & 2::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMoveWindow(sorted_monitors[2].ind)
return
F13 & 3::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMove(sorted_monitors[3].ind,-1,-1)
return
F14 & 3::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMoveWindow(sorted_monitors[3].ind)
return
and so on, all the way to the 9 number on the keyboard.
Ideally, I'd be able to write something like this instead:
Code: Select all
F13 & # in [1,2,3,4,5,6,7,8,9]::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMove(sorted_monitors[#].ind,-1,-1)
return
F14 & # in [1,2,3,4,5,6,7,8,9]::
sorted_monitors := GetMonitorIndexesSortedByLeftmost()
PerformMoveWindow(sorted_monitors[#].ind)
return