1

I'm setting up a HTPC in Windows 10 and I want all of my UWP apps (Netflix, Hulu, Store, etc) to run full screen (not maximized... I want actual full screen). I know I can use tablet mode to accomplish this, but whenever anything is closed the screen defaults back to the 'Start' screen rather than my media program.

I also know that I can press Win+Shift+Enter in desktop mode to force fullscreen, but I'd prefer to do this automatically.

I've thought of

  1. Using autohotkey to do the button press for me in desktop mode
  2. Editing the registry to force full screen (seems kind of drastic)

But have no idea how to go about either of those and am hoping for some help or another way

Any and all suggestions would be appreciated

1
  • If you find the shortcut that you use to launch each application, right-click and select Properties, then in the Shortcut tab select Maximised in the Run: drop-down.
    – AFH
    Commented Sep 15, 2018 at 13:46

1 Answer 1

1

AutoHotkey can do this. I would recommend downloading it and running the default script, which will put a little [H] icon in the System Tray. From there you can edit the default and add your own hotkeys, shortcuts, or in this case, some kind of auto-full-screen script.

Sending Win+Shift+Enter can be done via Send or

SendInput, #+{Enter}  ; Send Win+Shift+Enter

Detecting the right window(s) to perform this on is relatively straightforward using the included Window Spy application (it will be available as a right-click option on the tray menu), and that will help you identify the title/class/exe components of the WinTitle parameter to use when checking for the existence of a window, or whether it is active.

Performing this send action automatically however means you have will also need to answer a secondary set of questions. Does the shortcut key need to execute:

A) Continuously when the window is active? --> No

B) Once for each unique window handle that gets created? (If so we have to keep a log of which windows the shortcut key has been sent to)

C) Once each time the window is clicked on

This looks like B may be the answer, but it depends. If you have two monitors and clicking off the application causes full screen to disable, then C might be the answer if it needs to re-enable full screen every time the window becomes newly active.

Item C is the easiest to code for, with a loop to check for the active window, determine if it changed since the last loop execution, and send keystrokes if it did. Item B requires additional code to save the window handle once the keystrokes send, and then exclude from sending to that window on subsequent loop iterations if the same window is detected again.

See this post for code you can adapt if desired, the A/B/C descriptions above correspond with their usage in this script:

http://www.autohotkey.com/board/topic/84397-winwait-framework-do-something-to-a-window-when-it-appears/

1
  • Gracias! Been playing with AutoHotkey. I can identify the window type and send the command, but like you said I have to code for scenarios B and/or C. I think that post should be helpful.
    – gac9415
    Commented Sep 16, 2018 at 2:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .