[Sikuli-driver] [Question #649925]: compile sikuli scripts, run exes?

2017-07-18 Thread eduardobedoya
New question #649925 on Sikuli:
https://answers.launchpad.net/sikuli/+question/649925

Hi, long time don't use Sikuli, like 2 years now
does Sikuli now support compiling? I would like to compile my Sikuli scripts 
into a standallone executable exes, that could work on any windows 8.1 computer 
wo having sikuli installed. Also speed is key, I would like the scripts to run 
fast.

I read some stuff about that been available from Sikuli version 1.1.1 is that 
true???
I would like to script again in Sikuli, cuz all this time I've been using other 
paid packages with less powerfull img recognition tools, only due to 
compilation capabilities.
Thanks Advanced.

-- 
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 #649925]: compile sikuli scripts, run exes?

2017-07-18 Thread eduardobedoya
Question #649925 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/649925

Status: Answered => Open

eduardobedoya is still having a problem:
Thanx Masuo,
Yes I know all about the image recognition behaviour, in Sikuli, AHK, and 
others.
what I meant by fast, is a way to make multiple scripts to be loaded fast, I 
remember a pseudo way to call many scripts (by hotkey) from a single Sikuli 
script, but the scripts just took too much time only to load (like 1.5 
seconds), once loaded they run fast.
It really would be nice to have sikuli scripts to load fast as executables.
Is there any release date for Sikuli v2? any guess?
Thanks again, Thanks Advanced.

-- 
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 #649925]: compile sikuli scripts, run exes?

2017-07-20 Thread eduardobedoya
Question #649925 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/649925

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Thanks RaiMan, that solved my 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 #263456]: sikuli find same image in screen

2015-03-14 Thread eduardobedoya
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456

Status: Answered => Open

eduardobedoya is still having a problem:
Thanks RaiMan it worked fine.

just some issue
I said if the script could run faster because when running the script it is 
possible to watch the mouse moving toward the defined image, I mean the mouse 
does not move inmediatly, it move kinda fast but not inmediatly. Another macro 
recorders, move the mouse inmediatly so you can hardly see where is it moving. 
I mean the operation of looking the images and finding the last one is 
performed very fast, but then I got to wait to the mouse to move toward the 
last image, when it already knows where to go, it just does not go inmediatly.

Is any way to adjust that? so the mouse move inmediatly to its target
once its computed?

PD: just in case, is any way to restrict the search area to a given window? 
like google chrome,
thanks advanced,
thanks for all, this is the best forum I ever found!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #263493]: Sikuli click and drag from an imageA to the last count of equal imageB

2015-03-15 Thread eduardobedoya
Question #263493 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263493

Status: Open => Solved

eduardobedoya confirmed that the question is solved:
RaiMan answered this question in this link, thanks man!
https://answers.launchpad.net/sikuli/+question/263456

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #263456]: sikuli find same image in screen

2015-03-15 Thread eduardobedoya
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456

Status: Answered => Open

eduardobedoya is still having a problem:
Hi RaiMan,

I read the manual and I set
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
So now the delay of mouse is gone

I have read much about restrict search area
using reg.findAll but I quite don't understand how to get it to work
It seem when I use reg.findAll I'm suposed to put some code at the top of the 
script,
but I just dont know what, I have try typing...
aChrome = App("Chrome") # to be adapted for Windows
aChrome.focus()
SCR1 = aChrome.window().getScreen()
or
setROI()
but both give me error

I tried to read other questions like this one
https://answers.launchpad.net/sikuli/+question/173996
and try to apply to my case, but I still can not get it to work

How could I perform this search image task inside chrome (perhaps even
if is hided?)

Thanks Advanced RaiMan, sorry if I couldn't find my own answer, I did
solve the mouse delay. THank Again

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #263456]: sikuli find same image in screen

2015-03-25 Thread eduardobedoya
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Thanks RaiMan
Sorry for long delay, regex have been taking me quite distant from sikuli these 
days
What if I just have two opened windows
Chrome and Skype both maximized, chrome is already showing the webpage where I 
need to perform the image recognition, but Chrome usually get covered by the 
Skype window (loss focus), So.
is there a way to automatically tell sikuli to look for those image in my 
script only inside chrome window (cuz it has loss focus)
in other words is there a way to tell sikuli to gain focus on chrome window if 
when I run the script Skype is the focused window?
how could I achieve that?
Thanks for your support, hope I am not abusing,
anyway I will check it up with documentation ASAP
please give me a hint or link?
Thanks again Raiman.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #263456]: sikuli find same image in screen

2015-03-25 Thread eduardobedoya
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456

eduardobedoya 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, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
New question #264483 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264483

Hi
Im using Sikuli 1.0.1  installed in F drive in a windows8 64bit system.

I've been trying to run a sikuli script (scriptname.sikuli) directly from 
comand line without having to open sikuli-ide.jar before.
I have search on internet, but it looks like the way to do this differ 
depending on which version you are using
I have read this without any result:
http://doc.sikuli.org/faq/010-command-line.html?highlight=command%20line

I have try all these in command line without result

F:\APPS n DEVICES\2 MACRO RECORDERS\Sikuli\sikuli-ide.jar -r F:\APPS n 
DEVICES\2 MACRO RECORDERS\Sikul\scripts\lastone.sikuli

@start F:\APPS n DEVICES\2 MACRO RECORDERS\Sikuli\runIDE.cmd -r F:\APPS n 
DEVICES\2 MACRO RECORDERS\Sikul\scripts\lastone.sikuli

java -jar F:\APPS n DEVICES\2 MACRO RECORDERS\Sikuli\sikuli-ide.jar F:\APPS n 
DEVICES\2 MACRO RECORDERS\Sikul\scripts\lastone.sikuli

How can I do this?
THanks Advanced.


-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Hi RaiMan, please tell me, the pathnames of sikuli 1.0.1 or the pathname of 
sikuli scripts?
I have saved sikuli scripts inside the installation folder, they must be save 
in a different folder right???

Please tell me, what is the " string" that I have to type in command line for 
sikuli 1.0.1?
In the installation i enabled option 1 and 2, I have in the installation folder 
a sikuli-ide.jar and a runIDE.cmd

THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
both? sikuli installation path and sikuli scripts can't have any blanks 
(spaces)?
or just installation path must avoid them?
or just script path must avoid them?
Can I save my scripts in the same folder that the installation?
THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
Hi RainMan,
I moved the installation folder in C:\ ..
@start C:\Sikuli\runIDE.cmd -r C:\Sikuli\scripts\lastone.sikuli
and it works,

I just got to questions, hope you could help me

1. is it ok if I got the sikuli script files located inside sikuli installation 
folder???
2. When I run the script via command line, when it ends performing the script, 
it lets the command line open. I would like to automatically close it, and 
return to whatever windows was previously open.

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
Hi RainMan,
I moved the installation folder in C:\ ..
and I runned
@start C:\Sikuli\runIDE.cmd -r C:\Sikuli\scripts\lastone.sikuli
and it works,

Just notice that I placed the sikuli scripts inside the installation path, and 
it worked,
but if I put the sikuli scripts in another path (with blanks), it does not 
work, I guess scripts path also have to avoid any blank, am I right?
Also when I run the script via command line, when it ends performing the 
script, it lets the command line open. So I edit the runIDE.cmd adding an exit 
in the last line, and it worked.

What I still wondering is (hope you can help me) when running the sikuli script 
from command line (no mather if it was *.sikuli or *.skl script file) it took 7 
sec to apply, while when running the same script from sikuli GUI itself it took 
3sec, isn't there any way to run scripts from command line faster, since I 
would like to repeat that script several times.
Does the Sikuli 1.1 have a better perform particulary running scripts from 
command line???

THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-01 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
despite runIDE.cmd works, it allways shows this error in the command
prompt

'Files' is not recognized as an internal or external command,
operable program or batch file.
+++ running this Java
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
+++ trying to start Sikuli IDE
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\Sikuli\sikuli-ide.jar
Apr 02, 2015 12:48:42 AM java.util.prefs.WindowsPreferences 
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x8002. Windows RegCreateKeyEx(...) returned error code 5.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Hi RainMan I tried to read the doc, but Im not quite sure I understand, which 
command line would have to use in my case
Im reading from this link 
http://sikulix-2014.readthedocs.org/en/latest/faq/010-command-line.html also, 
it this it
--run  (one or more entries seperated by space)
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Needs information => Open

eduardobedoya gave more information on the question:
about 1.1, I upgraded as you said.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
I solved everything about 1.0.1 only that is to slow when running scripts from 
command line, now Im trying with 1.1.0 since you said it could improve run 
times.
But I don't know how to run a script from command line in this 1.1.0 new 
version, which I have installed in C:\sikuli
How can I achieve that?
I have tried.
@start C:\Sikuli\runsikulix.cmd --run C:\Sikuli\scripts\lastone.sikuli
and this
--run :scripts\lastone.sikuli
with no result.
please help.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Thanks RainMan
I tried both,
C:\Sikuli\runsikulix.cmd -r C:\Sikuli\scripts\lastone.sikuli
java -jar C:\Sikuli\sikulix.jar -r C:\Sikuli\scripts\lastone.sikuli
the former took 6 seconds
the latter took 7 seconds


when you said
"I recommend to switch to version 1.1.0, since it allows, to run scripts from 
inside other scripts with the advantage:
- from command line: no startup delay for the second and following script"
you meaned running the second script from within other scripts, right??

But I would like to run different scripts not withing other scripts, just as 
fast as possible avoiding the startup delay.
I guess in my case the fastest way to run a sikuli script is to have the 
sikuli.jar open and run the script from there everytime needed without closing 
sikuli.jar interface, so the next time the same script is needed to run, I 
could avoid the startup delay, right?

when you said
"if you want to include script running into your own batch files"
you mean from the sikuli.jar GUI, right? I mean add a script to run from within 
another script???

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Thanks Raiman
that's it, I thought about it as a posibility before  I posted
Is there a chance that I can put all my scripts inside a main script, but 
execute each one with a different global hotkey
By global hotkey I mean like winamp that I can be running any other application 
and when I hit the trigger it will run sikuli.

How can I do that?
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Hi RainMan, ok I read your last link, abd tried this...

def openAppleMenu(event):
App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)
count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
mouseUp(Button.LEFT)

Env.addHotkey(Key.F2, KeyModifier.ALT+KeyModifier.CTRL, openAppleMenu)


I run this script and it shows in the Message box...
"[info] HotkeyManager: add Hotkey: CTRL+ALT F2 (113, 10)"


but it just doesn't work, whenever I prese the Alt Ctrl F2 keys nothing happen
What I am doing wrong???

THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Open

eduardobedoya is still having a problem:
Thanks Rainman,
pls tell me

how much processor power consume to keep the script running??
I would like to execute several browser tabs, and video stream at same time

I read your suggested more transparent script above, but I don't understand 
something
in my humble programming understanding, the # is most used to comment 
something, is the same in this script that you sugested above? so...
# openAppleMenu.sikuli
# main.sikuli
do they really have a meaning, I mean, do they call the actual sikuli scripts? 
(whitout needing to type their paths?) or are just merely comments.

my script is called... lastone.sikuli
I type OpenAppleMenu in my previous script because it was the name used in the 
docs
So, what does this exactly mean?
runScript("openAppleMenu")
is it running a sikuli script without having to type its path?
So my final script could be like this???

def openLastone(event):
runScript("Lastone")

Env.addHotkey(Key.F2, KeyModifier.ALT+KeyModifier.CTRL, openAppleMenu)

while True;
wait(1)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
also pls could you tell me how  I end Sikuli IDE now that I have let it 
running??
I can't see any sikuli window, or system try, I have search on taskbar 
processes whitout result,
How can I exit sikuli, or open its window again???
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Open => Solved

eduardobedoya confirmed that the question is solved:
def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

while True:
wait(1)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Solved => Open

eduardobedoya is still having a problem:
Hi Rainman

I tried this and it work...

def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

while True:
wait(1)


but what if I want to keep adding more scripts (each one with its own shortcut) 
inside this Main.script
I have try this, but it doesn't work.


def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

def openquestionmark(event):
runScript("C:\Sikuli\scripts\questionmark")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openquestionmark)

while True:
wait(1)


What Im doing wrong?
THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-02 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
Thanks Rainman,
pls tell me

how much processor power consume to keep the script running??
I would like to execute several browser tabs, and video stream at same time

I get it to work doing this...

def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

def openquestionmark(event):
runScript("C:\Sikuli\scripts\questionmark")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openquestionmark)

while True:
wait(2)


Is something wrong with this above???

I read your suggested more transparent script above, but I don't understand 
something
in my humble programming understanding, the # is most used to comment 
something, it is so in the script you sugested above? so...
# openAppleMenu.sikuli
# main.sikuli
They are just comments right? I mean, they don't call any actual sikuli 
scripts? or are any kinda LABEL - GOTO commands, right?

Thanks man

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-03 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Answered => Solved

eduardobedoya 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, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
New question #264563 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264563

Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make in Sikuli, I made I kinda pseudocode, hope you could help me. 
Thanks Advanced.

I have a little 330 x 600 px window inside chrome flash website, with this 
inside...

*  idxxx   somename
  idxxy   anothername
   idxxz   anewname
*  idxyx   yetsomename
   idxyy   yetanothername
*  idxyz   yetanewname
   idyxx   andyetsomename
*  idyyx   andyetanothername
   idyzx   andyetanewname

