View Single Post
  #2  
Old 09-26-2005, 06:43 AM
Wrecker Wrecker is offline
Junior Member
 
Join Date: Dec 2004
Posts: 10
Default Re: Autohotkey for second monitor

[ QUOTE ]
First, I searched and got plenty of hits but nothing specific to my question. I have recently began using the script by illuniuos and find it a wonderful finger/wrist saver. Here. My problem is I have two monitors and would like the script to work on both.

Would someone be so kind as to write a patch for the script and post it so that all I need to do is c & p it into the original. Please state where it should be placed in the original.

TIA

X-posted from computer tech help.

[/ QUOTE ]

Per your request.
NOTE: I'm assuming both of your monitors are 1600 - 1200 rez.
To navigate to the second monitor use the same keypad numbers as for the first monitor but press and hold the ALT key. Enjoy.
Post this code immediately below the code which follows this section.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Define keys for absolute mouse motion to a particular window.
; For example, "Numpad7" always goes to the upper-left window.
; This does not depend on where the mouse starts.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;


; Code for monitor #2
; WindowNW
!Numpad7::
CoordMode, Mouse, Screen
MouseMove,2000,300
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowNE
!Numpad9::
CoordMode, Mouse, Screen
MouseMove,2800,300
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowSW
!Numpad1::
CoordMode, Mouse, Screen
MouseMove,2050,900
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowSE
!Numpad3::
CoordMode, Mouse, Screen
MouseMove,2850,900
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return
Reply With Quote