Hi,
We have a requirement to send keystrokes to some of our Windows XP Pro laptops (to prevent the screen saver, set by Group Policy, from kicking in during presentations). We have easily managed this using WScript, but it isn’t that user friendly. We thought we would use an HTA application instead and have this code…
*************************
Sub SendCAPS()
set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.SendKeys “{CAPSLOCK}”
End Sub
*************************
Our problem is that Windows Script Host methods must execute under Windows Script Host; with HTAs not running in the WSH environment. Thus, our SendKeys method won’t work within the HTA.
Has anyone got a scripting solution that would work within an HTA (i.e. an equivalent to the SendKeys method that isn’t WSH)?
TIA,