It is a table listing some names, with a scrollbar at the right side (cuz the 
list is larger than 9 names), also some names have at their left side a 
"StarImage" (represented by starsign) that are either orange or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count was 4 
(like in example table above), so ImageCount < "toclickonVar" then I will like 
to subtract ImageCount from "toclickonVar" and then press the PageDown key and 
the Down key (in order to scroll down), then count again how many "StarImages" 
are from top to bottom and click on the new(current) "toclickonVar" if it still 
is greater than the new(current) "StarImages" count, then repeat the processes 
described in this paragraph.

Is this possible, I thought about the easiest way to achive this, if you got 
better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window inside chrome flash website, with
this inside...

*  idxxx   somename
  idxxy   anothername
   idxxz   anewname
*  idxyx   yetsomename
   idxyy   yetanothername
*  idxyz   yetanewname
   idyxx   andyetsomename
*  idyyx   andyetanothername
   idyzx   andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

*  idxxx   somename
idxxy   anothername
idxxz   anewname
*  idxyx   yetsomename
idxyy   yetanothername
*  idxyz   yetanewname
idyxx   andyetsomename
*  idyyx   andyetanothername
idyzx   andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome
flash website, with this inside...

*  idxxx   somename
  idxxy   anothername
   idxxz   anewname
*  idxyx   yetsomename
   idxyy   yetanothername
*  idxyz   yetanewname
   idyxx   andyetsomename
*  idyyx   andyetanothername
   idyzx   andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* idxxx  somename
   idxxy  anothername
   idxxz  anewname
* idxyx  yetsomename
   idxyy  yetanothername
* idxyz  yetanewname
   idyxx  andyetsomename
* idyyx  andyetanothername
   idyzx  andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

*  idxxx   somename
  idxxy   anothername
   idxxz   anewname
*  idxyx   yetsomename
   idxyy   yetanothername
*  idxyz   yetanewname
   idyxx   andyetsomename
*  idyyx   andyetanothername
   idyzx   andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, both count as one. (eg. if there are 3 black and 3 
orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the processes described in this
paragraph.

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this is kinda paragraph is a
kindof loop)

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this paragraph is a kindof loop)

Is this possible, I thought about the easiest way to achive this, if you
got better idea is welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Can sikuli create variables?
Hi Rainman, hope I'm not abusing, this is the most difficult script I would 
ever dare to make, I made I kinda pseudocode, hope you could help me. Thanks 
Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this paragraph is a kindof loop)

Is this possible, I thought about the easiest way to achive this, if you
got better idea is very welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)
count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
mouseUp(Button.LEFT)

You help me with this code, but this only count one type of images, I
need to find two colors of StartImages, I either don't know how to click
on second, third, forth. Thanks Advanced again man.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Hi Rainman, hope I'm not abusing, this is the most difficult script I
would ever dare to make, I made I kinda pseudocode, hope you could help
me. Thanks Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this paragraph is a kindof loop)

Is this possible, I thought about the easiest way to achive this, if you
got better idea is very welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)
count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
mouseUp(Button.LEFT)

You help me with this code, but this only count one type of images, I
need to find two colors of StartImages, I either don't know how to click
on second, third, forth. Thanks Advanced again man.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Hi Rainman, hope I'm not abusing, this is the most difficult script I
would ever dare to make, I made a kinda pseudocode, hope you could help
me. Thanks Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this paragraph is a kindof loop)

Is this possible, I thought about the easiest way to achive this, if you
got better idea is very welcome. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)
count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
mouseUp(Button.LEFT)

You help me with this code, but this only count one type of images, I
need to find two colors of StartImages, I either don't know how to click
on second, third, forth. Thanks Advanced again man.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: Can Sikuli create variables?

2015-04-03 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Description changed to:
Hi Rainman, hope I'm not abusing, this is the most difficult script I
would ever dare to make, I made a kinda pseudocode, hope you could help
me. Thanks Advanced.

I have a little 330 x 600 px window (it can't be resized) inside chrome,
inside a flash website, with this inside...

* __ idxxx __ somename
idxxy __ anothername
idxxz __ anewname
* __ idxyx __ yetsomename
idxyy __ yetanothername
* __ idxyz __ yetanewname
idyxx __ andyetsomename
* __ idyyx __ andyetanothername
idyzx __ andyetanewname

It is a table listing some names, with a scrollbar at the right side
(cuz the list is larger than 9 names), also some names have at their
left side a "StarImage" (represented by starsign) that are either orange
or black.

I would like to count from top to bottom how many "StarImages" are no matter if 
they are orange or black, any of both colors count as one. (eg. if there are 3 
black and 3 orange, then are 6 in total)
Then I would like to create a variable named...
toclickonVar = 2
So if "toclickonVar = 2" I will click on the second "StarImage" found from top 
to bottom.

But if for example "toclickonVar = 6" and the total "StarImage" count
was 4 (like in example table above), so ImageCount < "toclickonVar" then
I will like to subtract ImageCount from "toclickonVar" and then press
the PageDown key and the Down key (in order to scroll down), then count
again how many "StarImages" are from top to bottom and click on the
new(current) "toclickonVar" if it still is greater than the new(current)
"StarImages" count, then repeat the steps described in this paragraph
from the beginning to the end. (I guess this paragraph is a kindof loop)

Is this possible? I thought about the easiest way to achive this, if you
got better idea pls correct me. So far I have write this...

App.focus("Chrome")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0
hover(Pattern("1427842411231.png").similar(0.94))
mouseDown(Button.LEFT)
count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
mouseUp(Button.LEFT)

You helped me with this code, but this only count one type of images, I
need to find two colors of StartImages, I either don't know how to click
on second, third, forth. Thanks Advanced again man.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-04 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Status: Answered => Open

eduardobedoya is still having a problem:
Hi Rainman, pls tell me what is the syntax for setting a variable?, what
about adding, substracting variables? any docs? thanks advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-05 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Status: Answered => Open

eduardobedoya is still having a problem:
thanks, currently reading,
"when you say, combine match list to on match list" how do I do that?

THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-05 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

eduardobedoya gave more information on the question:
thanks, currently reading Python link
Please tell me, when you say, "combine match list to on match list" how do I do 
that?

THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-06 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Solved => Open

eduardobedoya is still having a problem:
Hi RaiMan, I guess I could reopen this question, for a little issue very
related to it, instead of making a new question

As I said, I get several scripts to work by doing this...

def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

def openquestionmark(event):
runScript("C:\Sikuli\scripts\questionmark")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openquestionmark)

while True:
wait(2)

each one has its own hotkey
I execute one script at time, but usually the scripts are run in sequence
eg.
if I got: Script A, Script B, Script C, Script D, Script E, Script F
I usually run the script in sequence like AEBDCF, and FAECBD, and any in order

