View Single Post
Old 06-28-2009   #1 (permalink)
Larry


 
 

Inserting a string into an application

I have various .vbs files in which (using AutoIt's ClipPut method) I put a
string into the Clipboard and then paste the contents of the Clipboard into
the active application, like this:

Set oWSH = CreateObject("WScript.Shell")
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoIt.ClipPut(sText)
oWSH.SendKeys"^v"

Is it possible to insert a string directly into the active application,
without transferring the string to the Clipboard and then pasting it?

Thanks,
Larry


My System SpecsSystem Spec