How can i switch (respectively save and restore) between display settings.
All ways i found works only with two displays. But i have four connected.
Is there a way to chang it with comandline tools e.g. PowerShell.
For example,
in one configuration I want to stretch the desktop over three screens, the fourth duplicates the first screen or is disabled.
Or the desktop is only cloned on two and the others are disabled.
NirSoft MultiMonitorTool has command line support for a variety of monitor related functions...
eg. Disable Monitor 1 and Enable Monitor 3:
MultiMonitorTool.exe /disable 1
MultiMonitorTool.exe /enable 3
You can also save and load specific configurations:
MultiMonitorTool.exe /SaveConfig "c:\temp\monitors1.cfg"
MultiMonitorTool.exe /LoadConfig "c:\temp\monitors1.cfg"
Related
as the title indicates I need help with the on-screen keyboard properties.
I have to configure a script, which I will deploy through SCCM in 30 terminals, and I need to make the keyboard go on screen as soon as I start the pc.
I have already solved this by adding this key to the registry
HKLM\Software\Microsoft\Windows\CurrentVersion\Run Clavier_Visuel = "C:\Windows\System32\osk.exe"
The problem is that I can't find a place to set the parameters of the keyboard: Remove the X to close it, display the PAD number, set the language to French and make it fit the screen.
This can be done manually, but that's not the goal.
Another point is that different users will be logged into the computers, so I can't set the condition to single user, but it should be general for all.
If you can help me it would be great, since I have not found anything useful so far, a greeting!
The Windows 10 start menu will show recently added programs after you run an installer.
In my case, the installer installs more than one program to Start Menu. For some reason it is picking one of them and showing it as "recently added", but I'd like to specify that a different one shows up there.
How can this been set / controlled?
I have tried to change the order which the installer adds entries to the start menu, but that didn't appear to have any effect.
I'm not sure how Windows internally tracks this, but at least if you are using Inno Setup it is possible to disable tracking the installed program as recently added by using a flag:
excludefromshowinnewinstall
Prevents the Start menu entry for the new shortcut from receiving a
highlight on Windows 7 and additionally prevents the new shortcut from
being automatically pinned the Start screen on Windows 8 (or later).
Ignored on earlier Windows versions.
Ref.: https://jrsoftware.org/ishelp/index.php?topic=iconssection
So it should be possible to apply this exclusionary flag to all but the program which is intended to be shown in the list.
I want to write a command in a batch file which changes the resolution of a computer. I am using Windows XP.
I need to set the resolution as 1024*768.
I needed more options, so I developed ChangeScreenResolution.exe to change the screen resolution in a batch file.
Examples:
Change screen resolution of all monitors to 800x600px
ChangeScreenResolution.exe /w=800 /h=600
Change screen resolution of all monitors to 800x600px with refresh rate of 60Hz and 32bit color depth
ChangeScreenResolution.exe /w=800 /h=600 /f=60 /b=32
Set resolution of display with index 1 to 800x600px
ChangeScreenResolution.exe /w=800 /h=600 /d=1
To list all available displays (and their indexes):
ChangeScreenResolution.exe /l
You can use either of the following two tools.
MultiRes
QRes
Using MiltiRes:
multires.exe /800,600,32,75
Using QRes:
QRes.exe /x:800 /y:600
I haven't tried MultiRes, but note that Qres will only run on 32-bit machines.
DisplayChanger II from 12noon.com also works beautifully and is free for personal use.
DisplayChanger is designed to be called via command line or batch script, and has both 32-bit and 64-bit versions. It can also generate editable config files specifically for multi-monitor (or projector) setups. You manually set the displays up how you want, "create" a config for it, then call that configuration up at any time.
I have written a script which uses the program provided by Alexander Taubenkorb in his answer to fix monitor black screen issue due to "screen resolution out of monitor range" caused by StarCraft not reverting my desktop resolution back to its original settings on exit.
Here's the .bat content - feel free to use it.
taskkill /f /IM explorer.exe
%~dp0%\Starcraft.exe
start explorer.exe
REM *change below /w=XXX & /h=XXX values that reflect your monitor's needs*
ChangeScreenResolution.exe /w=800 /h=600
REM *this is the minimum resolution of monitor - brings desktop back to life*
ChangeScreenResolution.exe /w=1024 /h=768
REM *this is the recommended & preferred resolution I like to run my monitor at*
exit
you can also use wmic desktopmonitor
like here
I have a lot of different servers that I connect to. Each time I connect to a new machine I go through the several mouse clicks to setup basic options for cmd.exe, such as QuickEdit mode and expanding the screen display and buffers. This article describes what I do pretty well (with my own settings, of course): http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/commandpromptoptions.mspx?mfr=true
This is annoying. I would like to run a quick configureCmd.cmd script upon login that will update all of these settings automatically such that when I open the cmd.exe it is already configured without any additional work on my part. Running the script on login is easy, but I do not know where these settings are stored. I figured the Registry, but my experiments do not show any difference in HKLM | HKCU \Software\Microsoft\Command Processor.
Console Windows are not part of the command processor, so it follows that their settings are separate. Take a look at
HKEY_CURRENT_USER\Console.
Just curious about the different ways vending machine companies / ticket companies get their application to run at startup full screen on a windows host machine.
Now first thing I am thinking is obvioulsy a link to the app in startup with a switch for -fullscreen.
There would be local / group policy as another option also.
Sidetracking a bit how do apps such as Skype work when they offer the "start skype when computer starts" option? registry?
Any thoughts / ideas / experience appreciated. Cheers
There are many ways to get an app to start automatically at Windows startup. The two most popular are
putting it into the Autostart folder
writing a special registry value (there is a kind of autostart section there)
I would guess most apps use one of these mechanisms.
As to "fullscreen mode", most kiosk-type systems / vending machines use a custom software as their GUI, so I guess that is developed to always run full-screen (there is no point in running it otherwise), so there no need to configure it for full-screen mode, it will always run like that.
With windows you do not have to have explorer.exe as your "shell".
The GPO settings "User Configuration > Administrative Templates > System > Custom user interface" can be set to be what ever you want - it could be a program, or a simple batch file.
So for example, you could have a batch file that - mapped a network drive, run a program, if that program terminates, the script then restarts the computer.
You would then use autologon for that computer to logon again and start the process all over again.
Most of the software add them to startup by creating a new REG_SZ value (with application path) at one (or more) of the following locations:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
NOTE: It may also be loaded from the [Load] or [Run] sections of your
WIN.INI file, found in the Windows directory, but you should not depend on it.
To start it in MAXIMIZED mode, you can design your application to resize itself to maximize mode on startup.