Re: [Sikuli-driver] [Question #687415]: Strange problem or a bug in Sikuli
Question #687415 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687415 Mark McGuinn gave more information on the question: This is the extracted routine: def get_time(): time_reg = (Region(260,692,89,29)) Debug.user("In Timer calculator...") time_left_s = time_reg.text() Debug.user("time_left_s = "+time_left_s) time_left_i = time_left_s.split(" ") return(time_left_i) and this is what calls it when it works: time_left_i = get_time() print ("Time left i = ",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
[Sikuli-driver] [Question #687415]: Strange problem or a bug in Sikuli
New question #687415 on Sikuli: https://answers.launchpad.net/sikuli/+question/687415 Hi, I have an application which is designed to automate taking part in auctions. One of the functions in the app is to monitor the time left on the auction. It does this by defining a region where the timer appears and then grabs the text from there before doing some processing on the text to convert it into a number. time_reg = (Region(260,692,89,29)) Debug.user("In Timer calculator...") time_left_s = time_reg.text() # Debug.user("time_left_s = "+time_left_s) time_left_i = time_left_s.split(" ") # time_left_j = time_left_i.split() print ("Time left i = ",time_left_i) number_of_elements = len(time_left_i) The problem is that the time_reg.text() call is finding text which does not exists when I call it from my procedure. If I extract the code to a function on its own and then call that from a simple piece of code it finds the correct information. If I call the procedure from my main procedure it doesn't. The names used in this piece of code are unique and only used in these few lines. The phantom text that is found is pretty consistent in that it relates to the item being auctioned (cars), for example: ('Time left i = ', ['|', 'ASTI']) But this string appears nowhere on the screen never mind in the region defined by time_reg. My question therefore is: is this a bug in Sikuli ? -- 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 #687406]: Error Image Path
Question #687406 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687406 Status: Answered => Open Jeff_Vallis is still having a problem: No it’s not when running it’s when you first load the script in the IDE On Sat, Dec 21, 2019 at 6:42 PM RaiMan wrote: > Your question #687406 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/687406 > > Status: Open => Answered > > RaiMan proposed the following answer: > If I understand right: > The problem comes up, when running on Mac and > if g_Running_Version == "Mac" > > does not end up as True. > So you get your Linux image file names. > > So you have to find out, why > g_Running_Version > does not contain "Mac" at this place. > > or use > Settings.isMac() > to decide, wether you are on macOS. > > -- > 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/687406/+confirm?answer_id=2 > > 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/687406 > > 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 #687406]: Error Image Path
Question #687406 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687406 Status: Open => Answered RaiMan proposed the following answer: If I understand right: The problem comes up, when running on Mac and if g_Running_Version == "Mac" does not end up as True. So you get your Linux image file names. So you have to find out, why g_Running_Version does not contain "Mac" at this place. or use Settings.isMac() to decide, wether you are on macOS. -- 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 #687406]: Error Image Path
Question #687406 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687406 Status: Needs information => Open Jeff_Vallis gave more information on the question: Home_Directory = os.environ['HOME'] print "Home_Directory",Home_Directory if Home_Directory == "/Users/Jeff": g_Running_Version = "Mac" Sent from my iPad > On Dec 21, 2019, at 10:03 AM, RaiMan > wrote: > > Your question #687406 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/687406 > >Status: Open => Needs information > > RaiMan requested more information: > How do you set a value for g_Running_Version? > > -- > 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/687406 > > 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 #687072]: App.open doesn't work with variable passed on command line
Question #687072 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687072 RaiMan posted a new comment: ok, will check. -- 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 #687072]: App.open doesn't work with variable passed on command line
Question #687072 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687072 Status: Needs information => Open Danish Innis gave more information on the question: 2.0.1 -- 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] [Bug 1476773] Re: [2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2
** Description changed: + Information about the fix: https://github.com/RaiMan/SikuliX1/issues/270 + -- + Hi again. Im writting a code that will check if an image appeared on a Region. After the image appears the program will scan the same region to see if it desappears. When the image desappears it will start to scan to see if it appears again, and so on. So, im using OnAppear and OnVanish on the same region with a single handler. (calling Repeat() in the end) The problem with this solution is that the handler will continue to be called with type = APPEAR even if the handler was already triggered one time with APPEAR. The same happen when the image disappears and the handler is called with type = VANISH. It will continue to be called with VANISH until the image appears again. Is there a way to avoid this? Is it possible to unregister OnAppear/OnVanish and register it again in a Region? Do i have to use two different regions with the same dimmensions? Thanks -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1476773 Title: [2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2 Status in Sikuli: Fix Committed Bug description: Information about the fix: https://github.com/RaiMan/SikuliX1/issues/270 -- Hi again. Im writting a code that will check if an image appeared on a Region. After the image appears the program will scan the same region to see if it desappears. When the image desappears it will start to scan to see if it appears again, and so on. So, im using OnAppear and OnVanish on the same region with a single handler. (calling Repeat() in the end) The problem with this solution is that the handler will continue to be called with type = APPEAR even if the handler was already triggered one time with APPEAR. The same happen when the image disappears and the handler is called with type = VANISH. It will continue to be called with VANISH until the image appears again. Is there a way to avoid this? Is it possible to unregister OnAppear/OnVanish and register it again in a Region? Do i have to use two different regions with the same dimmensions? Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1476773/+subscriptions ___ 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 #269185]: OnAppear and OnVanish on the same region
Question #269185 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269185 RaiMan proposed the following answer: @panadol007 fixed - see the related bug and https://github.com/RaiMan/SikuliX1/issues/270 will be available in 2.0.2 (start of January) and in 2.1.0 nightly later today -- 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] [Bug 1476773] Re: [2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2
** Summary changed: - [2.0.1] observe: setInactive/setActive not working --- to be checked + [2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2 ** Changed in: sikuli Status: In Progress => Fix Committed ** Changed in: sikuli Importance: High => Critical -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1476773 Title: [2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2 Status in Sikuli: Fix Committed Bug description: Hi again. Im writting a code that will check if an image appeared on a Region. After the image appears the program will scan the same region to see if it desappears. When the image desappears it will start to scan to see if it appears again, and so on. So, im using OnAppear and OnVanish on the same region with a single handler. (calling Repeat() in the end) The problem with this solution is that the handler will continue to be called with type = APPEAR even if the handler was already triggered one time with APPEAR. The same happen when the image disappears and the handler is called with type = VANISH. It will continue to be called with VANISH until the image appears again. Is there a way to avoid this? Is it possible to unregister OnAppear/OnVanish and register it again in a Region? Do i have to use two different regions with the same dimmensions? Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1476773/+subscriptions ___ 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 #269185]: Status of bug #1476773 changed to 'Fix Committed' in Sikuli
Bug #1476773 status changed in Sikuli: In Progress => Fix Committed https://bugs.launchpad.net/sikuli/+bug/1476773 "[2.0.1] observe: setInactive/setActive not working --- fixed with 2.0.2" This bug is linked to #269185. OnAppear and OnVanish on the same region https://answers.launchpad.net/sikuli/+question/269185 -- 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 #687406]: Error Image Path
Question #687406 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687406 Status: Open => Needs information RaiMan requested more information: How do you set a value for g_Running_Version? -- 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 #687406]: Error Image Path
New question #687406 on Sikuli: https://answers.launchpad.net/sikuli/+question/687406 2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9 When I open a script in the IDE I get many Errors regarding ImagePath e.g. [error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png [error] ImagePath: find: File does not exist: /home/jeff/SikuliScripts_Linux/Subs/Images/Sikuli.png There is maybe 40 of these errors listed all to do with where the Images are stored on different machines Why do I get these The Code that is causing this is :- if g_Running_Version == "Mac": v_Image = "/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png" g_This_Ruler = Pattern(v_Image).similar(.9) else: g_This_Ruler = "/home/jeff/SikuliScripts_Linux/Code/Data/Images/Ruler.png" The IDE does not know that g_Running_Version = "Mac" on this machine and will not process this line -- 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 #687072]: App.open doesn't work with variable passed on command line
Question #687072 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/687072 Status: Open => Needs information RaiMan requested more information: SikuliX version? -- 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