My problem is that if I send the ScriptA shorcut keys (lets say Shift+F1) and 
then whithout notice
send the ScriptE shorcut keys (Shift+F5) while ScriptA is still running, Sikuli 
gets stuck and does not perfom any script untill I Stop and rerun the 
MainScript.
Is there a way to tell Sikuli Main script to wait until a currently running def 
script is completed before launch any other def script?

I say this because Im using Sikuli to compensate a MacroRecorder lack of image 
recognition
So I autorun these scripts using a this macrorecorder, so that's why scripts 
run multiple time in sequence.

Hope this make sense, and have a fair solution.
Thanks Advanced. Rainman.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-06 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

eduardobedoya gave more information on the question:
Hi RaiMan, I guess I could reopen this question, for a little issue very
related to it, instead of making a new question

As I said, I get several scripts to work by doing this...

def openlastone(event):
runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openlastone)

def openquestionmark(event):
runScript("C:\Sikuli\scripts\questionmark")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, 
openquestionmark)

while True:
wait(2)

each one has its own hotkey, I execute one script at time, but usually the 
scripts are run in sequence, eg.
if I got: Script A, Script B, Script C, Script D, Script E, Script F
I usually run the script in sequence like AEBDCF, and FAECBD, and any in order

My problem is that if I send the ScriptA shorcut keys (lets say Shift+F1) and 
then whithout notice
send the ScriptE shorcut keys (Shift+F5) while ScriptA is still running, Sikuli 
gets stuck and does not perfom any script untill I Stop and rerun the 
MainScript.
Is there a way to tell Sikuli Main script to wait until a currently running def 
script is completed before launch any other def script?

I say this because Im using Sikuli to compensate a MacroRecorder lack of image 
recognition
So I autorun these scripts using this macrorecorder by sending their shotkeys, 
so that's why scripts are run multiple times in sequence.

Hope this make sense, and have a fair solution.
Thanks Advanced. Rainman.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-10 Thread eduardobedoya
New question #264958 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264958

I would like to count the number of same images that are horizontally parallel 
in the screen and sort them so the foremost left is 0 (first) and the foremost 
right is -1 (last)

right know Im using this


count = 0
try:
matches = list(findAll(Pattern("1425879837185.png").exact()))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one


but don't know why it does not click in the lastone

Thanks advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-10 Thread eduardobedoya
New question #264960 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264960

Is it possible to place a string (defined text) in the clipboard content with 
Sikuli?
I would like to place this text "job ended" inside clipboard content just 
before a script ends.
I think changing clipboard is faster than displaying a message when job is 
ended, cuz the former doesn't cover the screen, which is usefull since there 
are other sikuli jobs that run after the firstone ends.
Is it possible? Any workaround?
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264483]: 1.0.1 how to run sikuli script from command line

2015-04-09 Thread eduardobedoya
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

Status: Open => Solved

eduardobedoya 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, which 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 #264960]: How could I place a string into clipboard?

2015-04-10 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
For example, I have a script that count the number of images found in
the screen, I would like to store the result into the clipboard, just
before end the script. Is it possible with sikuli?? thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-10 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
For example, I have a script that count the number of images found in
the screen, I would like to store the result (found: 18) into the
clipboard, just before end the script. Is it possible with sikuli??
thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
THanks Raiman,

This is my script

count = 0
try:
matches = list(findAll("1428702277851.png"))
count = len(matches)
except FindFailed:
pass #nothing to do
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one

I would like to put "count" (I mean the variable number) into clipboard, is 
this possible
I tried:
App.setClipboard("count") it shows literally count as text
App.setClipboard(count) it shows [error] TypeError ( setClipboard(): 1st arg 
can't be coerced to String )
App.setClipboard("$count$") also literally

How can I do this, which part of sikuli 1.1 talks about this? is this possible??
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

Status: Answered => Open

eduardobedoya is still having a problem:
THanks Raiman,

This is my script

count = 0
try:
matches = list(findAll("1428702277851.png"))
count = len(matches)
except FindFailed:
pass #nothing to do 
print "found:", count

if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one


I would like to put "count" into clipboard, is this possible
I tried:
App.setClipboard("count")
App.setClipboard(count)
App.setClipboard("$count$")
with no result.
How can I do this, which part of sikuli 1.1 talks about this? is this possible??
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
THanks Raiman,
This is my script

count = 0
try:
matches = list(findAll("1428702277851.png"))
count = len(matches)
except FindFailed:
pass #nothing to do
print "found:", count

I would like to put "count" (the variable number) into clipboard, is
this possible I've tried:

App.setClipboard("count") it shows literally count as text
App.setClipboard(count) it shows [error] TypeError ( setClipboard(): 1st arg 
can't be coerced to String )
App.setClipboard("$count$") also literally
App.setClipboard(", count") also literally
App.setClipboard(, count) it shows [error] SyntaxError ( "no viable alternative 
at input ','", )

How can I do this, which part of sikuli 1.1 talks about this? is this possible??
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Thanks RainMan

so is it possible to set
sortedMatches = sorted(matches, key=lambda m:m.yx)
to sort matches from top left, to bottom right?
so the result will be sorted in this order...
1. Top row left
2. Top row right
3. Middle row right
4. Bottom row left

I tried searching in dis docs,
http://sikulix-2014.readthedocs.org/en/latest/region.html

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

Status: Answered => Open

eduardobedoya is still having a problem:
Thanks RainMan

so is it possible to set
sortedMatches = sorted(matches, key=lambda m:m.yx)
to sort matches from top left, to bottom right?
like...
1. Top row left
2. Top row right
3. Middle row right
4. Bottom row left

I tried searching in dis docs,
http://sikulix-2014.readthedocs.org/en/latest/region.html

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Thanks RainMan

so is it possible to set
sortedMatches = sorted(matches, key=lambda m:m.yx)
to sort matches from top left, to bottom right?
so the result will be sorted in this order...
1. Top row left
2. Top row right
3. Middle row right
4. Bottom row left

I tried searching in this docs,
http://sikulix-2014.readthedocs.org/en/latest/region.html

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Thanks RainMan

so is it possible to set
sortedMatches = sorted(matches, key=lambda m:m.yx)
to sort matches from top left, to bottom right?
so if the images are inside a table's cells, the result will be sorted in this 
order...
1. Top row left image
2. Top row right image
3. Middle row right image
4. Bottom row left image

Is this possible? How can I achieve this?

I tried searching in this docs,
http://sikulix-2014.readthedocs.org/en/latest/region.html

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Thanks RainMan

so I guess 
sortedMatches = sorted(matches, key=lambda m:m.y)
sorts the matches from top left, to bottom right, am I right?
so if the images are inside a table's cells, the result will be sorted in this 
order...
1. Top row left image
2. Top row right image
3. Middle row right image
4. Bottom row left image

am I right? How can I achieve this?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question in my first comment
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya posted a new comment:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question in my first comment (Now I know how to edit it)
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya posted a new comment:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question in my first comment (Now I know how to edit it)
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial related to this "string to number 
stuff", I really would like to read about it?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question part in my first comment (Now I know how to edit it, sorry)
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial related to this "string to number 
stuff", I really would like to read about it?

For example
Lets say in my script after I count the images I sorted in x axis using
if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x)
hover(sortedMatches[-1]) # take the last one

what if I want to put the XY coordinates of last images in clipboard? I guess 
they are stored in "sortedMatches[-1]"
but I guess I'm missing some syntax in
countAsText = "%d" %(sortedMatches[-1])

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

Status: Solved => Open

eduardobedoya is still having a problem:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question in my first comment (Now I know how to edit it)
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial related to this "string to number 
stuff", I really would like to read about it?

For example
Lets say in my script after I count the images I sorted in x axis using
if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one

what if I want to put the XY coordinates of last images in clipboard? I guess 
they are stored in "sortedMatches[-1]"
but I guess I'm missing some syntax in
countAsText = "%d" %(sortedMatches[-1])

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string into clipboard?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

eduardobedoya gave more information on the question:
Yes sorry, I didn't know how to edit my question, I added the "count into 
clipboard" question part in my first comment (Now I know how to edit it, sorry)
Thanks both worked fine.

I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box"countAsText" but it didn't find anything

That is the right python tutorial, right?
Could you please suggest me some tutorial related to this "string to number 
stuff", I really would like to read about it?

For example
Lets say in my script after I count the images I sorted in x axis using
if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x)
hover(sortedMatches[-1]) # take the last one

what if I want to put the XY coordinates of the last image in clipboard? I 
guess they are stored in "sortedMatches[-1]"
but I guess I'm missing some syntax in
countAsText = "%d" %(sortedMatches[-1])

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264960]: How could I place a string, and the found image count and XY coordinates into the clipboard content with Sikuli?

2015-04-11 Thread eduardobedoya
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

Summary changed to:
How could I place a string, and the found image count and XY coordinates into 
the clipboard content with Sikuli?

Description changed to:
Is it possible to place a string (defined text), and the found image count and 
XY coordinates into the clipboard content with Sikuli?
I would like to place this text "job ended" inside clipboard content just 
before a script ends.
I think changing clipboard is faster than displaying a message when job is 
ended, cuz the former doesn't cover the screen, which is usefull since there 
are other sikuli jobs that run after the firstone ends.
Is it possible? Any workaround?
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

Status: Answered => Open

eduardobedoya is still having a problem:
what is the m.y value?
I mean if all images to find are exactly the same,
sorry Im not a programmer. thanks advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:

I mean if all images to find are exactly the same, how can I sort them so the 
first is the top left and the last is the top right,
sorry Im not a programmer, it is just not clear to me if this is a python or 
sikuli coding. What is the m.y value?
Right now Im googling python list handling but I can't find it
 thanks advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-11 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
I mean if all images to find are exactly the same, how can I sort them so the 
first is the top left and the last is the top right,
sorry Im not a programmer, it was just not clear to me if this was a python or 
sikuli coding. What is the m.y value?
Right now Im googling python list handling but I cant find m.y value.
 thanks advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-16 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

Status: Answered => Solved

eduardobedoya 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, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Status: Solved => Open

eduardobedoya is still having a problem:
Hi Raiman, I've read the python tutorial, and Im reading the sikuli one
I got the script to do what I was intending to, but it takes 6 seconds to 
complete
I guess I have some useless stuff cluttering the script, please could you take 
a look at it and tell me if there could be some fixes?
Thanks Advanced, this is my script...

App.focus("IrfanView")
Settings.DelayAfterDrag = 0.5
Settings.DelayBeforeDrop = 0.5
Settings.MoveMouseDelay = 0.5

WhtNumImg = 0
try:
matches = list(findAll(Pattern("1429333732294.png").exact()))
WhtNumImg = len(matches)
except FindFailed:
pass #nothing to do
if WhtNumImg > 0:
sortedMatchesA = sorted(matches, key=lambda m:m.y) # sorts top to bottom

BlkNumImg = 0
try:
matches = list(findAll(Pattern("1429334230870.png").exact()))
BlkNumImg = len(matches)
except FindFailed:
pass #nothing to do
if BlkNumImg > 0:
sortedMatchesB = sorted(matches, key=lambda m:m.y) # sorts top to bottom

WhtStartImg = 0
try:
matches = list(findAll(Pattern("1429334355293.png").exact()))
WhtStartImg = len(matches)
except FindFailed:
pass #nothing to do
if WhtStartImg > 0:
sortedMatchesC = sorted(matches, key=lambda m:m.y) # sorts top to bottom

BlkStartImg = 0
try:
matches = list(findAll(Pattern("1429334504677.png").exact()))
BlkStartImg = len(matches)
except FindFailed:
pass #nothing to do
if BlkStartImg > 0:
sortedMatchesD = sorted(matches, key=lambda m:m.y) # sorts top to bottom

# I first tried to apped all matches in this way below, but I it add the numers 
like  7,0,1,1
#AllImg=[]
#AllImg.append(WhtNumImg)
#AllImg.append(BlkNumImg)
#AllImg.append(WhtStartImg)
#AllImg.append(BlkStartImg)

# Instead combining all matches in this way below give the result 9 instead of 
7,0,1,1 (the same applied to AllsortedMatches)
AllImg = WhtNumImg + BlkNumImg + WhtStartImg + BlkStartImg


AllsortedMatches = sortedMatchesA + sortedMatchesC + sortedMatchesD


if AllImg > 0:
FinalsortedMatches = sorted(AllsortedMatches, key=lambda m:m.y) # sorts top 
to bottom


for index, item in enumerate(FinalsortedMatches):
hover (item)
print index, item

print "AllImg:", AllImg


I have a little bug in this script above:
The second image to find (sortedMatchesB) doesn't appear in my sample, and this 
happens, if I add sortedMatchesB to AllsortedMatches I get an error saying that 
sortedMatchesB doesn't exists. In my case all A B C D images may appear or may 
not, how can I add them even if they are 0 value, do I just create a variable 
sortedMatchesB = 0???

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

eduardobedoya gave more information on the question:
Hi Raiman, I've read the python tutorial, and Im currently reading the sikuli 
one
I got the script to do what I was intending to, but it takes 6 seconds to 
complete, I would like to double the speed.
I guess I have some useless stuff cluttering the script, please could you take 
a look at it and tell me if there could be some fixes?
Thanks Advanced, this is my script...

App.focus("IrfanView")
Settings.DelayAfterDrag = 0.5
Settings.DelayBeforeDrop = 0.5
Settings.MoveMouseDelay = 0.5

WhtNumImg = 0
try:
matches = list(findAll(Pattern("1429333732294.png").exact()))
WhtNumImg = len(matches)
except FindFailed:
pass #nothing to do
if WhtNumImg > 0:
sortedMatchesA = sorted(matches, key=lambda m:m.y) # sorts top to bottom

BlkNumImg = 0
try:
matches = list(findAll(Pattern("1429334230870.png").exact()))
BlkNumImg = len(matches)
except FindFailed:
pass #nothing to do
if BlkNumImg > 0:
sortedMatchesB = sorted(matches, key=lambda m:m.y) # sorts top to bottom

WhtStartImg = 0
try:
matches = list(findAll(Pattern("1429334355293.png").exact()))
WhtStartImg = len(matches)
except FindFailed:
pass #nothing to do
if WhtStartImg > 0:
sortedMatchesC = sorted(matches, key=lambda m:m.y) # sorts top to bottom

BlkStartImg = 0
try:
matches = list(findAll(Pattern("1429334504677.png").exact()))
BlkStartImg = len(matches)
except FindFailed:
pass #nothing to do
if BlkStartImg > 0:
sortedMatchesD = sorted(matches, key=lambda m:m.y) # sorts top to bottom

# I first tried to apped all matches in this way below, but I it added the 
numbers in this way... 7,0,1,1
#AllImg=[]
#AllImg.append(WhtNumImg)
#AllImg.append(BlkNumImg)
#AllImg.append(WhtStartImg)
#AllImg.append(BlkStartImg)

# Instead combining all matches in this way below give the result 9 instead of 
7,0,1,1 (the same applied to AllsortedMatches)
AllImg = WhtNumImg + BlkNumImg + WhtStartImg + BlkStartImg

AllsortedMatches = sortedMatchesA + sortedMatchesC + sortedMatchesD

if AllImg > 0:
FinalsortedMatches = sorted(AllsortedMatches, key=lambda m:m.y) # sorts top 
to bottom

for index, item in enumerate(FinalsortedMatches):
hover (item)
print index, item

print "AllImg:", AllImg

Beasides I still have a little bug in my script above:
The second image to find (sortedMatchesB) doesn't appear in my screen, and when 
this happens, if I add sortedMatchesB to AllsortedMatches I get an error saying 
that sortedMatchesB doesn't exists. In my screen every A, B, C, D image may 
appear or may not, how can I add them even if they are not found in screen, do 
I just create a variable sortedMatchesB = 0???
Could restricting the search area improve the script speed?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

Status: Answered => Open

eduardobedoya is still having a problem:
Yes Raiman, I upgraded into this so far, but still takes 6 seconds before any 
mouse move or hover.
Could restricting the search area improve the script speed? How could I 
increase speed??


App.focus("IrfanView")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0

try:
MatchesWNI = list(findAll(Pattern("1429333732294.png").exact()))
WhtNumImg = len(MatchesWNI)
except FindFailed:
WhtNumImg = 0
MatchesWNI = []

try:
MatchesBNI = list(findAll(Pattern("1429334230870.png").exact()))
BlkNumImg = len(MatchesBNI)
except FindFailed:
BlkNumImg = 0
MatchesBNI = []

try:
MatchesWSI = list(findAll(Pattern("1429334355293.png").exact()))
WhtStartImg = len(MatchesWSI)
except FindFailed:
WhtStartImg = 0
MatchesWSI = []

try:
MatchesBSI = list(findAll(Pattern("1429334504677.png").exact()))
BlkStartImg = len(MatchesBSI)
except FindFailed:
BlkStartImg = 0
MatchesBSI = []

#This below combine the Imgs giving this result [7, 0, 1, 1]
#AllImg=[]
#AllImg.append(WhtNumImg)
#AllImg.append(BlkNumImg)
#AllImg.append(WhtStartImg)
#AllImg.append(BlkStartImg)

#This below combine all Imgs giving this result [7, 0, 1, 1]
#AllImg = [WhtNumImg] + [BlkNumImg] + [WhtStartImg] + [BlkStartImg]

#This below combine all Imgs giving this result 9
AllImg = WhtNumImg + BlkNumImg + WhtStartImg + BlkStartImg

#This below combine all Matches giving a result that can't be sorted (I dunno 
why)
#AllMatches = [MatchesWNI] + [MatchesBNI] + [MatchesWSI] + [MatchesBSI]

#This below combine all Matches giving a result that can be sorted
AllMatches = MatchesWNI + MatchesBNI + MatchesWSI + MatchesBSI

if AllImg > 0:
SortedAllMatches = sorted(AllMatches, key=lambda m:m.y) # sorts top to 
bottom


#for item in FinalsortedMatches:
#hover(item)
for index, item in enumerate(SortedAllMatches):
hover (item)
print index, item

print "AllImg:", AllImg


Thanks Advanced.
Please tell me how would you improve this code.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

eduardobedoya gave more information on the question:
Yes Raiman, Thanks for the "list.extend(list)" thing
Sikuli IDLE warn me about the need to use an empty list "list=[]" xD
So I fixed the script, but it still takes 6 seconds before any mouse move or 
hover.
Could restricting the search area improve the script speed? How could I 
increase speed??

This is my Script:

App.focus("IrfanView")
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrop = 0
Settings.MoveMouseDelay = 0

try:
MatchesWNI = list(findAll(Pattern("1429333732294.png").exact()))
WhtNumImg = len(MatchesWNI)
except FindFailed:
WhtNumImg = 0
MatchesWNI = []

try:
MatchesBNI = list(findAll(Pattern("1429334230870.png").exact()))
BlkNumImg = len(MatchesBNI)
except FindFailed:
BlkNumImg = 0
MatchesBNI = []

try:
MatchesWSI = list(findAll(Pattern("1429334355293.png").exact()))
WhtStartImg = len(MatchesWSI)
except FindFailed:
WhtStartImg = 0
MatchesWSI = []

try:
MatchesBSI = list(findAll(Pattern("1429334504677.png").exact()))
BlkStartImg = len(MatchesBSI)
except FindFailed:
BlkStartImg = 0
MatchesBSI = []

#This below combine the Imgs giving this result [7, 0, 1, 1]
#AllImg=[]
#AllImg.append(WhtNumImg)
#AllImg.append(BlkNumImg)
#AllImg.append(WhtStartImg)
#AllImg.append(BlkStartImg)

#This below combine all Imgs giving this result [7, 0, 1, 1]
#AllImg = [WhtNumImg] + [BlkNumImg] + [WhtStartImg] + [BlkStartImg]

#This below combine all Imgs giving this result 9
AllImg = WhtNumImg + BlkNumImg + WhtStartImg + BlkStartImg

#This below combine all Matches giving a result that can be sorted
AllMatches=[]
AllMatches.extend(MatchesWNI)
AllMatches.extend(MatchesBNI)
AllMatches.extend(MatchesWSI)
AllMatches.extend(MatchesBSI)

#This below combine all Matches giving a result that can be sorted
#AllMatches = MatchesWNI + MatchesBNI + MatchesWSI + MatchesBSI

