amitbanerjee28 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Feature ideas #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I've been working on sikuli-clj (the Clojure wrapper) lately, and I've come 
across a couple things that would be handy to have in sikuli-api:

1) Add Mouse click "duration" param
  - the click is too short to register for some apps, so being to specify something like 500 ms between the press and the release would be awesome
2) Add Mouse.move(ScreenLocation screenLoc)
  - it would be nice to be able to move the mouse independently of pressing/releasing buttons

I can implement these and send a pull request, if you agree that these belong 
in sikuli-api.

(BTW, is this the best place for discussing features/development?)

Oh, and thank you for such an awesome lib!

-Charles

Original issue reported on code.google.com by deleted....@hungrymachine.com on 22 Nov 2012 at 10:02

GoogleCodeExporter commented 8 years ago
Yeah, the lib is awesome!

That's my suggestion: since your library can select both WebElement and 
ImageElement, would be possible to have some convertor, trying to 1. capture 
WebElement fitting the image of ImageElement and thus getting it's properties 
like text if it has some text inside, or getting it's XPath. 2. capture 
ImageElement for renderd WebElement, specified by the xpath/cc selector/id and 
get some properties of ImageElement: OCR-processed text, size. 

Original comment by goeltsch...@gmail.com on 25 Nov 2012 at 2:32

GoogleCodeExporter commented 8 years ago
@Charles

Thanks for your positive feedback!
Please go ahead and implement the new mouse operations as you suggested. The 
new Java API is structured with the intention to make community contribution a 
lot easier than before. We really appreciate your willingness to contribute. 
Feel free to send me a pull request when you are ready.

Original comment by doubles...@gmail.com on 25 Nov 2012 at 8:44

GoogleCodeExporter commented 8 years ago
@goeltschaektschaek

Good idea about conversion. Thanks! Can you please give us a few concrete 
examples how you would use the conversion feature yourself, in Java pseudo 
code? 

Original comment by doubles...@gmail.com on 25 Nov 2012 at 8:47

GoogleCodeExporter commented 8 years ago
Please add returning value of this to Target interface set methods like:

I don't want to write:
Target t = new ImageTarget(image);
t.setMinScore(minScore);
region.find(t);

instead i would like to write:
region.find(new ImageTarget(image).setMinScore(minScore).set....);

Do 'return this' in all set methods where possible! Other classes also please 
in all the API!

Thanks

Original comment by miglecz on 9 Dec 2012 at 9:05

GoogleCodeExporter commented 8 years ago
Alright, I've been sorta swamped with work, but I'll see if I can get in a PR 
for my feature request by end of day.

Re comment 4:
I'll try to get a PR in for that too.

Original comment by deleted....@hungrymachine.com on 10 Dec 2012 at 4:20