I've some trouble with the position of the keypass main window on Windows 7. I'm using a laptop with a docking station in a dual monitor configuration. I start KeyPass, I type the password and than I shift the main window to the secondary screen. That is no problem. Sometimes I'm using the laptop without the docking station. If I start KeyPass, I can type the password, but the main window is shown outside the screen. It isn't possible to do anything. It would be nice, if KeyPass checks, if the location of the main window is visible/possible with the current screen configuration.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Me too - I have a laptop with docking station & dual monitor (laptop is xp).
When on laptop only its possible that when launching keepass its application window not on laptop screen but on a 2nd monitor which is not currently connected.
As a user I can right click on the keepass icon found in the running task bar and select "move" with that one can then "arrow" the keepass application back into the visible field of the laptop.
So it problem isn't a show stopper as much as annoyance when it occurs.
Its a minor issue that may (or may not) have a easy fix.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Pail459
Thank you for your comment - My testing shows you are correct in keepass does contain code to check and support multiple monitors.
I have performed several tests and have identified conditions where the check works as expected and where it fails to work.
To reproduce the issue
* a laptop docked with a 2nd monitor
* you will also need to have moved both the keepass "open" dialog box so it appears on that 2nd monitor
* you will also need to have moved both the keepass application window onto that 2nd monitor.
With the above in place
setup the respective test conditons then undock the PC and then hit the hot key to set keepass focus.
test 1) .kdbx is both UN-Locked AND minimized onto the systray.
go ahead and undock the PC then hit the hot key to set keepass focus.
The results are keepass CORRECTLY has a portion of the keepass application visible.
This means a user can use the mouse and to reposition the keepass application onto a visible monitor of the laptop.
test 2) .kdbx is locked.
It does NOT matter if the .kdbx application is minimzed to systray and locked
or keepass is an open application window and but is in a locked state.
In both locked test conditions when you are undocked and hit the hot key to set keepass focus
the OPEN dialog box window is ALWAYS off screen and one can NOT use the mouse to drag it onto the visible monitor of the laptop. To open/use the .kdbx one will need to use the keyboard move method described in post #2 of this thread.
test 3) .kdbx file is UNlocked and is an open window on the 2nd montitor (versus test#1 where it was minimized on systray).
When the PC is undocked and you use the hot key to set keepass focus
then NO portion of the keepass application window is visible hence one can NOT use the mouse to drag it onto the visible monitor of the laptop. To open/use the .kdbx one will need to use the keyboard move method described in post #2 of this thread.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still seeing this issue (v1.23). I am using this version because I mirror the database on an Android device.
Running Win7 64 Pro.
I'll open KeyPass, slide the main window to right-hand screen (external monitor on laptop), then put computer to sleep. When I start up machine without second monitor, the password entry screen comes up against the right-hand edge of the screen, but the main window if off-screen. I have to open <user>\AppData\Roaming\KeyPass\KeyPass.ini and menaully edit the KeeWindowPX value to something small. Then open Taskmanager to kill KeyPass and restart it.
Since KeyPass is staying alive even when the main window is closed, it should be checking the screen size before bringing up the main window. In case the computer configuration has changed.
Cheers!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is an ongoing issue for me too.
I use v2.28 in Win7-64bit notebook PC.
Keepass is running on a dual-monitor environment. When I take the notebook from the docking station, KeePass goes out of sight to nonexistent monitor space. I have to close KeePass by right-clicking the taskbar icon.
Only when I re-launch KeePass does it recognize the new screen configuration.
It's the only installed application I have that doesn't recognize the screen configuration has changed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still seeing thie problem. Win7 Pro64. KeePass 2.34. Laptop. Usually docked. Not today. The Windows key + up arrow and deal with the window maxmized workaround is annoying but it's better than not being able to get in at all.
I assume that KeePass is saving some information about the monitor in the registry? Is there a regedit that we could do?
Last edit: Bill Davidson 2016-09-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use KeePass (portable) on multiple screens (work, home, laptop) all with different sizes. Is there a way in the config file to set the KeePass window to appear centered on screen regardless of screen size? I noted entries for 'X' and 'Y' in the keepass.config.xml file but they only shows values (e.g., 171 & -1 respectively). Can there be an entry/entries that allows 'Centre' for X & Y?
Cheers
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Remove the entries and KeePass should pop up in the middle. The issue is that KeePass will then write new values. You can set the values you want in an enforced config file.
cheers, Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following KeePass.config.enforced.xml file (to be copied into the KeePass application directory) causes KeePass to always open in the middle of the screen:
With <MainWindow />, all main window settings are reset (position and size of the window, splitter position, layout setting, entry list column configuration, minimize behavior, Esc keypress behavior, quick search options, etc.).
Best regards,
Dominik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry havn't come in to check your posts... been unwell. Thnx for the KeePass.config.enforced.xml file. I'll save now and let you know what happens when I change PCs at home/work.
Very much obliged for your help!
Kind Regards
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried enforced xml on work PC and KeePass always opened centre screen no matter where it was positioned when I closed it! Works great! I'm going to assume that it will do the same on my home PC & laptop!
Thnx again!
Cheers
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Dominik. Is there a way for Keepass to keep it's dimensions once it's closed and reopened. Say a user shrinks the window to a smaller size and closes KP and they wanted it to open back to that same small size once they reopen it, is that possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
KeePass stores the window size and position to the config file when it is closed. If this isn't happening you may not have write access to the config file or you have an enforced one.
See the configuration file details in Help.
cheers, Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A good trick to know is how to get a lost window back onto you screen. After Keepass or whatever program is open (outside your view), press alt-tab until it is selected as shown in the taskbar. Then press shift right-click and you'll be given the option to move it. Use the cursor keys to get it back onto the visible screen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've some trouble with the position of the keypass main window on Windows 7. I'm using a laptop with a docking station in a dual monitor configuration. I start KeyPass, I type the password and than I shift the main window to the secondary screen. That is no problem. Sometimes I'm using the laptop without the docking station. If I start KeyPass, I can type the password, but the main window is shown outside the screen. It isn't possible to do anything. It would be nice, if KeyPass checks, if the location of the main window is visible/possible with the current screen configuration.
Me too - I have a laptop with docking station & dual monitor (laptop is xp).
When on laptop only its possible that when launching keepass its application window not on laptop screen but on a 2nd monitor which is not currently connected.
As a user I can right click on the keepass icon found in the running task bar and select "move" with that one can then "arrow" the keepass application back into the visible field of the laptop.
So it problem isn't a show stopper as much as annoyance when it occurs.
Its a minor issue that may (or may not) have a easy fix.
KeePass does check, but you may have found a situation where the check fails.
http://keepass.info/news/n100709_2.12.html
cheers, Paul
Pail459
Thank you for your comment - My testing shows you are correct in keepass does contain code to check and support multiple monitors.
I have performed several tests and have identified conditions where the check works as expected and where it fails to work.
To reproduce the issue
* a laptop docked with a 2nd monitor
* you will also need to have moved both the keepass "open" dialog box so it appears on that 2nd monitor
* you will also need to have moved both the keepass application window onto that 2nd monitor.
With the above in place
setup the respective test conditons then undock the PC and then hit the hot key to set keepass focus.
test 1) .kdbx is both UN-Locked AND minimized onto the systray.
go ahead and undock the PC then hit the hot key to set keepass focus.
The results are keepass CORRECTLY has a portion of the keepass application visible.
This means a user can use the mouse and to reposition the keepass application onto a visible monitor of the laptop.
test 2) .kdbx is locked.
It does NOT matter if the .kdbx application is minimzed to systray and locked
or keepass is an open application window and but is in a locked state.
In both locked test conditions when you are undocked and hit the hot key to set keepass focus
the OPEN dialog box window is ALWAYS off screen and one can NOT use the mouse to drag it onto the visible monitor of the laptop. To open/use the .kdbx one will need to use the keyboard move method described in post #2 of this thread.
test 3) .kdbx file is UNlocked and is an open window on the 2nd montitor (versus test#1 where it was minimized on systray).
When the PC is undocked and you use the hot key to set keepass focus
then NO portion of the keepass application window is visible hence one can NOT use the mouse to drag it onto the visible monitor of the laptop. To open/use the .kdbx one will need to use the keyboard move method described in post #2 of this thread.
Thanks for the detailed investigation. I'm sure Dominik will be working to fix this.
cheers, Paul
Still seeing this issue (v1.23). I am using this version because I mirror the database on an Android device.
Running Win7 64 Pro.
I'll open KeyPass, slide the main window to right-hand screen (external monitor on laptop), then put computer to sleep. When I start up machine without second monitor, the password entry screen comes up against the right-hand edge of the screen, but the main window if off-screen. I have to open <user>\AppData\Roaming\KeyPass\KeyPass.ini and menaully edit the KeeWindowPX value to something small. Then open Taskmanager to kill KeyPass and restart it.
Since KeyPass is staying alive even when the main window is closed, it should be checking the screen size before bringing up the main window. In case the computer configuration has changed.
Cheers!
This is an ongoing issue for me too.
I use v2.28 in Win7-64bit notebook PC.
Keepass is running on a dual-monitor environment. When I take the notebook from the docking station, KeePass goes out of sight to nonexistent monitor space. I have to close KeePass by right-clicking the taskbar icon.
Only when I re-launch KeePass does it recognize the new screen configuration.
It's the only installed application I have that doesn't recognize the screen configuration has changed.
1) Go to Control Panel\Appearance and Personalization\Ease of Access Center\Make the mouse easier to use
2) Untick "Prevent windows from being automatically arranged when moved to the edge of the screen".
3) Then select (activate) Keepass windows in the taskbar
4) Press [Windows key] + [Arrow Up] to maximize Keepass windows.
Still seeing thie problem. Win7 Pro64. KeePass 2.34. Laptop. Usually docked. Not today. The Windows key + up arrow and deal with the window maxmized workaround is annoying but it's better than not being able to get in at all.
I assume that KeePass is saving some information about the monitor in the registry? Is there a regedit that we could do?
Last edit: Bill Davidson 2016-09-27
KeePass saves window details in the config file, which you can modify if KeePass is not running.
http://keepass.info/help/base/configuration.html
cheers, Paul
I use KeePass (portable) on multiple screens (work, home, laptop) all with different sizes. Is there a way in the config file to set the KeePass window to appear centered on screen regardless of screen size? I noted entries for 'X' and 'Y' in the keepass.config.xml file but they only shows values (e.g., 171 & -1 respectively). Can there be an entry/entries that allows 'Centre' for X & Y?
Cheers
Charles
Remove the entries and KeePass should pop up in the middle. The issue is that KeePass will then write new values. You can set the values you want in an enforced config file.
cheers, Paul
The following KeePass.config.enforced.xml file (to be copied into the KeePass application directory) causes KeePass to always open in the middle of the screen:
Best regards,
Dominik
Are those values effectively out of bounds, so KeePass works out new co-ordinates?
cheers, Paul
Yup.
Wouldn't this work just as well?
(Just F{my}I.)
With
<MainWindow />, all main window settings are reset (position and size of the window, splitter position, layout setting, entry list column configuration, minimize behavior, Esc keypress behavior, quick search options, etc.).Best regards,
Dominik
Hi Dominik...
Sorry havn't come in to check your posts... been unwell. Thnx for the KeePass.config.enforced.xml file. I'll save now and let you know what happens when I change PCs at home/work.
Very much obliged for your help!
Kind Regards
Charles
Hi again Dominik...
Tried enforced xml on work PC and KeePass always opened centre screen no matter where it was positioned when I closed it! Works great! I'm going to assume that it will do the same on my home PC & laptop!
Thnx again!
Cheers
Charles
Hi Dominik. Is there a way for Keepass to keep it's dimensions once it's closed and reopened. Say a user shrinks the window to a smaller size and closes KP and they wanted it to open back to that same small size once they reopen it, is that possible?
KeePass stores the window size and position to the config file when it is closed. If this isn't happening you may not have write access to the config file or you have an enforced one.
See the configuration file details in Help.
cheers, Paul
A good trick to know is how to get a lost window back onto you screen. After Keepass or whatever program is open (outside your view), press alt-tab until it is selected as shown in the taskbar. Then press shift right-click and you'll be given the option to move it. Use the cursor keys to get it back onto the visible screen.