|
-
Feb 27th, 2000, 08:52 AM
#1
Thread Starter
Member
SendKeys, AND Running in Background
Hi,
Thanks for all your help. I finally got it to work, except for two parts of my code. When the enter key is hit I get any error saying that the file is already open. How do I close the file? Here is my code:
If keycode = 13 Then
Dim entFile As Integer
entFile = FreeFile
Open "C:\Log.txt" For Append As entFile
SendKeys "{enter}", True
Close entFile
End If
What I want to do is send an enter command to the text file.
Also, when I make this progran not visible it will not work it will run, but will not send any keys why? How do I make this program rn in the background, and not be visible.
Thanks for all your help!
Kevin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|