Skip to content

Instantly share code, notes, and snippets.

@simply-coded
simply-coded / carousel.md
Last active September 5, 2020 14:22
A JavaScript object that creates a simple carousel out of any element with the class "carousel".
@simply-coded
simply-coded / BrowseForFile.md
Last active September 5, 2020 14:27
Browse for file dialog box in VBScript.
@simply-coded
simply-coded / ChangePassword.vbs
Last active July 21, 2024 05:33
Change a windows user's password. This requires that you know the old password.
'***********************
'Name: Change Password
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 10/05/2014
'***********************
Option Explicit
Dim objDomain, User, List
Dim strAccount, strNewPass, strOldPass, status
@simply-coded
simply-coded / OverridePassword.vbs
Created April 18, 2016 00:36
Change a windows user's password. Requires admin permission but doesn't require knowing the old password.
'***********************
'Name: Change Pass Admin
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 10/05/2014
'***********************
Option Explicit
RunAsAdmin()
@simply-coded
simply-coded / SendGmail.vbs
Last active March 21, 2024 01:36
Send an email with vbscript using gmail.
'***********************
'Name: Email Messages
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 1/02/2015
'***********************
Option Explicit
Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objSHL : Set objSHL = CreateObject("WScript.Shell")
@simply-coded
simply-coded / TimedBox.vbs
Last active July 21, 2024 05:33
Simple vbscript timed message box using embedded hta.
'***********************
'Name: Timed Messages
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 1/02/2015
'***********************
Option Explicit
Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
@simply-coded
simply-coded / MsgBox.hta
Last active November 4, 2024 19:47
VBScript MsgBox clone using HTA. Allows you to customize the buttons, look and style, unlike the default VBScript MsgBox.
<!DOCTYPE html>
<html>
<head>
<title>Message Box</title>
<meta http-equiv="x-ua-compatible" content="IE=9">
<meta name="author" content="Jeremy England">
<meta name="copyright" content="SimplyCoded">
<meta name="last-modified" content="2015-11-10">
<hta:application
border="thin"
@simply-coded
simply-coded / DictionaryInDictionary.vbs
Last active July 21, 2024 05:28
Dictionaries inside of dictionaries example using VBScript.
'**************************
'Name: Dictionary Inception
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 02/20/2016
'**************************
Set contact = CreateObject("Scripting.Dictionary")
contact.Add "Ben", details("25","(820)-828 2828")
@simply-coded
simply-coded / MultilineFormatter.vbs
Last active June 2, 2023 13:02
Converts your clipboard data into a multiline string made for vbscript. Makes it easy to create other coding files within your vbscript file. Video demo available on YouTube.
'***********************
'Name: String Formatter
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 04/08/2016
'***********************
Option Explicit
Dim htm : Set htm = CreateObject("htmlfile")
@simply-coded
simply-coded / HotOrCold.vbs
Last active October 26, 2019 08:25
Game that has you guess a computer generated number between 0-100. The closer or farther a way you get will let you know if you're getting warmer or colder. You have 10 tries. Good luck.
'***********************
'Name: Guessing Game
'Author: Jeremy England
'Company: SimplyCoded
'Version: rev.001
'Date: 05/17/2014
'***********************
Option Explicit
Dim status, guess, range, guesses, diff, change