Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: Always welcome ;-) Fragen kannst du was du willst - wie ich antworte ist dann meine Entscheidung. Die kürzeste Antwort wäre z.B.: Keine Ahnung ;-) ... aber ernsthaft: Wenn Du

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: Wenn es ein Lernprojekt ist, dann auf jeden Fall erst mal komplett in Java starten. Dann auch am besten direkt bzgl. des GUI mit JavaFX statt Java Swing anfangen. Der Hinweis

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Ja, es soll eine GUI werden die dann die Sikuli funktionen steuert. Das wird ein Haufen Arbeit und viel Lernen, aber das ist ja der Sinn der ganzen Sache :) Es ist ein

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: -- Version 2: dauert noch > 6 Monate - also nicht drauf warten. wird aber abwärts kompatibel sein. -- pausieren, stoppen, wieder starten von Abläufen (scripts): da bist du schon

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Haha, ja das koennten wir tun :) Ich vermute mal, du hast Recht und der Aufwand das zu lernen und dann zu implementieren, lohnt sich fuer mich wohl nicht.. Version 2

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: LOL, wir können gerne auch Deutsch reden ;-) Also in der implementierten Lösung laufen die internen Suchen (10 in deinem Fall) schon parallel. Das mit dem Initiativ-Vorschlag

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-04-04 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: "You might dive into and implement your own parallel find, that tries to reuse resources as much as possible." I suppose that is higher level java? I would like to

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-31 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: - there is no continuous increase or decrease, This is how the GC works: completely asynchronous and unpredictable within the given ranges. As I understand: it tries to work,

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-30 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Interesting, that means i wont have to deal with the script getting slower then, I made some tests measuring the ms it takes to find images and i have made the

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-29 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: Java has an automatic garbage collection (GC) at the top controlled by object's reference counts: in the moment an object is no longer referenced (ref count 0), it will become a

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-29 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: I see.. another question: as I understand it, sikuli creates objects for matches and patterns, in other words these objects are pictures right? at what point will

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-28 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: yes, just pauses the script. It internally just uses Thread.sleep() as well, but catches a possible Interrupted exception with no action. So it is just a shortcut. -- You

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-28 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: but the functionality is the same - just pauses script? can I use it like this: wait(0.025f) ? -- You received this question notification because your team Sikuli

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-25 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: --- why would I use wait instead of thread.sleep though? shorter and clearer ;-) wait(1.0d) instead of Thread.sleep(1000); -- You received this question notification because

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-24 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: sorry, both my fault ;-) these 2 lines public static double Settings.MinSimilarity = 0.9; //raiman public static float Settings.MoveMouseDelay = 0f; //raiman have to be

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-24 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Thank you for these suggestions! I have tried applying this to my code but i get these markers on public static double Settings.MinSimilarity = 0.9; //raiman

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-24 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: I made some changes - see //raiman ;-) The Settings.MinSimilarity is "recognized" in the Finder. a good start is 0.9 (as suggested). With my code you get feedback about the

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-24 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: I have fiddled around with my little bot a bit more and Im almost done with the main function (rerolling). However I came across a problem: the number 3 is often

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: always welcome - have fun with SikuliX -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Yes, that is what I meant, I only need the "List" function when I expect the images(objects) to be created in the process of execution, but since I have all pictures

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: --- why do I need findBestList instead of findBest? same answer as this: --- difference between findAny and findAnyList findAny accepts a parameter series of images, whereas

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: why do I need findBestList instead of findBest? Im not fully getting the difference even though I looked up both functions in the docs. -- You received this question

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: --- findBestList() vs. findAnyList() yep, in your case findBestList() is the preferable feature --- just made a test with 10 images in a 500 pixel region: - exists loop: 90 msec

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: the exists example should break when number is found: found = False foundNumber = -1 for number in numbers: foundNumber += 1 if not reg.exists(number, 0):

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: I'll think about visiting the javadoc next time! I see so in my case I dont really need to use findAnyList correct? since I have the images as files already I dont

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: --- Why could it return null? It will always find a number there. yes ... findAnyList() will always return a List object, ... but in your case all match entries in the list for

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-20 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: sorry foe dp but i have another question regarding findAny. What exactly is the difference between findAny and findAnyList? -- You received this question notification

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-20 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Alexander Schone posted a new comment: Why could it return null? It will always find a number there. a live look? i can post a screenshot of the screen i will be running the script on if that helps. yes it

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-20 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 RaiMan posted a new comment: --- quick enough to use lets say not more than 0.2 seconds to determine should be possible on a capable machine. -- You received this question notification because your team

Re: [Sikuli-driver] [Question #666773]: How to get on the road as a newcomer to Java programming

2018-03-20 Thread Alexander Schone
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Status: Answered => Solved Alexander Schone 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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-20 Thread RaiMan
Question #666773 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/666773 Summary changed to: How to get on the road as a newcomer to Java programming -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.