← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #251402]: stop input after a few time

 

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

    Status: Open => Solved

aorior confirmed that the question is solved:
I do that:
import threading
class MT (threading.Thread):
    def __init__ (self,Fenetre):
        threading.Thread.__init__ (self, target=self.run)
    def run (self):
        globar myVar
        myVar=input("?????????")
    def stop(self):
        self._stopevent.set( )
TH=MT(run)
TH.start()
wait(2)
click("1404739259247.png")
where 1404739259247.png is the buttom ok 
That seem to work.

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