Re: [Sikuli-driver] [Question #655535]: open .bat file in seperate command prompt
Question #655535 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655535 arminius posted a new comment: impossible is it? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #655840]: delete a line from a text file
New question #655840 on Sikuli: https://answers.launchpad.net/sikuli/+question/655840 this is my current code that reads a line from a text file then types the in the screen. how do i delete the line from the text file? how do i append that line into another text file? idsList = [] # empty list/array dir = "c:/sikuli/" # the folder, where your ids.txt is idsFile = os.path.join(dir, "type.txt") # makes a Windows filename f = open(idsFile) # opens ids file for line in f.readlines(): # reads line by line id = line.strip() # get rid of newline #print id idsList.append(id) # add id to list/array f.close() # close file type(id) Thanks very much -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #655840]: delete a line from a text file
Question #655840 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655840 MJ gave more information on the question: just read line 1 from text file1, delete that line, and append that line to file2 -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #655511]: Waiting to do 1 of 2 actions
Question #655511 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655511 Status: Open => Answered Manfred Hampl proposed the following answer: Your new code will loop forever in lines 13-15 You probably need a "break" inside this loop to continue processing below that part. Remark: line 11 seems redundant. The block in lines 8-10 will loop as long as that blue/red block is visible on the screen and ends when it is no more there. I do not see the need to test whether that block now is not there any more (unless it is supposed to immediately re-appear). In my opinion a simple "break" with a first-level indent would have been enough. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #654244]: Waiting for image, type command, then waits again
Question #654244 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654244 Status: Open => Answered Manfred Hampl proposed the following answer: For a random letter you can use python standard functions. Something like myList=["a","s","d","z","x","c"] import random for x in range(50): print myList[random.randint(0,5)] -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #654244]: Waiting for image, type command, then waits again
Question #654244 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654244 Status: Answered => Solved layanor confirmed that the question is solved: Thanks Manfred Hampl, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #654900]: how to update from Sikuli 1.0.1 to SikuliX 1.1.1
Question #654900 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654900 Status: Needs information => Open Anna Andraszek gave more information on the question: Java 8 -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #655511]: Waiting to do 1 of 2 actions
Question #655511 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655511 Manfred Hampl proposed the following answer: In addition to my previous comment: You are right, the program will loop in the first while block: A break statement will only escape the innermost loop. So the "break" in line 12 will not cause the first big loop (lines 2 - 12) to end. As already written before, there is no need for a while statement in line 11. If you replace lines 11-12 with a simple "break" with a first level-indent (indented the same amount as line 8), then the "break" will cause an escape from the first loop (and lead to a never-ending loop in lines 13-15 as long as that part is not corrected). By the way, I do not really understand why lines 2-12 are packed into a "while true" loop. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #655856]: Detect application processing event or detect mouse processing icon
New question #655856 on Sikuli: https://answers.launchpad.net/sikuli/+question/655856 In my scenario, I've to click on 500 different commands in an application. Command response time varies from 1sec to 1 minutes. I don't want to set 1 minute wait time for each command click. Is there a way to, any api exist to 1. Detect application processing event ? 2. Else can we detect the mouse processing GUI. e.g. in windows 8 a circular animation is displayed during application in work/processing. Thank you -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp