← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #238412]: How to get the title bar name (Windows XP)

 

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

tranquillo proposed the following answer:
Sorry for awakening this very old thread, but I coverd a similar
question, for me: "how to find a process whitout knowing the exact
name", with the very usefull windows tool wmic.exe and get the name via
python:

cmdout = run('wmic.exe process list status')
processes = cmdout.split("\n")
testCandidate = '';
for process in processes:
    if "myProg" in process:
        process = process.split(" ")
        testCandidate = process[0]
popup(testCandidate)

Cheers 
Rob

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.