if AllImg > 0:
SortedAllMatches = sorted(AllMatches, key=lambda m:m.y) # sorts top to 
bottom


#for item in FinalsortedMatches:
#hover(item)

for index, item in enumerate(SortedAllMatches):
hover (item)
print index, item

print "AllImg:", AllImg

Thanks Advanced.
Please tell is there is something else I could do to improve speed in this code.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

eduardobedoya gave more information on the question:
I have notice that there are a two screens picture in the "Matching Preview" of 
the "Pattern Settings"
I would like to set all my scripts to always operate only in the main monitor,
so is there a way to show only the main screen picture in the "Pattern 
Settings"??
What happens if Im creating my scripts in a system with two screens?, but I 
need to execute them in another system with just one screen? or another screen 
resolution?
In fact, in this specific case I would like to perform the findAll inside a 
small area of the main screen
please do you have any links to read? Sorry if this is out of topic, should I 
create a new question?
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-18 Thread eduardobedoya
New question #265446 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265446

I have notice that there are a two screens picture in the "Matching Preview" of 
the "Pattern Settings"
What if I would like to set all my scripts to always operate only in the main 
monitor,
Is there a way to show only the main screen picture in the "Pattern Settings"?
What happens if Im creating my scripts in a system with two screens?, but I 
need to execute them in another system with just one screen? or another screen 
resolution?
How to perform the findAll inside a small area of the main screen only?
please do you have any links to read?
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264563]: How to get a final sorted match list after more than one findAll()

2015-04-18 Thread eduardobedoya
Question #264563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264563

eduardobedoya gave more information on the question:
Hi Raiman
This job performance gave me several doubts about finding images inside 
restricted areas, I asked in this link 
https://answers.launchpad.net/sikuli/+question/265446
I guessed I should post them in a new question in order to avoid out of topic.
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Answered => Solved

eduardobedoya 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, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

eduardobedoya posted a new comment:
Thanks RaiMan,
I just have a doubt,
if Sikuli by default only search in the main monitor in multimonitor system
why it keeps a screencapture of all monitors in the "Matching Preview" of the 
"Pattern Settings"???

is that because Sikuli search on the secondary monitor if you specify it?
Thanks advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Solved => Open

eduardobedoya is still having a problem:
If my script beginn with
App.focus("Chrome")
and then I set a region,
it look  in that region only inside chrome right?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Answered => Open

eduardobedoya is still having a problem:
If my script beginn with App.focus("IrfanView") and then I set a region,
It doesn't matter wich line comes first in the script right? (the 
App.focus("IrfanView") or the reg = Region())
It worked fine, I doubled the speed
currently Im setting my region this way
reg = Region(x, y, w, h)
and then in every match
matches = list(reg.findAll(image))
But I really would like to search only inside "IrfanView" app
I have notice that, if "IrfanView" is minimized the script runs whitout call it 
back, I would like to avoid that even when I use App.focus("IrfanView") at the 
beginning
How should I write the script in order to it to make sure "IrfanView" windows 
is in focus, is not minized, before set the region

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Answered => Solved

eduardobedoya 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, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Solved => Open

eduardobedoya is still having a problem:
Hi RaiMan
Currently I am reading this Sikuli doc (its very extensive)
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region
but I still can't uderstand what you meant by this...
EB--- If my script beginn with
App.focus("Chrome")
and then I set a region,
it look in that region only inside chrome right?
RM--- that depends on how you set the region.

Could you please provide  some example or a sentence to search for in the docs?
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-19 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

eduardobedoya gave more information on the question:
Hi RaiMan
Currently I am reading this Sikuli doc (its very extensive)
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region
but I still can't uderstand what you meant by this...
EB--- If my script beginn with
App.focus("Chrome")
and then I set a region,
it look in that region only inside chrome right?
RM--- that depends on how you set the region.

Could you please provide some example or operator name, so I can search for it 
in the docs?
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265487]: Run Sikuli Script in a PC without monitor connected

2015-04-19 Thread eduardobedoya
New question #265487 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265487

Hi
What happens if I run a Sikuli Script in another PC, but this PC has not any 
monitor connect to it, does the  "find image" still work?? Lets say for example 
I have two PCS connected to the same monitor via a VGA or HDMI splitter, could 
this job still work in the PC that has its monitor switched off temporarily?

Thanks Advanced.


-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-19 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

Status: Solved => Open

eduardobedoya is still having a problem:
Hi RaiMan, yes Im using version 1.1.0
Currently Im reading this...
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region  and I found 
this below...
"Get evenly sized parts of a Region (as rows, columns and cells based on a 
raster)"
So I return to this question.

Yes my grid is very even, (all matches in one row have the same m.y values)
I understand everything you comment above,
I even understand this...
-- say you have k elements per row, then the rightmost element in the n-th row 
is:
sortedMatches[n*k + k - 1] _(take me a while xD)

But I still can't understand this...
-- sortedMatches = sorted(matches, key=lambda m: m.y * 1 + m.x)
why 1? is this similar to the previous formula???

Does version1.1.0 replace these two formulas above???

Thanks Advanced.

You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-19 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Hi RaiMan, yes Im using version 1.1.0
Currently Im reading this...
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region and I found 
this below...
"Get evenly sized parts of a Region (as rows, columns and cells based on a 
raster)"
So I return to this question.

Yes my grid is very even, (all matches in one row have the same m.y values)
I understand everything you comment above,
I even understand this...
-- say you have k elements per row, then the rightmost element in the n-th row 
is:
sortedMatches[n*k + k - 1] _(it took me a while xD)

But I still can't understand this...
-- sortedMatches = sorted(matches, key=lambda m: m.y * 1 + m.x)
why 1? is this similar to the previous formula???

Does version1.1.0 replace these two formulas above???

Thanks Advanced.

You received this question notification because you are a member of
Sikuli Drivers, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-19 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

eduardobedoya gave more information on the question:
Hi RaiMan, yes Im using version 1.1.0
Currently Im reading this...
http://sikulix-2014.readthedocs.org/en/latest/region.html#Region and I found 
this below...
"Get evenly sized parts of a Region (as rows, columns and cells based on a 
raster)"
So I return to this question.

Yes my grid is very even, (all matches in one row have the same m.y values)
I understand everything you comment above,
I even understand this...
-- say you have k elements per row, then the rightmost element in the n-th row 
is:
sortedMatches[n*k + k - 1] _(it took me a while xD)

But I still can't understand this...
-- sortedMatches = sorted(matches, key=lambda m: m.y * 1 + m.x)
why 1? is this similar to the previous formula???

Does version1.1.0 new grid features override the necessity of these two
formulas above???

Thanks Advanced.

You received this question notification because you are a member of
Sikuli Drivers, which 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 #265505]: Is there a way to convert the clipboard content into list in sikuli?

