Re: [Sikuli-driver] [Question #634971]: Sikuli hanging on 2nd run of a script

2017-06-08 Thread Ryan
Question #634971 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/634971

Ryan posted a new comment:
Hi RaiMan, thanks for the response.

I was using popFile() since it allowed me to drag a folder onto the text
entry field and it would paste the location of that folder so then I
could capture it via the return of that text input box.  I looked for a
solution for this for awhile and came up with popFile.  I am sure there
is another way - I will just have to find it.

The reason I am aiming for the drag n drop feature is that I am working
on testing a program that is continually updated and I need to have the
current version as well as a few other versions available to test with.
This is why I have moved away from hardcoding the  path (which I have
done before and the rest of my script worked fantastically!) and it also
started becoming a burden to manually change the paths in my scripts
when I needed to switch versions of the program I wanted to run the
Sikuli script against.

-- 
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 #642404]: Read lines from a file and pause for hotkey?

2017-06-08 Thread Julian Moorhouse
New question #642404 on Sikuli:
https://answers.launchpad.net/sikuli/+question/642404

I'd like to iterate through lines in from a file. Using each line to paste or 
type that line into an application.
I'd then like to wait for some interaction perhaps via a hotkey.

I've managed to find this example code to read through a file.
Also I've found how to handle a hotkey with a while loop

Putting it all together I have something like...

running = true
def runHotkey(event):
global running
running = false

Env.addHotkey(Key.NUM4,0, runHotkey)

theFile = file(r"F:\Office\Script\sikulitestfiles\Text.txt")
for line in theFile:
  while running:
  print line # print line in sikuli
  click("1330680438453.png"), type(line)
theFile.close()

Does this look ok / safe ?

Thanks in advance.

-- 
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 #642378]: Differentiating among identical icons and iterating among those icons

2017-06-08 Thread Narasimha Nithesh Thota
Question #642378 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/642378

Narasimha Nithesh Thota gave more information on the question:
The Icons are identical when you see but, the data i get after them on
the redirected page is different. I have mentioned Icon1 and Icon2 for
understanding.

-- 
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 #631145]: running sikuli script in a such a way that it starts at a particular time

2017-06-08 Thread Narasimha Nithesh Thota
Question #631145 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/631145

Status: Answered => Open

Narasimha Nithesh Thota is still having a problem:
Hi 
i am working on sikuli r930.  Is this the sikuli you are talking about?

-- 
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 #642378]: Differentiating among identical icons and iterating among those icons

2017-06-08 Thread Narasimha Nithesh Thota
New question #642378 on Sikuli:
https://answers.launchpad.net/sikuli/+question/642378

Hi

I have a use case where I have to differentiate among 'n' number of identical 
icons which are separated with equal spaces vertically and they are the  child 
nodes from a parent node. So by differentiating I mean,
1. I should be able to go to 'Icon1' and then perform an activity on on the 
Icon which directs me to some other page..
2.if I dont find my requirement in the redirected page ,then come back to the 
page of icons, get to the 'Icon2' which is right below Icon1,  and perform the 
first step and so on..
3.At any point of time if my requirement is met in the redirected page, I have 
to close the application.

The challenges I am seeing are:
* The Icons are identical, so sikuli is stuck in a loop ending up in taking 
action on the same icon repeatedly
*The n number of icons can vary and there is no proper pattern where we can 
make out that at a particular icon the success(The requirements meeting in 
redirected page) is seen. 

Questions I have in mind to implement this scenario:
*Can we get the count of the number of identical icons and then iterate among 
these icons to get?
* Can I get the space(number of pixels) between successive icons (or) space 
between the first icon and the last icon?


Please tell me how I can implement this particular scenario with sikuli r930

-- 
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 #402758]: all() function

2017-06-08 Thread Kamrun Nahar
Question #402758 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402758

Kamrun Nahar posted a new comment:
This bug still exists .
Just tried it and the result is S(Union)[0,0 1920x1080] E:Y, T:3.0

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

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


[Sikuli-driver] [Bug 1696708] [NEW] After modifying and saving some code in sikuli IDE for existing test, when Run button is clicked , IDE continues to use the older version of the code for execution.

2017-06-08 Thread yeswanthprabu
Public bug reported:

After modifying and saving some code in sikuli IDE for existing test,
when Run button is clicked , IDE continues to use the older version of
the code for execution.

The IDE has to be closed and reopened again to reflect the changes.

Other work around for this issue is triggering test via command prompt.

Team, can you please fix this issue.

** Affects: sikuli
 Importance: Undecided
 Status: New

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

Title:
  After modifying and saving some code in sikuli IDE for existing test,
  when Run button is clicked , IDE continues to use the older version of
  the code for execution.

Status in Sikuli:
  New

Bug description:
  After modifying and saving some code in sikuli IDE for existing test,
  when Run button is clicked , IDE continues to use the older version of
  the code for execution.

  The IDE has to be closed and reopened again to reflect the changes.

  Other work around for this issue is triggering test via command
  prompt.

  Team, can you please fix this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1696708/+subscriptions

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


[Sikuli-driver] [Bug 1696381] Re: type("i", KeyModifier.CTRL + KeyModifier.SHIFT) does not work on Mac

2017-06-08 Thread RaiMan
-- To start typing again in the IDE, I need to switch to some other app ...
This is a known problem and you have the workaround. Every time I have this 
problem on my own, I wish everything to hell, but I did not find a solution 
until now.

-- Actually, now it looks something related to keyboard focus on Mac ...
Ok, then the given name cannot be found in the process list 
(internally AppleScript is used: 
set found to first item of (processes whose name is "#APP#")
where #APP# is replaced with the given string)
In the ActivityMonitor you can try to find out in the process details, which 
file is opened to start your app.
Or you might try with AppleScript on your own, to find out the name of your app 
process.

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

Title:
  type("i", KeyModifier.CTRL + KeyModifier.SHIFT) does not work on Mac

Status in Sikuli:
  Opinion

Bug description:
  I have an application which handles "Control + Shift + i" keys combination.
  The application is NodeJS based and it is supported on Ubuntu, Windows and 
Mac.

  When I execute type("i", KeyModifier.SHIFT + KeyModifier.CTRL) on
  windows, it works well. But on Mac, it does not work.

  Before executing this line, I activate the window of my app by clicking it. 
  Also, I am able to use the keys manually in the aplication but not through 
sikulix script.

  My guess is that the issue is related to "Control" key handling on Mac.
  I verified that the type() function works with the SHIFT and Command key 
modifiers on Mac.

  
  SikuliX version: 1.1.1
  MacOS: OS X EI Caption 10.11.6 (MacBook Pro)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1696381/+subscriptions

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