DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Window offscreen at startup  (Read 17,683 times)

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 101
Window offscreen at startup
« on: September 12, 2019, 08: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:

Code
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
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: Window offscreen at startup
« Reply #1 on: September 12, 2019, 10: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

  • what am I doing in this handbasket?
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
    • Participated in NANY Challenge Once
Re: Window offscreen at startup
« Reply #2 on: September 13, 2019, 12:09 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".
vi vi vi - editor of the beast

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 101
Re: Window offscreen at startup
« Reply #3 on: September 13, 2019, 02:52 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.

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: 101
Re: Window offscreen at startup
« Reply #4 on: September 13, 2019, 02:55 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".

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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Window offscreen at startup
« Reply #5 on: September 30, 2019, 10: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)
#Persistent
#SingleInstance force
#NoEnv
SetWorkingDir, %A_ScriptDir%

SetTimer, EvernoteTimer, 3000 ; check every 3 seconds
Return

EvernoteTimer:
 ; use AHK's windows spy to get exact class name, the same for exe name
If WinExist("ahk_class ENMainFrame") or WinExist("ahk_exe Evernote.exe")
  {
    WinActivate, A
    ; move to the center
    WinGetPos,,, Width, Height, A
    WinMove, A,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
    WinWaitClose, A
  }
Return

#q::ExitApp    ; win + q = exit
« Last Edit: October 01, 2019, 12:46 AM by lanux128 »

AzureToad

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 101
Re: Window offscreen at startup
« Reply #6 on: September 30, 2019, 06: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Window offscreen at startup
« Reply #7 on: October 01, 2019, 12:45 AM »
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

Original address: https://www.donationcoder.com/forum/index.php?topic=48714.0