how do I change the browser from one screen to another
-
i need help for this command, i have one monitor and one tv, i need move the microsoft edge for the tv or tv for monitor with google home
-
@Dreissy-Kids, you could try AutoIT for that.
Your command could be this:
"C:\Program Files (x86)\AutoIt3\AutoIt3_x64.exe" c:\scripts\moveWindow.au3And moveWindow.au3 AutoIT script could be this:
Send("!{SPACE}r!{SPACE}m{RIGHT 90}{ENTER}!{SPACE}x")
It basically simulates a sequence of key presses to move the active Window. It holds down the ALT key and presses space, then presses the r key, etc...
AutoIT also lets you compile the script to a .exe file.
-
NirCmd has a ton of little features, one of which is moving windows.
https://www.nirsoft.net/utils/nircmd2.html#using
Scroll down to the win [action] section -
Nice! Thanks @Xander. That's a better solution. This batch file moved calculator from my primary screen my second screen on the right, then maximized it. My primary screen is 1920x1080.
nircmd win move title "calculator" 1920 0 nircmd win max title "calculator"
Nircmd is an awesome utility.
@Dreissy-Kids , here's basically same thing for Microsoft Edge to move the window left using a negative 1920:
nircmd win move process msedge.exe -1920 0 nircmd win max process msedge.exe
-
@Russ I've been playing with it a lot lately to provide some RMM functionality to my clients without disrupting their usage. I'll show a batch file over and use Nircmd exec hide batchfile.bat so they don't see any of it.
A few threads here could make use of the sendkeypress commands.The one thing I'm still working on is that I'm using a USB adapter to get a third monitor and it blinks out for a second every day or so which pushes the contents of my third monitor into my second. Since I've got two Chrome windows open (on Mon 2 and 3), I haven't figured out how to push the second Chrome window into the third monitor. If I can figure that out, I could probably tie it into a scheduled task based on the USB change in the events.
-
@Xander, I did some research, but didn't find much. I did find this tool from Nirsoft:
http://www.nirsoft.net/utils/multi_monitor_tool.html
Example - move all windows from monitor 1 to 2:
multimonitortool.exe /MoveWindow 2 All 1
-
@Russ NICE FIND! After only a minute of playing with it, it's near perfect. Only hitch is that the window that keeps getting thrown around has 5 pinned tabs and the tool only seems to recognize the 'Title' of the window with the active tab. That's not the end though because I could have the task scheduler run a batch file with a set of five commands so that one of them will work. It's the only window I keep on that monitor.
Now I just need to figure out the event code for when the USB adapter momentarily craps out so I'll just wait for it to happen again.
Bwahaha!(Only downside might be if I throw another tab into it for temporary usage. The tool probably won't be able to spot that).
-
For those following along at home, here's what I had to do:
https://www.techrepublic.com/article/how-to-track-down-usb-flash-drive-usage-in-windows-10s-event-viewer/
especially Figure B.I couldn't figure out why no events were registering in all the ordinary places and it turns out they get logged in a more obscure on and only if it's been enabled.
Once that was done, I un/replugged my USB monitor to create an event and then took an event entry and "assigned task" to it.Oh and, every time the USB glitches out, it gets recognized by Nirsoft's utility as a new display so I had to put a loop in the batch file for Display3 to Display20 to move my common windows back to their preferred monitors. Bit of a pain, only because I hadn't had to do that in a batch for years and forgot how.