Re: [2005] Quick Question
Do you want to open a file with text, or enter it in programmatically?
Re: [2005] Quick Question
Maybe something like this:
VB Code:
Dim p As System.Diagnostics.Process
p = System.Diagnostics.Process.Start("C:\WINDOWS\Notepad.exe")
p.WaitForInputIdle()
AppActivate(p.Id)
SendKeys.Send("Hello")
Re: [2005] Quick Question
I want it to Open notepad.exe then enter text.
Thanks Negative0 it worked.
What does the line:
p.waitforInputIdle()
Appactiveate(p.id)
do or mean.
Is there a way to make it appear like 1 letter ever 1 second? so when notepad is open it slowly starts appearing.
thanks
Re: [2005] Quick Question
WaitForInputIdle: http://msdn2.microsoft.com/en-gb/lib...inputidle.aspx
AppActivate:
http://msdn2.microsoft.com/en-us/library/dyz95fhy.aspx
Yes, there is a way to make the letters appear one at a time, you can either sendkeys slowly (i.e. putting a sleep command between each letter) or you can use a timer and send a letter each time the timer fires.
Re: [2005] Quick Question
Thanks for the quick reply could you post the code with a timer added in if its not to much trouble.
Thanks