← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269607]: Cannot write in command prompt

 

Question #269607 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269607

    Status: Open => Answered

RaiMan proposed the following answer:
--- after I close the command prompt then the text is written in other
window.

this means, that 
os.system("start cmd")

waits until the command prompt is closed again, because only then the
type is processed.

So use another technique to open a command prompt (e.g. subprocess,
App.open(), …)

But I do not understand, why you want to write into the command prompt?

There are many methods, to build a command on the fly and issue it
internally (e.g.subprocess), which allows on top easy access to the
output.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.