[Sikuli-driver] [Question #252884]: Time based if statements

2014-08-10 Thread Smizzy
New question #252884 on Sikuli: https://answers.launchpad.net/sikuli/+question/252884 I was wondering if it was possible to have a specific argument that is only true after a 30 second delay from its last time run for example if exists(image.png) and 'time since last run' 30: #bunch of

Re: [Sikuli-driver] [Question #252884]: Time based if statements

2014-08-10 Thread Smizzy
Question #252884 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252884 Status: Answered = Solved Smizzy 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

Re: [Sikuli-driver] [Question #252884]: Time based if statements

2014-08-10 Thread Smizzy
Question #252884 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252884 Smizzy posted a new comment: Are start and time. set names with existing presets or are they just generic names? Could I rename start to something else? -- You received this question notification because

Re: [Sikuli-driver] [Question #252884]: Time based if statements

2014-08-10 Thread Smizzy
Question #252884 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252884 Smizzy posted a new comment: Thanks! Ive got this attractive looking setup now! #outside the loop delay1 = 10 timer1 = -delay1 #inside the loop if (time.time() - time1) delay1 : crafter(w1[0],w1[1

Re: [Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-04 Thread Smizzy
Question #252512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252512 Smizzy posted a new comment: The script im working on is kinda long, like 200 lines, Ill just post the relevant parts. customerlist = (buyitem-2.png,dungeonquester.png,questgiver.png

Re: [Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-04 Thread Smizzy
Question #252512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252512 Smizzy posted a new comment: I also have this kind of a situation and was wondering how to optimize it c1=shopkeeper-1.png # worker icon c1i1=0 # most desired item

Re: [Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-04 Thread Smizzy
Question #252512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252512 Smizzy posted a new comment: Im having an issue with your suggestion in post#9 about using click(getLastMatch) when an exists has just been run. if day.exists(endday.png,0): day.click

Re: [Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-02 Thread Smizzy
Question #252512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252512 Smizzy posted a new comment: For those, say i have 4 sets of images and I search for the first image in each set within a region, is there a way to tell which set the image came from when it is found

[Sikuli-driver] [Question #252546]: Script Stopping

2014-08-02 Thread Smizzy
New question #252546 on Sikuli: https://answers.launchpad.net/sikuli/+question/252546 I have a script similar to this if exists(image.png) click(image.png) The issue is that the image im searching for sometimes disappears inbetween those two lines of code. The script cannot click on it

Re: [Sikuli-driver] [Question #252546]: Script Stopping

2014-08-02 Thread Smizzy
Question #252546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252546 Status: Answered = Open Smizzy is still having a problem: Thanks for the fast reply! How would i incorporate the click(image.png) into that structure? And would this replace the exists(image.png

[Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-01 Thread Smizzy
New question #252512 on Sikuli: https://answers.launchpad.net/sikuli/+question/252512 I am quite new to programming, and while i am enjoying sikuli and the intuitive syntax I am wondering which is the proper method for using Regions. Ive defined a region icon = Region( 40, 230, 75, 350) then

Re: [Sikuli-driver] [Question #252512]: How to use regions properly

2014-08-01 Thread Smizzy
Question #252512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252512 Status: Answered = Solved Smizzy confirmed that the question is solved: Thanks Eugene S, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers

[Sikuli-driver] [Question #252472]: Help! [error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'

2014-07-31 Thread Smizzy
New question #252472 on Sikuli: https://answers.launchpad.net/sikuli/+question/252472 Hello, I'm super new to sikuli and not even well versed in other forms of programming. I downloaded this script to help me play an idle game and it wouldnt run even when i followed their instructions exactly.

Re: [Sikuli-driver] [Question #252472]: Help! [error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'

2014-07-31 Thread Smizzy
Question #252472 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252472 Smizzy gave more information on the question: I have Java 6 and 7 both in -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli

Re: [Sikuli-driver] [Question #252472]: Help! [error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'

2014-07-31 Thread Smizzy
Question #252472 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252472 Smizzy gave more information on the question: Whoops, that last message sent before i was ready, No edit button either :/ I have Java 6 and 7 both in 32 bit, and I have both the sikuli jar version

Re: [Sikuli-driver] [Question #252472]: Help! [error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'

2014-07-31 Thread Smizzy
Question #252472 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252472 Status: Answered = Solved Smizzy confirmed that the question is solved: I did what you said but the idea of special characters in the path made me think maybe the - in my username was the issue, I