Here is how you can do that using VBScript in 24x7. Th WScrip.Shell implementation of SendKeys doesn't depend on the state of CAPS LOCK. Use this script as an example. Sub Main() Dim ShellObject ' Create shell object Set ShellObject = CreateObject("WScript.Shell") ' Run my program ShellObject.Run "notepad", 9 ' Give my program some time to load (3 seconds) JALScript.Execute("Wait 3") ' Send the keys ShellObject.SendKeys "Hello World!" ShellObject.SendKeys "{ENTER}" End sub
|