' Demonstration of using sndkey.exe program with WSH ' Copyright 2004 Michael Newman ' This script is public domain. All rights waived. ' This script will print "Espanol es bueno." with a "n with tilde" ' and an upside down exclamation mark ' in a Microsoft Word window with document "Document1" ' The idea is to have a way to use extended characters in programs via WSH. Dim Wsh Set Wsh = Wscript.CreateObject("Wscript.Shell") Dim sRun ' Change path below to "sndkey.exe" program as needed sRun = "c:\command.com /c " & chr(34) & "C:\workarea\temp\sndkey.exe" & chr(34) & " " ' 7 tells it to run command minimized and keep current window active ' TRUE tells WSH to wait for command to finish before proceeding ' This specifically prints an upside down exclamation mark Wsh.Run sRun & "0161", 7, TRUE Wsh.SendKeys "Espa" ' print n with tilde Wsh.Run sRun & "0241", 7, TRUE Wsh.SendKeys "ol es bueno!"