November 21, 200421 yr So Im trying to use a vb script:'Set CreateObjectSet WshShell = WScript.CreateObject("WScript.Shell")'Launch NotepadWshShell.Run "notepad"'Wait 5 SecsWScript.Sleep 5000'Bring Notepad window to focusWshShell.AppActivate "Notepad"'pass textWshShell.SendKeys "Testing123"WshShell.SendKeys "{ENTER}"When I run the vbs script normally, it does what its supposed to- open Notepad, wait 5 secs, type "Testing123", then press Enter.When I try to run this from RunOnceEx, all it does is open notepad and doesnt pass the text... any ideas?
Create an account or sign in to comment