This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I didn't know a thing about coding until like an hour ago, but alexandrop12345 and djbullwinkle made a great post about jumping cursors between dual monitors. Here's what they had:
^Space::
CoordMode, Mouse, Screen ; mouse coordinates relative to the screen
MouseGetPos, MouseX, MouseY
if (MouseX > 0) {
MouseMove, -A_ScreenWidth, 0, 0, R
} else {
MouseMove, A_ScreenWidth, 0, 0, R
}
return
Forgive me if I'm on the wrong track, but from what I'm looking at it seems "if" tells the code to perform something if some statement is true, and another function if it's false. So if MouseX>0 (cursor is greater than the 0 pixel?), then MouseMove (to some position). Else move it to another position. So would there be a way to make it jump to a third screen? Something like:
elseelse {MouseMove, 3rd screen, 0, 0, R}
I feel super dumb asking something I barely understand lol but I'm really inspired to learn. I'm blown away I can move my cursor to a different screen now
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AutoHotkey/...