Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created January 5, 2015 19:12
Show Gist options
  • Save jacobsalmela/b7676df7a9e96cb16500 to your computer and use it in GitHub Desktop.
Save jacobsalmela/b7676df7a9e96cb16500 to your computer and use it in GitHub Desktop.
Make full screen
# Keystrokes
import win32api
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
# Alt+Space+X or F11 makes it full screen
win32api.Sleep(2500)
# One or the other below should work depending on what browser is being used
#shell.SendKeys("% X")
shell.SendKeys("{F11}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment