[Sikuli-driver] [Question #687508]: Using OCR to select day of the month

2019-12-24 Thread Daniel Imperiale
New question #687508 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687508

I'm just getting started using Sikuli so this may seem pretty rudimentary so 
forgive me if that's the case.

I have managed to figure out how to find a region and parse the text and check 
for text within that region .
For example I use:
imageText = find("1577221295292.png").text()
print(imageText)
print("##")
print(imageText.find("December"))
print(image.Textfind('January'))


This is the calendar in question: https://i.imgur.com/trqvUeB.
Using this script if  the calendar shows December it prints a 0 and a -1 for 
January.

Now I'd like to be able to search WITHIN that image for the location of the 
number 1 -> 31 so that I can feed them into a second automation task that 
clicks the correct day of the month that is fed in through a script.

I assume I have to search within that image for the x/y coord  and feed in 
images of the calendar dates. But I am struggling to understand what all the 
objects are that I'm interacting with and how to access their 
methods/properties.

thanks so much!

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


[Sikuli-driver] [Bug 1730645] Re: [2.0.0] Windows 10: Move mouse for click not working since new JRE and Windows update with Java 8 and HiDPI --- workaround Java 9 and scaling 100% OR try with Java 11

2019-12-24 Thread Garima Priya
Hi,
I am quite new to Sikuli. I downloaded sikulixapi-2.0.1 jar from Link: 
https://raiman.github.io/SikuliX1/downloads.html
I am using this in Eclipse on windows with JAVA 1.8
I used Snipping Tool to take screenshot of About from Google HomePae.Then I 
wrote a basic program of navigating to Google URL and click on "About" link on 
the Google homepage.
Somehow, the arrow moves towards the "About" link on Google Homepage but stops 
before reaching the link and clicks at the location somewhat below the About 
Link. Attached screenshot of the same. Please suggest where am I going wrong?

Here's the piece of code -

System.setProperty("webdriver.gecko.driver", 
"C:\\Users\\gp0924\\Garima\\BrowserDriver\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();

driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);

driver.get("http://google.com/;);
driver.manage().window().maximize();

Screen screen = new Screen();
Thread.sleep(3000);
Debug.info("Screen: %screen", screen);

ImagePath.setBundlePath("C:\\Users\\gp0924\\Desktop\\LatestSikuliImages");
String img = "About.PNG";
Region region = screen.exists(img);
region.highlight();
System.out.println(region.getROI());
region.click(img);


Below is the response:

[info] Screen: R[0,0 1280x720]@S(0)creen
[log] highlight M[31,185 63x27]On(0) S 1 for 0.0 secs
R[0,0 1280x720]@S(0)
[error] RobotDesktop: checkMousePosition: should be L[62,198]@S(0)
but after move is L[62,199]@S(0)
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.
[log] CLICK on L[62,198]@S(0) (541 msec)

** Attachment added: "Basic Search on Google failing with checkMousePosition 
error"
   
https://bugs.launchpad.net/sikuli/+bug/1730645/+attachment/5315130/+files/Google%20Sikuli%20Test.docx

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1730645

Title:
  [2.0.0] Windows 10: Move mouse for click not working since new JRE and
  Windows update with Java 8 and HiDPI --- workaround Java 9 and scaling
  100% OR try with Java 11

Status in Sikuli:
  In Progress

Bug description:
  see: https://github.com/RaiMan/SikuliX1/issues/27
  --
  * Java problem
  seems to be related to a problem with HiDPI and scaled monitor setups
  https://bugs.openjdk.java.net/browse/JDK-8196030

  The problem seems to exist with Java 8 not supporting HiDPI.

  Using Java 9 or 10 on HiDPI systems with a scaling of 100% seems to
  work

  Using Java 11 these experiences are reported:
  early build of jdk 11 and sikuli 1.1.4 is working good for hidpi, but still 
we observed few issues mentioned below:

  1) Sikuli scripts written using 4k (3840*2160) with recommended
  scaling (300%) is working only for the same recommended settings. If
  we change the resolution to 2K or 1080P or below , and also if we
  change scaling, scripts are failing

  2) Sikuli scripts written on 2k (2560*1600) with recomended scaling (200%) is 
working for for resolutions below 2k like 800*600 to 1920*1080 (Downscaling is 
working with this) and for 4k it is not working (Upscaling is not working)
  -

  wondering if anyone else is seeing this.

  I install the latest big update for Windows this morning and also
  accepted an update to the latest JRE.

  Now my when Sikuli moves the mouse to click on a match it doesn't land
  on the coordinates.   It even recognizes that it missed and has an
  error message saying it tried to move the mouse to (x, y), but landed
  on (p, q) instead.

  Any idea what is happening and how to fix it?

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1730645/+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 #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 #687486]: spam

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

Status: Answered => Invalid

RaiMan changed the question status:
spam

-- 
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 #687486]: spam

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

Summary changed to:
spam

Description changed to:
spam

-- 
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 #687486]: adderall pictures[1.0.1] CentOS 6.4 x86_64: How to Install SikuliX & how to order adderall online

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

Status: Open => Answered

raisa2k20 proposed the following answer:
https://sites.google.com/site/vipsituspokeronline2019/

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