Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-17 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Status: Answered => Solved David Bachschmid confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-15 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 RaiMan proposed the following answer: with my coding suggestion from comment #12 it should click the last match in reg1, which in turn remembers the given target offset. For the reason behind my suggestion

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-15 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 David Bachschmid posted a new comment: Ok ty, now I understand why the error occured. Still when I do not include a picture within "click(picture.png)", sikuli will only click on the center of the region in

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-15 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Status: Open => Answered RaiMan proposed the following answer: see comment #7 --- Also in these specific lines is a relatively high Target Offset included. ... does not matter for the search, since

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-15 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Status: Solved => Open David Bachschmid is still having a problem: Since I added a timeout to the exists commands, I've received this error three times: [error] script [ sdfsdf ] stopped with error at

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-14 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 RaiMan posted a new comment: Danke für die Rückmeldung. Have fun. All the best. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-14 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Status: Answered => Solved David Bachschmid confirmed that the question is solved: Vielen lieben Dank RaiMan!! No Blue Screens or any crashes since yesterday + my PC doesn't care anymore about running

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-14 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 David Bachschmid posted a new comment: Also I can run the game on 60FPS instead of 10. :) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 RaiMan proposed the following answer: Again Python and OOP: if Region(2927,567,639,340).exists("Fight.png"): Region(2927,567,639,340).click() both Region() each create different (new) objects and hence

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 David Bachschmid posted a new comment: Thanks again. Solved the first problem. My second problem is that sikuli does not click the point in the image which I set it to click on. Right now it only clicks the

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 RaiMan proposed the following answer: It is Python ;-) i guess you tried to transform this: if Screen(1).exists(Pattern("1516812605236-1.png").similar(0.90)):

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 David Bachschmid posted a new comment: Danke RaimMan ;) Now sikuli has a problem with this line: 20if Screen(1).exists(Pattern("rewards.png").similar(0.90)):click() 21

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 RaiMan proposed the following answer: ok, ein bißchen versteckt ;-) http://sikulix-2014.readthedocs.io/en/latest/region.html#Region.setWaitScanRate -- You received this question notification because your

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 David Bachschmid posted a new comment: Ok ty. I will adjust everything now. However, I still do not get how to implement the neccessary lines for scanrate reduction. This is how it is displayed on the

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread RaiMan
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Status: Open => Answered RaiMan proposed the following answer: -- 1. latest version of SikuliX? at least 1.1.1? http://sikulix.com -- 2. understood, how SikuliX works?

Re: [Sikuli-driver] [Question #664345]: CPU usage going through the roof when running script

2018-02-13 Thread David Bachschmid
Question #664345 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664345 Description changed to: Hi everyone, I've created a farming bot for a mobile game which I am playing on my PC with the android emulator Nox. My problem is that once I start the script the CPU usage goes up