[Sikuli-driver] [Question #404260]: keydown() doesn't work
New question #404260 on Sikuli: https://answers.launchpad.net/sikuli/+question/404260 My code : wait(2) click(some area) #click inside a notepad (empty) window wait(0.5) keyDown("o") wait(6.3) keyUp("o") wait(1) keyDown("o") wait(4.9) keyUp("o") wait(1) keyDown("o") wait(3.6) keyUp("o") wait(1) keyDown("r") wait(2) keyUp("r") wait(1) So, instead of having something like this : "rrr" (it doesn't matter how it would actually look like) I get this : "ooor". So, instead of keeping "o" and "r" down, it seems it just types it once! A little backstory : The above is part of a code for playing a game. "o" is accelaration, "r" is reset. I have written my code for the same game in my laptop and it works perfectly. When I transfered my code to my friend's PC, it simply doesn't work. When I wanted to undersatand why it wouldn't work, I thought to test it on notepad. I tried for almost 3 hours to find any solution but nothing. Right now, I tried the code on my laptop and it worked. I am trying the above segment on notepad and I get the exact same resaults as on my friend's PC. Any ideas? -- 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Status: Answered => Open Christos is still having a problem: @Raiman 1. Then why is this working on my laptop and not on my friend's PC (for the game I am trying to create a sikuli)? 2. What does trigger the keyboard repeat function? 3. Do you have any suggestion for what I am trying to do? -- 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Status: Answered => Open Christos is still having a problem: I tried #3. The button has to be kept down, not repeatedly being pushed. If anyone else has any ideas, please share! -- 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Status: Open => Solved Christos confirmed that the question is solved: So, after trying and trying for hours, the problem was that I didn't run Sikuli as administrator. Yeap, that's right. Anyway, problem solved. I hope anyone with the same issue reads this and solves his issue quicker than I did... -- 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Christos posted a new comment: @mauso Windows 10 64-bit 14393.447 Sikuli 1.0.0 Java 7 Update 80 64-bit -- 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Christos posted a new comment: @mauso I don't think I can help you further. That's why I opened this question. In the end, my problem was that I didn't run Sikuli as administrator. Try this and if it doesn't work for you, I am sorry but I won't be able to assist you further... -- 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 #265063]: Manipulate the counter in for loop
New question #265063 on Sikuli: https://answers.launchpad.net/sikuli/+question/265063 I would like to know if it is possible to manipulate the counter in a for loop. Let me use an example : repeat=5 for i in range(0,repeat): DoSomeStuff() if exists(IMAGE): repeat=repeat+2 # I want my loop to run 2 more times than originally planned The above was my initial idea, but it doesn't work. The loop stops at the original "repeat" times. So, is there a way to "extend" (or manipulate) the times a loop is run? -- 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 #265063]: Manipulate the counter in for loop
Question #265063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265063 Christos posted a new comment: Thanks for your answers. So, I see that you can not directly change the counter. If I am not mistaken, even your last code, will run a total of "repeat" times. So, as a workaround I was thinking something like this : repeat=5 # The original times my code will run any way. for i in range(100): # An arbitrary number that I am sure will never be reached DoSomeStuff() if exists(IMAGE): repeat+=2 if i==repeat: break What do you think? That way, every time the image is found, the loop will run for 2 additional times. -- 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 #265063]: Manipulate the counter in for loop
Question #265063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265063 Christos posted a new comment: What I want is to add "x" more rounds (in this example 2) every time the picture is seen. Not only if the picture is seen at least once. I opened this question, just because I was wondering if I could manipulate the counter. The workaround I propose is indeed working. I checked it later today. PS. Just wondering : Why someone can't change the counter? -- 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 #265063]: Manipulate the counter in for loop
Question #265063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/265063 Status: Answered => Solved Christos 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
[Sikuli-driver] [Question #661522]: User clicks as input
New question #661522 on Sikuli: https://answers.launchpad.net/sikuli/+question/661522 I am searching for half an hour, but I can't find anything relevant. variable = int(input("Give me a number")) The above line, opens a window where the user is asked to input an integer. What I need is a similar method but instead of an integer, I want Sikuli to expect for the user to click or indicate a region. Then : if the user clicked, I want to capture the x,y coordinates and store them to a list. if the user indicated a region, store that region to a list. I don't need both methods. One of them is more than 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 #661522]: User clicks as input
Question #661522 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/661522 Status: Answered => Solved Christos confirmed that the question is solved: Thanks RaiMan, 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 #404260]: keydown() doesn't work
Question #404260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404260 Christos posted a new comment: Yes. Comment #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