Sign in to follow this  
Followers 0
narayanjr

StdoutRead

2 posts in this topic

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)
EndFunc

ItemLevel.exe

Share this post


Link to post
Share on other sites



Bump - Sleep

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0