Skip to content

Instantly share code, notes, and snippets.

@AlexLynd
Created July 16, 2021 20:31
Show Gist options
  • Save AlexLynd/19c4f26d5d668b66509b4cd893603546 to your computer and use it in GitHub Desktop.
Save AlexLynd/19c4f26d5d668b66509b4cd893603546 to your computer and use it in GitHub Desktop.
Windows Visual Basic Rickroll script
set oShell = WScript.CreateObject("WScript.Shell")
oShell.run"%SystemRoot%\System32\SndVol.exe"
WScript.Sleep 200
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("{PGUP}")
oShell.SendKeys("%{F4}")
oShell.Run "chrome.exe"
WScript.Sleep 600
oShell.SendKeys"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
oShell.SendKeys"{ENTER}"
WScript.Sleep 600
oShell.SendKeys"F"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment