Click here to Skip to main content
14,867,685 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralThought of the Day Pin
OriginalGriff11-Jan-21 4:34
mveOriginalGriff11-Jan-21 4:34 
JokeRe: Thought of the Day Pin
Daniel Pfeffer11-Jan-21 5:01
professionalDaniel Pfeffer11-Jan-21 5:01 
GeneralRe: Thought of the Day Pin
jeron111-Jan-21 5:02
Memberjeron111-Jan-21 5:02 
GeneralRe: Thought of the Day Pin
W Balboos, GHB11-Jan-21 5:10
mveW Balboos, GHB11-Jan-21 5:10 
GeneralRe: Thought of the Day Pin
  Forogar  11-Jan-21 5:22
professional  Forogar  11-Jan-21 5:22 
GeneralRe: Thought of the Day Pin
W Balboos, GHB11-Jan-21 9:50
mveW Balboos, GHB11-Jan-21 9:50 
GeneralRe: Thought of the Day Pin
DRHuff11-Jan-21 8:48
MemberDRHuff11-Jan-21 8:48 
GeneralGot multiple monitors? Is it a PITA scrolling across them with the mouse? PinPopular
OriginalGriff11-Jan-21 4:22
mveOriginalGriff11-Jan-21 4:22 
This new monitor is bigger than the old, and it takes quite a few "swipes" with the mouse to get from teh left screen to the right screen.

So I found AutoHotKey and wrote a little script:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#NumpadSub::
 CoordMode, Mouse, Screen ; mouse coordinates relative to the screen
  MouseGetPos, MX, MY
  ATLX = -1080
  ATLY = -232
  ABRX = -1
  ABRY = 1687
  AH = 1920
  AW = 1080

  BTLX = 0
  BTLY = 0
  BBRX = 1919
  BBRY = 1079
  BH = 1080
  BW = 1920

  CTLX = 1920
  CTLY = 38
  CBRX = 3199
  CBRY = 1061
  CH = 1024
  CW = 1280
   
  if (MX <= ABRX) {
    ; Screen A (left, portrait)
    MouseMove,  BTLX + (BW / 2), BTLY + (BH / 2), 0
  } else if (MX < BBRX) {
    ; Screen B (Middle, landscape)
    MouseMove,  CTLX + (CW / 2), CTLY + (CH / 2), 0
  } else {
    ; Screen C (Right, square)
    MouseMove,  ATLX + (AW / 2), ATLY + (AH / 2), 0
  }
return
What it does is simple: Press Win+NumpadMinus and it switches the mouse between the three screens, sticking it in the centre of the "next one". So if it's on the left, it puts it on the middle,
If on the middle it goes on the right, and so on.

Replace the ATLX, ATLY, etc. with your values (My "Windows default screen" is the middle one, so the left has negative coordinates) and AH, AW, etc. appropriately and it's work for you too.

Another free service from OriginalGriff. You're welcome!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
  Forogar  11-Jan-21 4:47
professional  Forogar  11-Jan-21 4:47 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
OriginalGriff11-Jan-21 4:54
mveOriginalGriff11-Jan-21 4:54 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
Chris Losinger11-Jan-21 5:33
professionalChris Losinger11-Jan-21 5:33 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
OriginalGriff11-Jan-21 6:14
mveOriginalGriff11-Jan-21 6:14 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
RedDk11-Jan-21 8:37
MemberRedDk11-Jan-21 8:37 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
Rage11-Jan-21 21:04
professionalRage11-Jan-21 21:04 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
rnbergren11-Jan-21 5:29
Memberrnbergren11-Jan-21 5:29 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
5teveH11-Jan-21 5:37
Member5teveH11-Jan-21 5:37 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
OriginalGriff11-Jan-21 6:05
mveOriginalGriff11-Jan-21 6:05 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
W Balboos, GHB12-Jan-21 3:21
mveW Balboos, GHB12-Jan-21 3:21 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
Nelek12-Jan-21 4:54
protectorNelek12-Jan-21 4:54 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
StarNamer_21-Jan-21 8:18
professionalStarNamer_21-Jan-21 8:18 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
MarkTJohnson11-Jan-21 6:57
professionalMarkTJohnson11-Jan-21 6:57 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
RickZeeland11-Jan-21 20:24
mveRickZeeland11-Jan-21 20:24 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
J_Hujanen11-Jan-21 22:35
MemberJ_Hujanen11-Jan-21 22:35 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
den2k8811-Jan-21 23:40
professionalden2k8811-Jan-21 23:40 
GeneralRe: Got multiple monitors? Is it a PITA scrolling across them with the mouse? Pin
OriginalGriff12-Jan-21 0:17
mveOriginalGriff12-Jan-21 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.