[Sikuli-driver] [Bug 1872369] Re: IDE won't save source files on .sikuli folder

2020-04-12 Thread diego wanch
When quitting the IDE, a message pops up asking if i want to save all and exit.
Even if I click to save all, it won't save the code, onlye the images.

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

Title:
  IDE won't save source files on .sikuli folder

Status in Sikuli:
  New

Bug description:
  I'm running the IDE 2.0.3 on windows 10.
  Straight double clicking its .jar.

  At startup it says that neither Jython nor Jruby are installed, and I
  click OK to ignore it and use javascript only.

  Whenever I try to run my script for the first time, it asks me to save it. 
  If I choose as folder.sikuli, it appears it was saved, but no .js file is 
created on the folder. 
  Script name remains "untitled*", though.

  After that, I can click "save" multiple times. It appears to have worked, 
but, still, no javascript file is created on the folder.
  (Every image file included in the script is saved)

  I thought maybe it was saved somewhere else, but documentation
  (http://doc.sikuli.org/devs/system-design.html#the-structure-of-a
  -sikuli-source-executable-script-sikuli-skl) says the .sikuli folders
  will have all the images and the source code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1872369/+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 1872369] [NEW] IDE won't save source files on .sikuli folder

2020-04-12 Thread diego wanch
Public bug reported:

I'm running the IDE 2.0.3 on windows 10.
Straight double clicking its .jar.

At startup it says that neither Jython nor Jruby are installed, and I
click OK to ignore it and use javascript only.

Whenever I try to run my script for the first time, it asks me to save it. 
If I choose as folder.sikuli, it appears it was saved, but no .js file is 
created on the folder. 
Script name remains "untitled*", though.

After that, I can click "save" multiple times. It appears to have worked, but, 
still, no javascript file is created on the folder.
(Every image file included in the script is saved)

I thought maybe it was saved somewhere else, but documentation
(http://doc.sikuli.org/devs/system-design.html#the-structure-of-a
-sikuli-source-executable-script-sikuli-skl) says the .sikuli folders
will have all the images and the source code.

** 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/1872369

Title:
  IDE won't save source files on .sikuli folder

Status in Sikuli:
  New

Bug description:
  I'm running the IDE 2.0.3 on windows 10.
  Straight double clicking its .jar.

  At startup it says that neither Jython nor Jruby are installed, and I
  click OK to ignore it and use javascript only.

  Whenever I try to run my script for the first time, it asks me to save it. 
  If I choose as folder.sikuli, it appears it was saved, but no .js file is 
created on the folder. 
  Script name remains "untitled*", though.

  After that, I can click "save" multiple times. It appears to have worked, 
but, still, no javascript file is created on the folder.
  (Every image file included in the script is saved)

  I thought maybe it was saved somewhere else, but documentation
  (http://doc.sikuli.org/devs/system-design.html#the-structure-of-a
  -sikuli-source-executable-script-sikuli-skl) says the .sikuli folders
  will have all the images and the source code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1872369/+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] [Question #689848]: Is there a way of ensuring that only the required number of clicks are carried out?

2020-04-12 Thread Mark McGuinn
New question #689848 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689848


I have an app which is designed to automate certain aspects of an auction 
process. The app cycles through the auction catalog to gather specific 
information on each item available. The catalog has the following format:




 

[x]  [1]   [4][7]   [8]   
[10]...
   [2]   [5][9]   
[11].
   [3]   [6]
[12}

The catalog is made up of multiple columns and each column can have 1,2 or 3 
items  in it. If you click on an item it drills down to give more detailed 
information on the item. Once you click back from the detailed information you 
are placed back at position [x] ( a design feature over which I have absolutely 
no control).

I have designed the sub-routine below to cycle through the items and position 
the cursor at the first item in a column. The  and  are clickable and 
move 6 columns across the catalog. The issue I am having is that when I use the 
loop to cycle to the correct column a variable number of clicks is being 
executed which means  that the cursor is not landing in the correct place and 
sometimes duplicate information is loaded, other times if more clicks than 
needed are executed information is loaded out of sequence. I an

I have tried to include a test to ensure that the click is being executed, I 
have also put a wait in to see if that makes a difference, it doesn't. The UI 
is so fast that when there is no wait in you can't see the items scrolling 
across the screen. My question therefore is, is there a way to ensure only the 
correct number of clicks is being executed?

def goto_car_column(cols):
right_tabs = 0
right_jumps = 0
Debug.user("The count at cols is.."+str(cols))
wait(1)
store_car ="Holder"
quicksteps = (cols - 10) // 6
normalsteps = (cols - 10) % 6
while right_jumps <= quicksteps:
click(Location(1566, 239))
car_reg = (Region(1340,221,151,31))
read_car = car_reg.text()

if store_car == read_car:
click(Location(1566, 239))
wait(1)
else:
store_car = read_car

right_jumps +=1

while right_tabs <= normalsteps:
   
#type (Key.RIGHT)
click(Location(958, 380))
wait(1)
right_tabs +=1

One thing to note as well is that the debug statement shows the correct value 
being passed to the routine.

-- 
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 1872174] Re: [WIn10]Error when trying to run a script in SikulixIDE-2.0.4

2020-04-12 Thread RaiMan
If you want to simply run scripts in the IDE, the only sikulixidejar
and the Jython jar are needed.

If the Jython jar once is moved to the extensions folder, everything
should work.

Delete the script that you first used (the .sikuli folder should contain
a file js).

If you now start a new script in the IDE it should show (jython) in the
lower right corner.

** Changed in: sikuli
   Status: Opinion => Invalid

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

Title:
  [WIn10]Error when trying to run a script in SikulixIDE-2.0.4

Status in Sikuli:
  Invalid

Bug description:
  2.0.4-2020-03-14_08:01/Windows10.0/Java11(64)11.0.3+12-LTS

  Hi,

  I am trying to make a simple script using the IDE to evaluate the
  feasibility of this tool to my testing needs for interacting with a
  windows security pop-up.

  The script is this one:

  click("1586590464985.png")
  wait("win10search.png")
  type("calc"+Key.ENTER)

  When I run the script from the IDE using the Play button, I get the following 
error message:
  javax.script.ScriptException: ReferenceError: "Commands" is not defined in 
nashorn:mozilla_compat.js at line number 69

  If you need more info, please let me know what I need to do and how I
  can help.

  Regards,
  Petru

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