Re: [Sikuli-driver] [Question #663236]: Just a question for a beginner

2018-01-19 Thread James
Question #663236 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663236

James gave more information on the question:
EDIT: i fixed now the problem is that when the image appears it reacts
so slow that sometimes i fly through it and sikuli dont recognize box
how to make react faster

-- 
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 #663236]: Just a question for a beginner

2018-01-19 Thread RaiMan
Question #663236 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663236

Status: Open => Answered

RaiMan proposed the following answer:
read to understand:
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

... so only search in the area, where you expect the image to appear.

using
exists(image, 0)

does not wait for the image (standard 3 seconds), but comes back after
one search.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #663268]: Hotkeys not working accordingly

2018-01-19 Thread sami baig
New question #663268 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663268

I am using below VB script of excel to launch sikulix1.1.2 script with Hotkeys 
but I don't know why it is opening new workbook instead of calling 
"openChrome(event)" in sikuliX.

Excel VB script:
Private Declare Sub Sleep Lib "Kernel32" (ByVal ms As Long)
Sub Button1_Click()
SendKeys "^n"
Sleep 5000
End Sub

SikuliX script:
def openChrome(event):
click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.CTRL, openChrome)

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread RaiMan
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Open => Answered

RaiMan proposed the following answer:
I guess, this is because Excel has focus and ctrl+n is defined so in
Excel.

Use a hotkey combination, that is not used by excel:
ctrl + alt + n

for example (hope it is not used by excel ;-)

-- 
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 #663236]: Just a question for a beginner

2018-01-19 Thread James
Question #663236 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663236

Status: Answered => Open

James is still having a problem:
and last question is why i m getting this weird error from this line 
while True:
if exists(image, 0):
click()
wait(2.5)
else:
randomClick(imageMap)
wait(Pattern("image.png").similar(0.82), 5) - this line
click(Pattern("image.png").similar(0.83))

-- 
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 #663236]: Just a question for a beginner

2018-01-19 Thread RaiMan
Question #663236 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663236

Status: Open => Needs information

RaiMan requested more information:
what error?

-- 
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 #663232]: How to click on screen using coordinates

2018-01-19 Thread Max Musterman
Question #663232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663232

Max Musterman posted a new comment:
After going through some other user scripts, the correct command is "
click(Location(X,Y)) "

I don't understand why you didn't just answer my question. If you didn't
care about my question, fair enough, don't reply but why reply just to
give me misleading information? Are you keen on wasting both mine and
your time?

http://doc.sikuli.org/location.html
Does not contain the command click(Location(X,Y)) which was the one and only 
thing I asked about. 

Now you are probably going to think "It contains Location(x, y) so you
could have concluded that..." No. I can't I have no idea about
programming, I literally just tried to automate a few clicks while also
using images. I don't care to learn about programming or computer
science. The above command is literally all I wanted to know.

Anyways, my script works now, thanks for wasting our time.

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread sami baig
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Answered => Open

sami baig is still having a problem:
Still not working with  SendKeys "^%n" in excel :-|

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread RaiMan
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Open => Needs information

RaiMan requested more information:
supposing you now have

SikuliX script:
def openChrome(event):
click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)

is this the whole script?

It needs at least a waiting loop, so it stays active and listen for
hotkeys.

Does it work if you press the hotkey manually while it is active?

-- 
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 #663232]: How to click on screen using coordinates

2018-01-19 Thread RaiMan
Question #663232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663232

RaiMan proposed the following answer:
Good job.

... but I did not give you "misleading information" nor did I waste MY
time.

Since I am not your servant, I did not WASTE YOUR time, but only
expected, that you invest some time, what you finally did.

All the best.

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread sami baig
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Needs information => Open

sami baig gave more information on the question:
yes, below is my whole script and I've also tried it with waiting loop
seems like "script02" but still it's not working.

Script:
def openChrome(event):
click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)


script02(with waiting loop):
def openChrome(event):
wait(2)
click("1516306798475.png")

Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)

Excel VB script:
Private Declare Sub Sleep Lib "Kernel32" (ByVal ms As Long)
Sub Button1_Click()
SendKeys "^%n"
Sleep 5000

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread sami baig
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

sami baig gave more information on the question:
-Does it work if you press the hotkey manually while it is active?

It not working at all .

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread RaiMan
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Open => Answered

RaiMan proposed the following answer:
Script:
def openChrome(event):
click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)

# this is the waiting loop
while True:
wait(1)

if you start the script, it will run forever to be able to listen and
react.

In this setup the script has to be killed, if no longer needed.

-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread sami baig
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

Status: Answered => Solved

sami baig confirmed that the question is solved:
Thanks RaiMan, you solved my problem but please clear one more picture,
when I ran below script directly from SikuliX IDE, it is still running
and IDE not displaying yet, so tell me how should I stop it ?

Script:
def openChrome(event):
click("1516306798475.png")

Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)

while True:
wait(1)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #663281]: Faster reaction

2018-01-19 Thread Deividas
New question #663281 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663281

Hey I would like to know how to make a script react faster like now it ignores 
image sometimes because it disappears pretty fast


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #663283]: https://sites.google.com/a/mail.ccsf.edu/jumanji2welcometothejunglehindidubbedfullmovieiamyybj/

2018-01-19 Thread cherryl96
New question #663283 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663283

https://sites.google.com/a/mail.ccsf.edu/jumanji2welcometothejunglehindidubbedfullmovieiamyybj/
https://sites.google.com/a/mail.ccsf.edu/jumanji2welcometothejungle2017fullmovieinhindidubbed4k/
https://sites.google.com/a/mail.ccsf.edu/thorragnarokhindidubbedfullmovieiamyybj/
https://sites.google.com/a/mail.ccsf.edu/thorragnarok2017fullmovieinhindidubbedwfree4u/


-- 
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 #663268]: Hotkeys not working accordingly

2018-01-19 Thread RaiMan
Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

RaiMan posted a new comment:
as mentioned:
In this setup the script has to be killed, if no longer needed.

On Windows with the taskmanager.

But usually one adds a termination hotkey like this:

def stopRun(event):
global shouldRun
shouldrun = False

def openChrome(event):
click("1516306798475.png")

Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)
Env.addHotkey("x", KeyModifier.ALT + KeyModifier.CTRL, stopRun)

shouldRun = True
while shouldRun:
wait(1)

Now pressing ctrl-alt-x will end the script.

BTW: 
it makes sense, to run such scripts from a commandline, so you have the IDE in 
parallel available for other things.

-- 
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 #663281]: Faster reaction

2018-01-19 Thread RaiMan
Question #663281 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663281

Status: Open => Answered

RaiMan proposed the following answer:
make search region as small as possible around the place where you
expect the image to appear.

instead of
click(image)

use 
someRegion.click(image)

see:
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

-- 
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 #662599]: bigg-boss-11-5th-january-2018-full-episode-yybj-is-back

2018-01-19 Thread RaiMan
Question #662599 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662599

Status: Open => Invalid

RaiMan changed the question status:
spam

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #662607]: https://addons.mozilla.org/en-US/firefox/addon/jumanji-2-hindi-dubbed/

2018-01-19 Thread RaiMan
Question #662607 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662607

Status: Open => Invalid

RaiMan changed the question status:
spam

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #663283]: https://sites.google.com/a/mail.ccsf.edu/jumanji2welcometothejunglehindidubbedfullmovieiamyybj/

2018-01-19 Thread RaiMan
Question #663283 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663283

Status: Open => Invalid

RaiMan changed the question status:
spam

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp