![]() |
| From FrontierDG |
Friday, November 21, 2008
Tuesday, November 11, 2008
Super flexible Browser Helper Object that runs vbscript
2. Run regsvr32 on the BHO.dll to register the dll.
3. Search for the CLSID of BHO.VBS in the Windows registry.
4. Add the CLSID to the Browser Helper Object section of the Windows registry.
Step 1. Download my BHO.dll and Input.vbs
Download both here. Extract both to a folder somewhere on your computer. The files need to stay together because BHO.dll will 'look' for Input.vbs in the same folder as it is located.
2. Run regsvr32 on the BHO.dll to register the dll.
Ok, once you download and extract the files you need to register the dll. You do this by typing...
regsvr32 c:\path\to\dll\bho.dll and pressing the Enter key. If all went well you'll see dialog that dll succeeded. If it failed write me a note and I'll help.
3. Search the CLSID for our BHO.VBS in the Windows registry.
Fire up Regedit and highlight HKEY_CLASSES_ROOT section, then CTRL+F and search for BHO.VBS. Click the '+' sign next to BHO.VBS and below you should see Clsid. You need to copy the default value of the Clsid it should be this...
{BA57180D-B7DD-418A-A102-65D400315C86}
Copy everything including the curly brackets and more on to step 4.
4. Add the CLSID to the Browser Helper Object section of the Windows registry.
Ok, now you've got to add a key in Browser Helper Object of the Windows registry. In regedit browse to... HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects
and enter new key with the Clsid of the BHO.VBS file (remember from step 3).
Whew, you made it. Pat yourself on the back. Now let's see if it is working. In the Internet Explorer address bar type http://www.google.com/ and press enter. When the Google page appears the search box should have a special message just for you ;)
Now all you need to do modify the behavior of BHO.VBS is modify the Input.vbs file. Start making your own creative changes!
Oh, one more thing. A lot of BHOs are related to adware, spyware, and the like. That doesn't mean that all BHOs are bad. After all Microsoft, Yahoo, Google, and Adobe provide BHOs that are a welcome part of most peoples' Internet Explorer experience.
Still I wanted to provide some safeguard against abuse of BHO.VBS, so every so often a small Windows will appear in the lower right hand corner of the screen that BHO.VBS is running and a link to this blog.
If this is a problem contact me and we can discuss.
Enjoy! :)
Thursday, November 6, 2008
Quckly create a shortcut key to mute / un-mute Windows sound volume
When you click Open, Windows will display another warning similiar to below...

Click 'Run'. After you click Run, you'll notice that there is a new shortcut icon on your desktop named 'mute'. That's a good indication things went as planned. Now press CTRL + SHIFT + M and Window's volume will be muted. Press the hotkey and again and it will un-mute the sound.
In case you are wondering what weird science took place in the MakeMuteShortcut.vbs, here's the contents...
' by http://frontierdg.blogspot.com
' enjoy :)
set oShell = CreateObject"WScript.Shell")
strDesktop = oShell.SpecialFolders("Desktop")
set fso=createobject("Scripting.fileSystemObject")
set ofile=fso.CreateTextFile(strDesktop & "\mute.vbs",true)
ofile.writeline "set oShell = CreateObject(" & chr(34) & "WScript.Shell" & chr(34) & ")"
ofile.writeline "oShell.SendKeys chr(173) 'mute/ un-mute the sound"
ofile.close
set oShellLink = oShell.CreateShortcut(strDesktop & "\mute.lnk")
oShellLink.TargetPath = strDesktop & "\mute.vbs"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+M"
oShellLink.Description = "Toggle Mute"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
...
That's all there is to it. Enjoy :)
Shortcut key to mute and un-mute the volume in Windows (Free, of course)
Set oShell = CreateObject("WScript.Shell")
oShell.SendKeys chr(173) 'mute / un-mute the sound
and paste them in notepad.exe. Next save the file as mute.vbs to the desktop.
After saving the file you can double click on mute.vbs. Everytime you double click on the file it will toggle Windows volume between mute and un-mute.
Next create the shortcut and shortcut key so that we can mute/ un-mute the sound using just the keyboard...
A new file 'Shortcut to mute.vbs' was create on the desktop. Right click on the new shortcut 'Shortcut to mute.vbs' and choose properties. Then click on the shortcut tab and click in the 'shortcut key' textbox and press the 'm'.
Click OK to save.
Now whenever you press the CTLR + ALT + M keys you can easily toggle between mute/ un-mute.
Create a shortcut key to mute the volume in Windows (the easy way)...
If you don't really care to learn how to do this you can always just download the this file and it will create the mute.vbs and shortcut key for you... just click here!
Enjoy :)
Wednesday, November 5, 2008
Toggle Mute Volume in Windows using VBScript
set oshell=createobject("wscript.shell")
oshell.run "sndvol32"
oshell.appactivate "volume control"
wscript.sleep 100
oshell.sendkeys "{tab}+{tab}"
oshell.sendkeys "m "
oshell.appactivate "volume control"
wscript.sleep 100
oshell.sendkeys "%{f4}"
set oShell = CreateObject("WScript.Shell")
oShell.SendKeys chr(173) 'toggle between mute and un-mute
Yep, just two lines of code. Open notepad, copy the two lines and save it to a file named 'mute.vbs'. Now when you double click on the mute.vbs file it will mute and un-mute the master volume.Dennis Robins
http://www.windows-password-reset.com/
