I’ve been toying around with the iTunes COM object (iTunes.Application) which gives you some pretty handy control over the iTunes application. I was particularly interested in having something display song lyrics so I developed an HTA that displays album art, artist and song information and lyrics. The tool will refresh whenever a new song is played. If no lyrics are available a link will be provided that might help you find lyrics to LyricWiki.org. The link will open in an external browser window and is a “best guess” based on iTunes song information. If the song does not show up, you can probably still search the site for lyrics. This version does not update lyrics. You’ll have to do that manually.
If you attempt to close iTunes and get a message about another application using iTunes, close the HTA first. If iTunes is not running, when you launch the HTA it will also launch iTunes.
The HTA is not intended as an iTunes replacement, although you could certainly extend the functionality. At some point, I might add better code to find lyrics and even update the song in iTunes. If someone else comes up with code like that, I hope they’ll share.
You can download the zip file with the HTA at http://www.jdhitsolutions.com/scripts.
Last fall I demonstrated an HTA I had developed to rapidly develop a user logon script with practically no scripting. You could map drives and printers based on group membership simply be selecting a group from a pre-populated drop down list. You could display a message to the user with information just as a summary of their mapped resources or how old their password is. You could even run additional programs or code.
The only thing you really have to do is provide a text list of shared drives and printers that you want to map. The new version let’s you specify the location of those files.
- Other items in the new version:
- Fixed bug when using %username% in the drive mapping.
- Previous used values are stored in the registry for faster access.
- Added popup help.
- Added ability to load welcome and error messages from files.
- Added a debug feature.
- Added option to load finished script in Notepad or PrimalScript (if installed).
I have some screen shots of the latest version at http://www.jdhitsolutions.com/logonscriptgen/index.htm.
The latest version is also now a free PrimalScript scripting tool. You can download the latest version at http://www.primalscript.com/freetools/.
Now you can script without scripting! I hope you’ll let me know what you think.
Technorati tags: scripting, HTA, logon, SAPIEN, Network, Primalscript
My first Mr.Roboto column for Redmond Magazine is now online. In the article I talk about my free password reset tool, PWDMan. I demo’ed it at Techmentor last fall and it seemed pretty popular. I’ve made some improvements since then such as adding Printing and Exporting capabilities. I’ve also added a logging feature so you can see which computers weren’t available. The latest version is 1.3 which you can check by clicking on Password Reset Manager (the cursor should change to a question mark as you hover of the title). Early readers of the online column probably downloaded an older version I still had on the site. If you aren’t running 1.3, then head back to http://www.jdhitsolutions.com/pwdman/ and download the latest version.
I’ve gotten some good suggestions already for future enhancements, as well as some thoughts of my own. I’m sure I’ll incorporate them, I just can’t say when. But when I do, it will be blogged here.
HTA Scripting MrRoboto
While testing some Techmentor demos with the Logon Script Generator, I found a few bugs. The tool allows you to use %username% in a file UNC (like \\file03\%username% and it substitutes the appropriate VBScript to get the username. What I didn’t take into account is if you wanted to have that be a hidden share (\\file03\%username%$). I’ve corrected that oversight and another minor issue.
You can download the updated tool at http://www.jdhitsolutions.com/logonscriptgen/index.htm
HTA Scripting Logon Scripts
I’ve developed a new and free HTA, in the “scriptomatic” philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code. The tool reads in lists of available drive and printer UNCs that you provide to populate drop down lists. It will also query Active Directory to search for security enabled groups and present them in drop down lists.
I always like presenting a summary message to the user after logon script completion. The HTA includes options to display the user’s password age, a brief welcome message, a summary of mapped drives and a summary of mapped printers. You can also add customized text for error messages or call additional commands. The tool will preview the final code for you and let you save it to a file.
You can download the tool for free at http://www.jdhitsolutions.com/logonscriptgen/index.htm