← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #147449]: Problem using os.system()

 

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

    Status: Answered => Solved

Jason confirmed that the question is solved:
For some crazy reason... This works for me:
import os
try:
   os.system('taskkill /f /im notepad.exe')
except:
   print "Failed"

It always close notepad now... I don't know why... Thanks anyways.

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