|
#1
|
|||
|
|||
Autohotkey for second monitor
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. |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Re: Autohotkey for second monitor
thanks wrecker. yes, both monitors are 16x12. will give it a try and get back to ya.
|
#4
|
|||
|
|||
Re: Autohotkey for second monitor
you the man wrecker. it worked. what about the action commands for the second monitor? heres the original:
; Fold F1:: ;MouseClick, left, 240, 474 ;Sleep, 100 MouseClick, left, 240, 474 Sleep, 100 return ; Check/Call F2:: ;MouseClick, left, 385, 474 ;Sleep, 100 MouseClick, left, 385, 474 Sleep, 100 return ; Bet/Raise F3:: ;MouseClick, left, 550, 474 ;Sleep, 100 MouseClick, left, 550, 474 Sleep, 100 return ; AutoPost F4:: MouseClick, left, 14, 533 Sleep, 100 return ; SitOut F5:: MouseClick, left, 14, 568 Sleep, 100 return |
#5
|
|||
|
|||
Re: Autohotkey for second monitor
[ QUOTE ]
you the man wrecker. it worked. what about the action commands for the second monitor? heres the original: ; Fold F1:: ;MouseClick, left, 240, 474 ;Sleep, 100 MouseClick, left, 240, 474 Sleep, 100 return ; Check/Call F2:: ;MouseClick, left, 385, 474 ;Sleep, 100 MouseClick, left, 385, 474 Sleep, 100 return ; Bet/Raise F3:: ;MouseClick, left, 550, 474 ;Sleep, 100 MouseClick, left, 550, 474 Sleep, 100 return ; AutoPost F4:: MouseClick, left, 14, 533 Sleep, 100 return ; SitOut F5:: MouseClick, left, 14, 568 Sleep, 100 return [/ QUOTE ] I use the keypad #'s 4 5 6(No ALT Key) for Fold Check/Call Bet/Raise respectively for both monitors. Also numpad "+" for AutoPost and numpad "-" for SitOut. Just replace the current Define Keys section with this. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Define keys for fold, check/call, and bet/raise ; ; The key for each action is defined by the string before the double colon. ; You can change the key like this: ; Regular keys: a, b, c, 1, 2, 3, etc. ; Function keys: F1, F2, etc. ; Numeric keypad: Numpad1, Numpad2, NumpadPlus, etc ; Arrows keys: Left, Right, Up, Down ; Control key prefix: add caret in front, like this: ^f, ^c, ^r ; Alt key prefix: add exclamantion point in front: !f, !c, !r ; Windows key prefix: add hash mark in front: #f, #c, #r ; Fold Numpad4:: ;MouseClick, left, 240, 474 ;Sleep, 100 MouseClick, left, 240, 474 Sleep, 100 return ; Check/Call Numpad5:: ;MouseClick, left, 385, 474 ;Sleep, 100 MouseClick, left, 385, 474 Sleep, 100 return ; Bet/Raise Numpad6:: ;MouseClick, left, 550, 474 ;Sleep, 100 MouseClick, left, 550, 474 Sleep, 100 return ; AutoPost NumpadAdd:: MouseClick, left, 14, 533 Sleep, 100 return ; SitOut NumpadSub:: MouseClick, left, 14, 568 Sleep, 100 return |
#6
|
|||
|
|||
Re: Autohotkey for second monitor
now im alittle confused. i got the mouse to go to the second monitor. i inserted the second monitor syntax to the action buttons and get an error message saying double syntax something or other. how do you use the same action keystrokes for the different monitors? im using the function keys for the actions as i have already miskeyed and called a $10 raise with TT [img]/images/graemlins/confused.gif[/img]
|
|
|