narayanjr Posted April 27, 2008 Posted April 27, 2008 I'm trying to read the text out of the window, but the StdoutRead command never ends. If i manually close the window it is reading from then it spits out what was in there. I need to be able to do it several times without having to manually close it. I have only ever used this (StdoutRead) once before so I really don't have any idea how to fix it/if I am doing it right. HotKeySet("{SPACE}", "Enter") #include <Constants.au3> While 1 Sleep(4000) WEnd Func Enter() $Output = "" $pid = Run("C:\ItemLevel.exe", "", @SW_SHOW, 6) ControlSend("C:\ItemLevel.exe","", "" ,"{ENTER}") Do $Output &= StdoutRead($pid) Until @error ProcessClose($pid) ConsoleWrite($Output) EndFuncItemLevel.exe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now