2015-04-20 Thread eduardobedoya
New question #265505 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265505

Hi,
I have manage to substract List B from List A but keeping the List A index, 
using this...

a = ["car", "plane", "truck", "motorcycle", "jet", "train"]
b = ["plane", "jet"]
c = [i for i, v in enumerate(a) if v not in b]

print (c) # this give the result [0,2,3,5]

In order to latter use it in...
hover(sortedMatches[c[0]]
hover(sortedMatches[c[1]]
to hover the mouse on a given item (hope Im not braking any syntax rule)

I have the list "b" preset in python,
My problem is that the list "a" come from clipboard content (always is 
different).

Is there a way to convert the clipboard content into list "a" in the run 
(interactively)???

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265505]: Is there a way to convert the clipboard content into list in sikuli?

2015-04-20 Thread eduardobedoya
Question #265505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265505

Description changed to:
Hi,
I have manage to substract List B from List A but keeping the List A index, 
using this...

a = ["car", "plane", "truck", "motorcycle", "jet", "train"]
b = ["plane", "jet"]
c = [i for i, v in enumerate(a) if v not in b]

print (c) # this give the result [0,2,3,5]

In order to latter use it in...
hover(sortedMatches[c[0]]
hover(sortedMatches[c[1]]
to hover the mouse on a given item skipping the repeated ones (hope Im not 
braking any syntax rule)

I have the list "b" preset in python,
My problem is that the list "a" come from clipboard content (always is 
different).

Is there a way to convert the clipboard content into list "a" in the run
(interactively)???

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265505]: Is there a way to convert the clipboard content into list in sikuli?

2015-04-20 Thread eduardobedoya
Question #265505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265505

Description changed to:
Hi,
I have manage to substract List B from List A but keeping the List A index, 
using this...

a = ["car", "plane", "truck", "motorcycle", "jet", "train"]
b = ["plane", "jet"]
c = [i for i, v in enumerate(a) if v not in b]

print (c) # this give the result [0,2,3,5]

In order to latter use it in...
hover(sortedMatches[c[0]]
hover(sortedMatches[c[1]]
to hover the mouse on a given item skipping the repeated ones (hope Im not 
braking any syntax rule)

I have the list "b" preset in python,
My problem is that the list "a" come from clipboard content (always is 
different).

Is there a way to convert the clipboard content into list "a" in the run
(interactively) so that I can have the same result???

I have tried
a = Env.getClipboard()
a = App.getClipboard();
both gave me this result...
[0, 1, 2, 3, 4, ... 51, 52, 53, 54]

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265505]: Is there a way to convert the clipboard content into list in sikuli?

2015-04-20 Thread eduardobedoya
Question #265505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265505

Status: Answered => Open

eduardobedoya is still having a problem:
Hi RaiMan
I fixed my script this way, but Im having the same result [0, 1, 2, 3, 4, ... 
51, 52, 53, 54]

aAsList = eval(a)
b = ["plane", "jet"]
c = [i for i, v in enumerate(a) if v not in b]
print(c)

The result should be [0, 2, 3, 5]

am I doing something wrong???
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265505]: Is there a way to convert the clipboard content into list in sikuli?

2015-04-20 Thread eduardobedoya
Question #265505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265505

Status: Open => Solved

eduardobedoya 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, which 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 #264958]: Count number of same images that are horizontally parallel in the screen

2015-04-20 Thread eduardobedoya
Question #264958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264958

Status: Answered => Open

eduardobedoya is still having a problem:
oh I see,
Shift has a meaning in programming
THanks
I will work on this ASAP.

But what about 1.1.0 new grid features,
you can divide the screen area into even rows and columns
does that replace both codes in your comment?
in which cases is better to use each approach?

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265446]: "Matching Preview" of the "Pattern Settings"

2015-04-20 Thread eduardobedoya
Question #265446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265446

Status: Answered => Solved

eduardobedoya 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, which 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 #265619]: Is it possible to import 'Levenshtein distance between two given strings' in order to detect mispelled words in sikuli?

2015-04-21 Thread eduardobedoya
New question #265619 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265619

Hi
I would like to detect mispelled words in strings
So, Is it possible to import Levenshtein distance between two given strings 
implemented in JavaScript and usable as a Node.js module?
Python also has its own Levenshtein module called 'fuzzywuzzy' module
Is there a way to import any of both in Sikuli??

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265685]: Is there wayt to findAll from bmp file? or from image copied to clipboard?

2015-04-22 Thread eduardobedoya
New question #265685 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265685

Hi
Is there wayt to findAll (find 9 equal images) from bmp file (whithout open 
it)? or from image copied to clipboard?
if it is possible, how can I hover throught its items, how sikuli manage the 
coordinates, relative to the file widht heigh? what is the syntax?
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265685]: Is there wayt to findAll from bmp file? or from image copied to clipboard?

2015-04-22 Thread eduardobedoya
Question #265685 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265685

Description changed to:
Hi
Is there way to findAll (find 9 equal images) from bmp file (whithout open it)? 
or from image copied to clipboard?
if it is possible, how can I hover throught all 9 equal images, how sikuli 
manage the coordinates, relative to the file widht heigh? what is the syntax?
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265685]: Is there wayt to findAll from bmp file? or from image copied to clipboard?

2015-04-22 Thread eduardobedoya
Question #265685 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265685

Description changed to:
Hi
Is there way to findAll (find 9 equal images) from bmp file (whithout open it)? 
or from image copied to clipboard?
if it is possible, how can I hover throught all 9 equal images, how sikuli 
manage the coordinates, relative to the file widht heigh? what is the syntax?
Is this what a should try?
http://sikulix-2014.readthedocs.org/en/latest/finder.html#Finder
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265685]: Is there wayt to findAll from bmp file? or from image copied to clipboard?

2015-04-22 Thread eduardobedoya
Question #265685 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265685

Description changed to:
Hi
Is there way to findAll (find 9 equal images) from bmp file (whithout open it)? 
or from image copied to clipboard?
if it is possible, how can I hover throught all 9 equal images, how sikuli 
manage the coordinates, relative to the file widht heigh? what is the syntax?
Is this what I should try?
http://sikulix-2014.readthedocs.org/en/latest/finder.html#Finder
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #265685]: Is there wayt to findAll from bmp file? or from image copied to clipboard?

2015-04-22 Thread eduardobedoya
Question #265685 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265685

eduardobedoya gave more information on the question:
Thanks RaiMan,
but Im afraid to say that this time, it didn't quite get it
Let's say I have a full screen capture of my web browser, a 1920x1080 bmp file 
that has 9 redsquares images and I would like to find the coordinates of each 
of those images??? Can I use Finder to do this task??? Since bmp screen capture 
is a copy of what is currently in my web browser, and I can find each redsquare 
image coordinates using it, so then I could be abble to hover the same 
locations on my web broser???
Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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


  1   2   3   >