[Sikuli-driver] [Question #269664]: Sikuli loop with python
New question #269664 on Sikuli: https://answers.launchpad.net/sikuli/+question/269664 This is the current code (I am using try/except to handle exceptions) I am using, I would like to know if there are any way to make it LOOP with a python list to shorten the code : try: . type("first number in A") type("first number in B") . except FindFailed: type(Key.F5) For e.g. A=[111,222,333] B=[123.456.789] try: . type("first number in A") type("first number in B") . except FindFailed: type(Key.F5) **Once the first loop is completed, how to choose the second number from list A and B etc. Please kindly correct me if I have misunderstanding in any ways. Thank you for your time. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 Status: Answered => Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269618 eduardobedoya posted a new comment: Thanks Raiman, no I don't intend to have a hotkey to stop a script, it stop when it ends... but I would like to run one script and after it ends (it write a file), then execute another script,... >From your example I used this... def runMySikuliScriptA(event): runScript("C:\Sikuli\Scripts\MySikuliScriptA") Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA) def runMySikuliScriptB(event): runScript("C:\Sikuli\Scripts\MySikuliScriptB") Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB) while True: wait(1) Doing this I can press CTRL SHIFT F1 and run scriptA, then after it ends, I press CTRL SHIFT F2 to run scriptB, it worked ok So this last infinite loop is necessary right? is it helps sikuli to wait until next shortcut is press right?? Thanks Raiman. -- You received this question notification because you are a member of Sikuli Drivers, which 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