Re: [Sikuli-driver] [Question #687415]: IDE: How to solve/track strange problems

2020-01-09 Thread Launchpad Janitor
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-24 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Answered => Open

Mark McGuinn is still having a problem:
I get the error with the following simple test


max_bid = 5

I have emailed a screenshot of the error to the sikuli account as there
does not appear a way to upload it to this app.

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-24 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Answered

Manfred Hampl proposed the following answer:
In comment #12 I asked
"Can you provide a simplified version of your script - as short as possible but 
still failing, and provide the full text?"

You haven't done this so far, so I cannot help further.

And again: Please do not send e-mail replies with history!
Please visit https://answers.launchpad.net/sikuli/+question/687415 and look how 
the question document is cluttered with needless text.

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-24 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Mark McGuinn gave more information on the question:
Yes the problem still exists.

Sent from my Huawei phone


 Original message 
From: Mark McGuinn 
Date: Mon, 23 Dec 2019, 18:22
To: bb...@hotmail.com
Subject: Re: [Question #687415]: IDE: How to solve/track strange problems
Your question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Answered => Open

You are still having a problem:
Manfred,

apologies for the mis-assignment on the code, given that the code which
I forgot to include is now available to you are you able to reproduce
the problem?

Thanks
Mark


The Future Is Certain Give Us Time To Work It Out

From: boun...@canonical.com  on behalf of Manfred Hampl 

Sent: Monday 23 December 2019 18:03
To: bb...@hotmail.com 
Subject: Re: [Question #687415]: IDE: How to solve/track strange problems

Your question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Answered

Manfred Hampl proposed the following answer:
But that definition (which isn't my proposal) is missing in your comment
#13

Repeating RaiMan's command #8: please do not reply with history!

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/sikuli/+question/687415/+confirm?answer_id=17

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/687415

You received this question notification because you asked the question.

--
You received this question notification because you asked the 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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Answered => Open

Mark McGuinn is still having a problem:
Manfred,

 apologies for the mis-assignment on the code, given that the code which
I forgot to include is now available to you are you able to reproduce
the problem?

Thanks
Mark


The Future Is Certain Give Us Time To Work It Out

From: boun...@canonical.com  on behalf of Manfred Hampl 

Sent: Monday 23 December 2019 18:03
To: bb...@hotmail.com 
Subject: Re: [Question #687415]: IDE: How to solve/track strange problems

Your question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Answered

Manfred Hampl proposed the following answer:
But that definition (which isn't my proposal) is missing in your comment
#13

Repeating RaiMan's command #8: please do not reply with history!

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/sikuli/+question/687415/+confirm?answer_id=17

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/687415

You received this question notification because you asked the 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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Answered

Manfred Hampl proposed the following answer:
But that definition (which isn't my proposal) is missing in your comment
#13

Repeating RaiMan's command #8: please do not reply with history!

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Needs information => Open

Mark McGuinn gave more information on the question:

Hi Manfred,

  the definition is the one you proposed i.e.

def test_if_char(value):
for e in value:​
if ord(e) > 255: return False​
return True

regards
Mark


The Future Is Certain Give Us Time To Work It Out

From: boun...@canonical.com  on behalf of Manfred Hampl 

Sent: Monday 23 December 2019 17:23
To: bb...@hotmail.com 
Subject: Re: [Question #687415]: IDE: How to solve/track strange problems

Your question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Needs information

Manfred Hampl requested more information:
Where is the definition of test_if_char ?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/687415

You received this question notification because you asked the 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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Needs information

Manfred Hampl requested more information:
Where is the definition of test_if_char ?

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Answered => Open

Mark McGuinn is still having a problem:
Changed all the variable names to be the same and the lines still fail.

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Answered

Manfred Hampl proposed the following answer:
In the failing lines you have

time_lefti

instead of

time_left_i

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Needs information => Open

Mark McGuinn gave more information on the question:
Hi Manfred,

   below is the simplified script plus a sub-routine it calls. Attached
are a couple of screen shots showing the various possible elements in
the time area which I am trying to process. I hope sending this directly
to you is ok,

Mark


​
def make_bid(bid_amount):​
​
#​
# Here check that ​
​
​
Debug.user("In make_bid")​
print("In Make Bid")​
if exists ("1576597641783.png",5):​
#​
# ​
click("1576597838526.png")​
wait("1576597897207.png")​
click("1576597948174.png")​
print("Bid Placed")​
return(1)​
​
 #​
 # if ending soon is not present somethin went wrong, either we are too early​
 # or someone bought the item​
​
elif exists ("1577013855062.png",2) :​
print("Auction Complete")​
return(1)​
​
else:​
print(" Auction is not ending yet need to rerty")​
return (2)​
​
​
#​
# need to loop back to calling proc​
​
max_bid = 5​
time_left_i = get_time_left(Region(260,692,89,29))​
#time_split = time_left_i.split(" ")​
print("The len of time_left_i is:",len(time_left_i))​
print("Time Left i1..",time_left_i)​
​
if time_left_i[0] == "PLETE":​
print("Auction Over")​
​
elif time_left_i[0] == "SOON":​
make_bid(max_bid)​
# elif test_if_char(time_lefti[0])​  # <--- These lines cause the 
problem
 #   print("Empty string")​​#  <
 #break​​   #  <
else:​
 wait_time_1 =  re.sub("[^0-9]","",time_left_i[0])​
 print("Wait time 1 is ",wait_time_1)​
 print("The type of wait_time_ is:",type(wait_time_1))   ​
 result = isinstance(wait_time_1, str)​
 print(wait_time_1,'instance of string?', result)​


The Future Is Certain Give Us Time To Work It Out

From: boun...@canonical.com  on behalf of Manfred Hampl 

Sent: Monday 23 December 2019 15:43
To: bb...@hotmail.com 
Subject: Re: [Question #687415]: IDE: How to solve/track strange problems

Your question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Needs information

Manfred Hampl requested more information:
Can you provide a simplified version of your script - as short as
possible but still failing, and provide the full text?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/687415

You received this question notification because you asked the 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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Needs information

Manfred Hampl requested more information:
Can you provide a simplified version of your script - as short as
possible but still failing, and provide the full text?

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Needs information => Open

Mark McGuinn gave more information on the question:

Adding the *:* after the if makes no difference to the exception being raised. 
The def for get time left is:

def get_time_left(reg):
return reg.text().split(" ")

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Manfred Hampl
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Open => Needs information

Manfred Hampl requested more information:
What is the definition of get_time_left? I only find a def for get_time()
At the end of the "if" line you need a colon.
The indentation is inconsistent.

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread Mark McGuinn
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Status: Answered => Open

Mark McGuinn is still having a problem:
I've done what was suggested and am still getting the error when the
test procedure basically contains just the if statement:


   def test():   
# 
 time_left_i = get_time_left(Region(260,692,89,29)) 
if  time_left_i[0] == ""
  print("Empty string")​

-- 
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 #687415]: IDE: How to solve/track strange problems

2019-12-23 Thread RaiMan
Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

Summary changed to:
IDE: How to solve/track strange problems

-- 
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