Yes, thank you, this version works. Did I understand correctly, that every reference to WScript (at the beginning of the line) in the samples has to be converted to an Windows-API call?
Hilmar.
>>Your code fails on the very first line: Object WScript not found. Issuing CreateObject() alone, without an object reference, works:
>
>Sorry, my next attempt (it works):
>
>Declare Sleep IN WIN32API INTEGER
>WshShell = CreateObject("WScript.Shell")
>WshShell.Run("calc")
>=Sleep(100)
>WshShell.AppActivate("Calculator")
>=Sleep(100)
>WshShell.SendKeys("1{+}")
>=Sleep(500)
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)