Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Created February 23, 2022 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonylambiris/5a9676b967aa47252fa2a180bf9687bb to your computer and use it in GitHub Desktop.
Save tonylambiris/5a9676b967aa47252fa2a180bf9687bb to your computer and use it in GitHub Desktop.
Instantly blank your computer screen in a command prompt
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment