topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 3, 2024, 11:14 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Window offscreen at startup  (Read 6003 times)

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 97
    • View Profile
    • Read more about this member.
    • Donate to Member
Window offscreen at startup
« on: September 12, 2019, 03:54 PM »
My Evernote window shows up offscreen every stinkin' time i reboot.  >:(
I've moved and resized the window, shut down the application and then started it up again and it retains previous location/size, as one would expect.
BUT - when I reboot the desktop, i see the icon in the task bar and the window is once again, offscreen.

I used AutoHotkey's Window Spy to see that the window's X-Y coordinates are set to -32000 & -32000.  Searching the registry for "-32000" results in these results:

Computer\HKEY_CLASSES_ROOT\AppUserModelId\Microsoft.Windows.ParentalControls (also in HKLM)
 - DisplayName = @%SystemRoot%\system32\WpcRefreshTask.dll,-32000

Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AsyncMac (also in HKLM)
 - Description (also DisplayName) = @%systemroot%\system32\mprmsg.dll,-32000

Details:
OS = Windows 10 1703 build 15063.1746
3 monitors, left-most is primary, all are set to 1920x1080.

Anyone have any trouble-shooting ideas for getting my window to appear on one of my monitors after rebooting?

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,188
    • View Profile
    • Donate to Member
Re: Window offscreen at startup
« Reply #1 on: September 12, 2019, 05:47 PM »
You might try after you get it positioned on the screen to close it (completely, including the taskbar notification icon) and then re-open it.  It's likely that they're saving the position on exit, and if you reboot without closing, it might not go through that procedure.

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
  • what am I doing in this handbasket?
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Window offscreen at startup
« Reply #2 on: September 12, 2019, 07:09 PM »
What Wraith said, but when you do that use regmon or something like it to track any registry writes that it is doing. Personally I would think it's something in HKCU\Software\Evernote or wherever.

Heh - actually I just ran across this page that purports to list all of Evernote's registry settings, maybe there is a clue there.

Also, this page for a utility that "is a small app that allows you to change some of Evernote's more useful, but hidden Regsitry settings".
vi vi vi - editor of the beast

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 97
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Window offscreen at startup
« Reply #3 on: September 13, 2019, 09:52 AM »
You might try after you get it positioned on the screen to close it (completely, including the taskbar notification icon) and then re-open it.  It's likely that they're saving the position on exit, and if you reboot without closing, it might not go through that procedure.

Yeah, that works until the next reboot. I've exited ALL apps and rebooted, this one is the stubborn app that refuses to obey the "rules".

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 97
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Window offscreen at startup
« Reply #4 on: September 13, 2019, 09:55 AM »
What Wraith said, but when you do that use regmon or something like it to track any registry writes that it is doing. Personally I would think it's something in HKCU\Software\Evernote or wherever.

Heh - actually I just ran across this page that purports to list all of Evernote's registry settings, maybe there is a clue there.

Also, this page for a utility that "is a small app that allows you to change some of Evernote's more useful, but hidden Regsitry settings".

REGMON. That's a good idea - thanks for the tip, i'll check that out.
I perused the links and, while they've got some good information, they both are a bit dated unfortunately. Evernote's changed their UI quite a bit since v1.0.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Window offscreen at startup
« Reply #5 on: September 30, 2019, 05:12 AM »
If this "feature" is still bothering you, try this Autohotkey script.

This script checks for Evernote window every 3 seconds and if detected, moves the window to the center of your primary screen.

Code: Autohotkey [Select]
  1. SetWorkingDir, %A_ScriptDir%
  2.  
  3. SetTimer, EvernoteTimer, 3000 ; check every 3 seconds
  4. Return
  5.  
  6. EvernoteTimer:
  7. ; use AHK's windows spy to get exact class name, the same for exe name
  8. If WinExist("ahk_class ENMainFrame") or WinExist("ahk_exe Evernote.exe")
  9.   {
  10.     WinActivate, A
  11.     ; move to the center
  12.     WinGetPos,,, Width, Height, A
  13.     WinMove, A,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
  14.     WinWaitClose, A
  15.   }
  16. Return
  17.  
  18. #q::ExitApp    ; win + q = exit
« Last Edit: September 30, 2019, 07:46 PM by lanux128, Reason: typo »

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 97
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Window offscreen at startup
« Reply #6 on: September 30, 2019, 01:04 PM »
If this "feature" is still bothering you, try this Autohotkey script.

Thanks, i think i'll store this for future reference.

I was able to finally get Evernote to open on screen by using Skrommel's WinWarden2 program.
 ;D Too funny. While getting the link for this script, I see YOU were the driving force behind WinWarden!  Small world.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Window offscreen at startup
« Reply #7 on: September 30, 2019, 07:45 PM »
Too funny. While getting the link for this script, I see YOU were the driving force behind WinWarden!  Small world.

Yup, very kind of Skrommel to come up with WinWarden. Helped me a lot with these windows that don't retain their last position. ;D