Skip to content

Instantly share code, notes, and snippets.

@Jaykul
Last active December 13, 2016 23:21
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 Jaykul/1e92b732487fbfb442aa67fbe8d121ec to your computer and use it in GitHub Desktop.
Save Jaykul/1e92b732487fbfb442aa67fbe8d121ec to your computer and use it in GitHub Desktop.
Because Pranks
Add-Type -As PresentationFramework; $Window = [System.Windows.Window]@{ Background="Transparent"; AllowsTransparency="True"; WindowStyle="None"; Width=1920; Height=1080; ShowActivated=$true; TopMost=$True; WindowState="Maximized"; Content = ([System.Windows.Controls.Image]@{ Source = 'http://i.imgur.com/IGMwt.jpg'; Stretch="Fill" }) }; $Window.Add_MouseEnter({Sleep 3; $this.Close();}); $Window.Add_Loaded({ $player = [Windows.Media.MediaPlayer]::new(); $player.Open([Uri]"http://soundbible.com/grab.php?id=1765&type=mp3"); $player.Play(); }); $Window.ShowDialog()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment