Re: [Sikuli-driver] [Question #696723]: Exception in thread "Thread-45" (SX 2.05 on Java 8)

2021-04-23 Thread Mike Praeuner
Question #696723 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696723

Mike Praeuner posted a new comment:
I may have made a boneheaded mistake somewhere, been a few years since I
upgraded / re-worked my scripts

Troubleshooting now (between my dev machine and production machine)

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

___
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 #696723]: Exception in thread "Thread-45" (SX 2.05 on Java 8)

2021-04-23 Thread Mike Praeuner
Question #696723 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696723

Description changed to:
#My Script *(simple)
myScriptPath = "D:\\MikE\\Sikuli Scripts"
addImportPath(myScriptPath)
import ldFunc
#from ldFunc import * #v1.1.4 syntax
ldFunc.hunt()
#hunt()

---
sample of ldFunc

from sikuli import *
#(then a bunch of functions that are re-used between scripts)
#function hunt
def hunt():
for _ in range(5): #repeat function x times
if not exists("1619192157098.png", 3):
try: 
hover("1619192180052.png")
except FindFailed:
pass
if exists("1619192200722.png"):
print "scrolled to bottom - fail hunt"
home()
break
else:
wheel(WHEEL_DOWN, 1)  # Scrolls down x times
else:
print "scrolled to hunt" 
if exists("1619192157098.png"):
click("1619192157098.png")
sleep(2)
else:
sleep(0)
if exists("161919226.png"):
click("161919226.png")
print "---found Hunt"
clearPopsi()  
if exists("1619192266597.png", 3):
click("1619192266597.png")
else:
sleep(0)
clearPopsi()  
else:
print "hunt not ready"
home()
break


-Error-
Exception in thread "Thread-45" Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, 
in 
from Sikuli import *
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 94, 
in 
OEM_TESSERACT_ONLY = TextOCR.OcrEngineMode.TESSERACT_ONLY
AttributeError: type object 'TextOCR' has no attribute 'OcrEngineMode'

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

___
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 #696723]: Exception in thread "Thread-45" (SX 2.05 on Java 8)

2021-04-23 Thread Mike Praeuner
New question #696723 on SikuliX:
https://answers.launchpad.net/sikuli/+question/696723

#My Script *(simple)
myScriptPath = "D:\\MikE\\Sikuli Scripts"
addImportPath(myScriptPath)
import ldFunc
#from ldFunc import * #v1.1.4 syntax
ldFunc.hunt()
#hunt()
from sikuli import *
(then a bunch of functions that are re-used between scripts)
#function hunt
def hunt():
for _ in range(5): #repeat function x times
if not exists("1619192157098.png", 3):
try: 
hover("1619192180052.png")
except FindFailed:
pass
if exists("1619192200722.png"):
print "scrolled to bottom - fail hunt"
home()
break
else:
wheel(WHEEL_DOWN, 1)  # Scrolls down x times
else:
print "scrolled to hunt" 
if exists("1619192157098.png"):
click("1619192157098.png")
sleep(2)
else:
sleep(0)
if exists("161919226.png"):
click("161919226.png")
print "---found Hunt"
clearPopsi()  
if exists("1619192266597.png", 3):
click("1619192266597.png")
else:
sleep(0)
clearPopsi()  
else:
print "hunt not ready"
home()
break

--
The first line of ldFunc


-Error-
Exception in thread "Thread-45" Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, 
in 
from Sikuli import *
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 94, 
in 
OEM_TESSERACT_ONLY = TextOCR.OcrEngineMode.TESSERACT_ONLY
AttributeError: type object 'TextOCR' has no attribute 'OcrEngineMode'


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

___
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 #683910]: System Requirements for SikuliX

2019-09-13 Thread Mike Praeuner
New question #683910 on Sikuli:
https://answers.launchpad.net/sikuli/+question/683910

I found these system requirements (google) are they still current

- Windows XP and later, including Windows 8 and 10 (32-bit and 64-bit).
- Linux/UNIX systems, depending on what prerequisites are available (32-bit or 
64-bit).
- Mac OSX 10.5 and later (64-bit only).

Debating setting up a Windows XPx64 test system

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-13 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Status: Answered => Solved

Mike Praeuner 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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-12 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Mike Praeuner posted a new comment:
That got me going in the right direction!

I ended up using:
app = App.run('gnome-terminal -e "scrcpy -S" &')
#app.open(5)
#reg = app.window(0)

The two commented out lines were from my windows script - they create a error 
now
App vs App.run 

Because scrcpy and sikuli both use the terminal for output I needed to
spawn a separate terminal window

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S (I also created scrcpy.sh and tried to
execute the script, but I am missing something here as well -
./scrcpy.sh works from terminal / file manager gui but I am not having
any luck getting it to launch from the SikuliX script)

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I think other than a few adjustments (like the one above) the scripts
will transition very well - and let me use my main system again to its
full potential

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S

I also created scrcpy.sh and tried to execute the script, but I am missing 
something here as well
./scrcpy.sh works from terminal / file manager gui but I am not having any luck 
getting it to launch from the SikuliX script

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I think other than a few adjustments (like the one above) the scripts
will transition very well - and let me use my main system again to its
full potential

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md
I think other than a few adjustments (like the one below) the scripts will 
transition very well - and let me use my main system again to its full potential

>From Terminal I run scrcpy -S

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I also created scrcpy.sh and tried to execute the script, but I am missing 
something here as well
./scrcpy.sh works from terminal / file manager gui (Home directory) but I am 
not having any luck getting it to launch from the SikuliX script

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md
I think other than a few adjustments (like the one below) the scripts will 
transition very well - and let me use my main system again to its full potential

>From Terminal I run scrcpy -S

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I also created scrcpy.sh and tried to execute the script, but I am missing 
something here as well
./scrcpy.sh works from terminal / file manager gui but I am not having any luck 
getting it to launch from the SikuliX script

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S (I also created scrcpy.sh and tried to
execute the script, but I am missing something here as well - the .sh
works but I am not having any luck getting it to launch from the SikuliX
script)

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I think other than a few adjustments (like the one above) the scripts
will transition very well - and let me use my main system again to its
full potential

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S (I also created scrcpy.sh and tried to
execute the script, but I am missing something here as well)

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I think other than a few adjustments (like the one above) the scripts
will transition very well - and let me use my main system again to its
full potential

-- 
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 #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Summary changed to:
SikuliX on Linux Mint launch scrcpy from SikuliX script

-- 
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 #683826]: SikuliX on Linux Mint launch program from script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Description changed to:
So I decided to migrate my SikuliX and scripts from my main system (W10) to 
an older computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

I think other than a few adjustments (like the one above) the scripts
will transition very well - and let me use my main system again to its
full potential

-- 
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 #683826]: SikuliX on Linux Mint launch program from script

2019-09-10 Thread Mike Praeuner
Question #683826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683826

Summary changed to:
SikuliX on Linux Mint launch program from script

Description changed to:
So I decided to move my SikuliX from my main system (W10) to an older 
computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional (+ xdotool and 
wmctrl)
reference: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working
reference: https://github.com/Genymobile/scrcpy/blob/master/README.md

>From Terminal I run scrcpy -S

Using the app function in SikuliX what is the syntax to open this
program as part of the script?

-- 
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 #683826]: SikuliX on Linux Mint launch program

2019-09-10 Thread Mike Praeuner
New question #683826 on Sikuli:
https://answers.launchpad.net/sikuli/+question/683826

So I decided to move my SikuliX from my main system (W10) to an older 
computer (Linux Mint)
The Mint system has SikuliX latest version, with IDE functional
Because it is a older system instead of virtualization of Android I am using 
SCRCPY (with a tethered Android device) - which is installed via snap and 
working

>From Terminal I run scrcpy -S

Using the app function in SikuliX what is the syntax to open this program as 
part of the script?

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-27 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner 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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-27 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Status: Answered => Solved

Mike Praeuner confirmed that the question is solved:
Everything seems to be working, moved to primary library and running
main scripts now on latest version. Will flush logs tomorrow and see how
it goes - Thanks RaiMan!

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-27 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
Success!

D:\MikE\Sikuli_1.1.4_377>java -jar sikulix.jar -v -r "d:\mike\Sikuli 
Scripts\test3"
[DEBUG]startUp: IDE: Running: D:\MikE\Sikuli_1.1.4_377\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\Eris\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG]startUp: IDE: Classpath: 
D:\MikE\Sikuli_1.1.4_377\sikulix.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[48 debug] RunTime:temp folder ok: 
C:\Users\Eris\AppData\Local\Temp\Sikulix_439480427
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\Eris\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 1.1.4-SNAPSHOT-#377-2019-08-27_11:57 API
user.home: C:\Users\Eris
user.dir (work dir): D:\MikE\Sikuli_1.1.4_377
user.name: Eris
java.io.tmpdir: C:\Users\Eris\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.221-b11 class 52.0 arch 64
app data folder: C:\Users\Eris\AppData\Roaming\Sikulix
executing jar: D:\MikE\Sikuli_1.1.4_377\sikulix.jar
*** classpath dump sikulix
  0: file:/D:/MikE/Sikuli_1.1.4_377/sikulix.jar
  1: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jruby-complete-9.2.0.0.jar
  2: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
* show environment end
[1510 debug] Runner: added: Sikulix [] directory/sikulix
[1522 debug] Runner: added: Jython [py] text/jython
[1522 debug] Runner: added: Text [txt] text/text
[1523 debug] Runner: init: class 
org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[1795 debug] Runner: added: JavaScript [js] text/javascript
[1796 debug] Runner: added: Robot [robot] text/robot
[1797 debug] Runner: added: SikulixJar [jar] text/jar
[1797 debug] Runner: added: PackedSikulix [skl] text/skl
[1798 debug] Runner: added: PackedSikulix [zip] application/zip
[1799 debug] Runner: added: PowerShell [ps1] text/powershell
[1800 debug] Runner: added: NetworkRunner [] NET
[1806 debug] Runner: added: JRuby [rb] text/ruby
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[1814 debug] init user preferences
[1815 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[2061 debug] Runner: runscript: running script: d:\mike\Sikuli 
Scripts\test3.sikuli
[2063 debug] JythonRunner: starting initialization
[2063 debug] RunTime:resourceLocation: (class 
org.sikuli.script.support.RunTime) /Lib/sikuli
[2064 debug] RunTime:resourceList: having jar: 
jar:file:/D:/MikE/Sikuli_1.1.4_377/sikulix.jar!/Lib/sikuli
[4099 debug] RunTime:files exported: 7 from: Lib/sikuli to:
 C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli
[6851 debug] Jython: added as Jython::sys.path[0]:
C:\Users\Eris\AppData\Roaming\Sikulix\Lib\site-packages
[6854 debug] Jython: * sys.path
 0: C:\Users\Eris\AppData\Roaming\Sikulix\Lib\site-packages
 1: C:\Users\Eris\AppData\Roaming\Sikulix\Lib
 2: C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\Lib
 3: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar\Lib
[6870 debug] JythonRunner: ready: version 2.7.1
[debug] Jython: SikulixForJython: init: starting
[debug] Jython: added as Jython::sys.path[0]:
C:\Users\Eris\AppData\Roaming\Sikulix\Lib\site-packages
[debug] Jython: SikulixForJython: init: success
[debug] Jython: sikuli: Sikuli: starting init
[debug] Screen: initScreens: starting
[debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] Screen: Accessing: 
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] Screen: Monitor 0: (2560, 101) 1280 x 1024
[debug] Screen: Monitor 1: (-1280, 115) 1280 x 1024
[debug] Screen: ScreenDevice 2 has (0,0) --- will be primary Screen(0)
[debug] Screen: Monitor 2: (0, 0) 2560 x 1440
[debug] Mouse: init start
[debug] Mouse: init end
[debug] Screen: initScreens: multi monitor mouse check
[debug] Screen: *** checking: R[0,0 2560x1440]@S(0) center: (1280, 720) --- OK
[debug] Screen: *** checking: R[2560,101 1280x1024]@S(1) center: (3200, 613) 
--- OK
[debug] Screen: *** checking: R[-1280,115 1280x1024]@S(2) center: (-640, 627) 
--- OK
[debug] Screen: initScreens: ending
[debug] Jython: use as default region: R[0,0 2560x1440]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] Jython: use as default region: R[0,0 2560x1440]@S(0)
[debug] ImagePath: new BundlePath: D:\MikE\Sikuli Scripts\test3.sikuli
[debug] ( Ctrl )  TYPE "#ESC."
[debug]

Re: [Sikuli-driver] [Question #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-26 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
C:\Users\Eris\Desktop>java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

Just in case this helps with troubleshooting

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
Rest well, appreciate the assistance!

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
Microsoft Windows [Version 10.0.18362.295]
(c) 2019 Microsoft Corporation. All rights reserved.
eris@GIGANTOR-REBORN D:\MikE\Sikuli Scripts\test3.sikuli>dir
 Volume in drive D is MikE v2
 Volume Serial Number is D8C6-558F
 Directory of D:\MikE\Sikuli Scripts\test3.sikuli
08/25/2019  11:09 AM  .
08/25/2019  11:09 AM  ..
08/25/2019  11:09 AM 1,206 1566693881873.png
08/25/2019  11:09 AM   103 test3.py
   2 File(s)  1,309 bytes
   2 Dir(s)  1,187,027,746,816 bytes free
eris@GIGANTOR-REBORN D:\MikE\Sikuli Scripts\test3.sikuli>type test3.py
popup("Hello World!\nHave fun with Sikuli!")
type(Key.ESC, KeyModifier.CTRL)
click("1566693881873.png")
eris@GIGANTOR-REBORN D:\MikE\Sikuli Scripts\test3.sikuli>

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
I can post the contents of test3.py if you think that would help - I did
a clean install of W10 a few months ago and while build 288 is
working maybe I am missing a dependency or something else weird that is
affecting build 368?

I have not been able to run a script via command line on any build I
have tried after 288 (previous builds I changed the syntax slightly
between builds, but it was pretty straight forward to figure out)

...and yes I completely missed your #4 post until you re-posted it -
Thanks!

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
so I checked all (3)
D:\MikE\Sikuli Scripts\test3.sikuli 
# contains test3.py
# contains 1566693881873.png
D:\MikE\Sikuli Scripts\test2.sikuli
# contains test2.py
# contains 1566693881873.png
D:\MikE\Sikuli Scripts\test1.sikuli
# contains test1.py

some of my existing scripts also contained a *$py.class file and/or a *.html 
file
*=scriptName

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Description changed to:
Using the ~May Image of Sikuli X (#288) I have no issues - but I would
like to upgrade to the newest version (#368)  from:
https://raiman.github.io/SikuliX1/downloads.html to fix the JScreen
error discussed here: https://bugs.launchpad.net/sikuli/+bug/1835099

my Launch command options I have tried: (from here:
http://doc.sikuli.org/faq/010-command-line.html )

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1.sikuli"
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1"
#the command just closes - no error (returns to prompt) after about 3 seconds

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1.sikuli"
#opens IDE
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1"
#opens IDE

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" 
#Successfully launches the IDE *(most of the time, occasionally hangs on splash)

Test1 and Test2 both successfully run from the IDE (setup two different
ways to launch a program via visual and app method)

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
##the contents of test3 (only 3 lines, nothing extra)
popup("Hello World!\nHave fun with Sikuli!") #simple test 
type(Key.ESC, KeyModifier.CTRL) #Win Start Menu
click("1566693881873.png") #launch app

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
# updated results

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -v -r 
"D:\MikE\Sikuli Scripts\" Test1.sikuli"
[DEBUG]startUp: IDE: Running: D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\Eris\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG]startUp: IDE: Classpath: D:\MikE\Sikuli 1.1.4 August 
Archive\sikulix.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[45 debug] RunTime:temp folder ok: 
C:\Users\Eris\AppData\Local\Temp\Sikulix_1280334859
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\Eris\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 1.1.4-SNAPSHOT-#368-2019-08-20_12:33 API
user.home: C:\Users\Eris
user.dir (work dir): C:\Users\Eris\Desktop
user.name: Eris
java.io.tmpdir: C:\Users\Eris\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.221-b11 class 52.0 arch 64
app data folder: C:\Users\Eris\AppData\Roaming\Sikulix
executing jar: D:\MikE\Sikuli%201.1.4%20August%20Archive\sikulix.jar
*** classpath dump sikulix
  0: file:/D:/MikE/Sikuli%201.1.4%20August%20Archive/sikulix.jar
  1: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jruby-complete-9.2.0.0.jar
  2: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
* show environment end
[1318 debug] Runner: init: class 
org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[1321 debug] Runner: added: Sikulix [] directory/sikulix
[1606 debug] Runner: added: JavaScript [js] text/javascript
[1607 debug] Runner: added: PackedSikulix [zip] application/zip
[1608 debug] Runner: added: Text [txt] text/text
[1608 debug] Runner: added: PowerShell [ps1] text/powershell
[1609 debug] Runner: added: SikulixJar [jar] text/jar
[1610 debug] Runner: added: Robot [robot] text/robot
[1610 debug] Runner: added: PackedSikulix [skl] text/skl
[1623 debug] Runner: added: Jython [py] text/jython
[1628 debug] Runner: added: JRuby [rb] text/ruby
[1629 debug] Runner: added: NetworkRunner [] NET
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[1640 debug] init user preferences
[1642 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[1880 debug] Runner: runscript: new base directory: D:\MikE\Sikuli Scripts
[1880 debug] Runner: runscript: new base directory: D:\MikE\Sikuli 
Scripts\Test1.sikuli
[2189 debug] HotkeyManager: reset: removed all SikuliX hotkeys.
[2189 debug] HotkeyController: stopping hotkey provider
[2790 debug] RunTime:* final cleanup at System.exit() *
[2796 debug] FileManager: deleteFileOrFolder:
C:\Users\Eris\AppData\Local\Temp\Sikulix_1280334859

#simplified path / other variables to D:MikE\test\
java -jar "D:\MikE\test\sikulix.jar" -v -r "D:\MikE\test\" Test1.sikuli"
[DEBUG]startUp: IDE: Running: D:\MikE\test\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\Eris\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG]startUp: IDE: Classpath: 
D:\MikE\test\sikulix.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[47 debug] RunTime:temp folder ok: 
C:\Users\Eris\AppData\Local\Temp\Sikulix_1479862609
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\Eris\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 1.1.4-SNAPSHOT-#368-2019-08-20_12:33 API
user.home: C:\Users\Eris
user.dir (work dir): D:\MikE\test
user.name: Eris
java.io.tmpdir: C:\Users\Eris\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.221-b11 class 52.0 arch 64
app data folder: C:\Users\Eris\AppData\Roaming\Sikulix
executing jar: D:\MikE\test\sikulix.jar
*** classpath dump sikulix
  0: file:/D:/MikE/test/sikulix.jar
  1: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jruby-complete-9.2.0.0.jar
  2: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpa

Re: [Sikuli-driver] [Question #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-25 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Mike Praeuner posted a new comment:
#Here is the output from -v
#I will look at your other recommendations here shortly - thanks!

C:\Users\Eris\Desktop>java -jar "D:\MikE\Sikuli 1.1.4 August 
Archive\sikulix.jar" -v -r "D:\MikE\Sikuli Scripts\Test1.sikuli"
[DEBUG]startUp: IDE: Running: D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\Eris\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: 
C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG]startUp: IDE: Classpath: D:\MikE\Sikuli 1.1.4 August 
Archive\sikulix.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar;C:\Users\Eris\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[47 debug] RunTime:temp folder ok: 
C:\Users\Eris\AppData\Local\Temp\Sikulix_2006428554
Options: *** options dump
Options: testing =
Options: OptionsFile = 
C:\Users\Eris\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
* show environment for 1.1.4-SNAPSHOT-#368-2019-08-20_12:33 API
user.home: C:\Users\Eris
user.dir (work dir): C:\Users\Eris\Desktop
user.name: Eris
java.io.tmpdir: C:\Users\Eris\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.221-b11 class 52.0 arch 64
app data folder: C:\Users\Eris\AppData\Roaming\Sikulix
executing jar: D:\MikE\Sikuli%201.1.4%20August%20Archive\sikulix.jar
*** classpath dump sikulix
  0: file:/D:/MikE/Sikuli%201.1.4%20August%20Archive/sikulix.jar
  1: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jruby-complete-9.2.0.0.jar
  2: 
file:/C:/Users/Eris/AppData/Roaming/Sikulix/Extensions/jython-standalone-2.7.1.jar
*** classpath dump end
* show environment end
[1425 debug] Runner: init: class 
org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[1429 debug] Runner: added: Sikulix [] directory/sikulix
[1775 debug] Runner: added: JavaScript [js] text/javascript
[1776 debug] Runner: added: PackedSikulix [zip] application/zip
[1777 debug] Runner: added: Text [txt] text/text
[1778 debug] Runner: added: PowerShell [ps1] text/powershell
[1779 debug] Runner: added: SikulixJar [jar] text/jar
[1781 debug] Runner: added: Robot [robot] text/robot
[1781 debug] Runner: added: PackedSikulix [skl] text/skl
[1797 debug] Runner: added: Jython [py] text/jython
[1804 debug] Runner: added: JRuby [rb] text/ruby
[1805 debug] Runner: added: NetworkRunner [] NET
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[1815 debug] init user preferences
[1818 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[2063 debug] Runner: runscript: new base directory: D:\MikE\Sikuli 
Scripts\Test1.sikuli
[2373 debug] HotkeyManager: reset: removed all SikuliX hotkeys.
[2374 debug] HotkeyController: stopping hotkey provider
[2976 debug] RunTime:* final cleanup at System.exit() *
[2983 debug] FileManager: deleteFileOrFolder:
C:\Users\Eris\AppData\Local\Temp\Sikulix_2006428554

C:\Users\Eris\Desktop>

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-24 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Description changed to:
Using the ~May Image of Sikuli X I have no issues - but I would like to upgrade 
to the newest version to fix the JScreen error
https://raiman.github.io/SikuliX1/downloads.html

my Launch command options I have tried: (from here:
http://doc.sikuli.org/faq/010-command-line.html )

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1.sikuli"
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1"
#the command just closes - no error (returns to prompt) after about 3 seconds

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1.sikuli"
#opens IDE
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1"
#opens IDE

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" 
#Successfully launches the IDE *(most of the time, occasionally hangs on splash)

Test1 and Test2 both successfully run from the IDE (setup two different
ways to launch a program via visual and app method)

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-24 Thread Mike Praeuner
Question #683302 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683302

Description changed to:
Using the ~May Image of Sikuli X I have no issues - but I would like to upgrade 
to the newest version to fix the JScreen error
https://raiman.github.io/SikuliX1/downloads.html

my Launch command options I have tried: (from here:
http://doc.sikuli.org/faq/010-command-line.html )

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1.sikuli"
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1"
#the command just closes - no error (returns to prompt) after about 3 seconds

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1.sikuli" #opens IDE
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" --run 
"d:\mike\Sikuli Scripts\Test1" #opens IDE

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" 
#Successfully launches the IDE *(most of the time, occasionally hangs on splash)

Test1 and Test2 both successfully run from the IDE (setup two different
ways to launch a program via visual and app method)

-- 
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 #683302]: latest version of Sikuli X (downloaded today) launching from command line

2019-08-24 Thread Mike Praeuner
New question #683302 on Sikuli:
https://answers.launchpad.net/sikuli/+question/683302

Using the ~May Image of Sikuli X I have no issues - but I would like to upgrade 
to the newest version to fix the JScreen error
https://raiman.github.io/SikuliX1/downloads.html

my Launch command options I have tried: (from here:  
http://doc.sikuli.org/faq/010-command-line.html )

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1.sikuli"
java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" -r "d:\mike\Sikuli 
Scripts\Test1"

the command just closes - no error (returns to prompt) after about 3 seconds

java -jar "D:\MikE\Sikuli 1.1.4 August Archive\sikulix.jar" 

Successfully launches the IDE *(most of the time, occasionally hangs on splash)

Test1 and Test2 both successfully run from the IDE (setup two different ways to 
launch a program via visual and app method)




-- 
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 1835099] Re: Exception in thread "main" Traceback

2019-07-02 Thread Mike Praeuner
So with updated Sikuli snapshot 
- showHighlight is working
- my batch files are all broken (exit IDE 0?)
- I also tried just running a single script from the command line and 
received exit IDE 0
- IDE scripts work fine (from inside the GUI)

Heading back to work tomorrow, so will have to troubleshoot later
(reverting to previous SnapShot)

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

Title:
  Exception in thread "main" Traceback

Status in Sikuli:
  New

Bug description:
  Every so often I get a error like this: (captured in historical log files)
  Setup:
  Java 8 U211
  SikuliXIDE 1.1.4 SnapShot
  Windows 10 Home 64bit build 1063
  AMD FX-8370, 32GB ram

  Launch:
  Error typically occurs on launch of the script (via batch) like this:
  >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" (
  echo 

  echo  %date%-%time%
  echo 

  echo collect1
  java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
  )

  Error:
  Exception in thread "main" Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 
4, in 
  from Sikuli import *
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
657, in 
  use()
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
455, in use
  newScreen = JScreen()
at org.sikuli.script.Location.getScreen(Location.java:255)

  at org.sikuli.script.Mouse.move(Mouse.java:394)

  at org.sikuli.script.Mouse.move(Mouse.java:375)

  at org.sikuli.script.Mouse.init(Mouse.java:63)

  at org.sikuli.script.Screen.initScreens(Screen.java:153)

  at org.sikuli.script.Screen.(Screen.java:186)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

  at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)

  at java.lang.reflect.Constructor.newInstance(Unknown Source)

  at
  
org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)

  java.lang.NullPointerException: java.lang.NullPointerException
  IDE terminated: returned: 1

  I may run the scripts 50+ times and only see this once, if I catch the
  error and immediately re-run the batch file it works fine

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1835099/+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 1835099] Re: Exception in thread "main" Traceback

2019-07-02 Thread Mike Praeuner
I just checked and my SnapShot was downloaded in May 2019, current
SnapShot is June 2019 - so I am downloading the updated version to test
(I won't know right away if this changes anything)

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

Title:
  Exception in thread "main" Traceback

Status in Sikuli:
  New

Bug description:
  Every so often I get a error like this: (captured in historical log files)
  Setup:
  Java 8 U211
  SikuliXIDE 1.1.4 SnapShot
  Windows 10 Home 64bit build 1063
  AMD FX-8370, 32GB ram

  Launch:
  Error typically occurs on launch of the script (via batch) like this:
  >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" (
  echo 

  echo  %date%-%time%
  echo 

  echo collect1
  java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
  )

  Error:
  Exception in thread "main" Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 
4, in 
  from Sikuli import *
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
657, in 
  use()
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
455, in use
  newScreen = JScreen()
at org.sikuli.script.Location.getScreen(Location.java:255)

  at org.sikuli.script.Mouse.move(Mouse.java:394)

  at org.sikuli.script.Mouse.move(Mouse.java:375)

  at org.sikuli.script.Mouse.init(Mouse.java:63)

  at org.sikuli.script.Screen.initScreens(Screen.java:153)

  at org.sikuli.script.Screen.(Screen.java:186)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

  at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)

  at java.lang.reflect.Constructor.newInstance(Unknown Source)

  at
  
org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)

  java.lang.NullPointerException: java.lang.NullPointerException
  IDE terminated: returned: 1

  I may run the scripts 50+ times and only see this once, if I catch the
  error and immediately re-run the batch file it works fine

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1835099/+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 1835099] [NEW] Exception in thread "main" Traceback

2019-07-02 Thread Mike Praeuner
Public bug reported:

Every so often I get a error like this: (captured in historical log files)
Setup:
Java 8 U211
SikuliXIDE 1.1.4 SnapShot
Windows 10 Home 64bit build 1063
AMD FX-8370, 32GB ram

Launch:
Error typically occurs on launch of the script (via batch) like this:
>>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" (
echo 

echo  %date%-%time%
echo 

echo collect1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
)

Error:
Exception in thread "main" Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, 
in 
from Sikuli import *
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, 
in 
use()
  File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, 
in use
newScreen = JScreen()
at org.sikuli.script.Location.getScreen(Location.java:255)

at org.sikuli.script.Mouse.move(Mouse.java:394)

at org.sikuli.script.Mouse.move(Mouse.java:375)

at org.sikuli.script.Mouse.init(Mouse.java:63)

at org.sikuli.script.Screen.initScreens(Screen.java:153)

at org.sikuli.script.Screen.(Screen.java:186)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at
org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)

java.lang.NullPointerException: java.lang.NullPointerException
IDE terminated: returned: 1

I may run the scripts 50+ times and only see this once, if I catch the
error and immediately re-run the batch file it works fine

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

Title:
  Exception in thread "main" Traceback

Status in Sikuli:
  New

Bug description:
  Every so often I get a error like this: (captured in historical log files)
  Setup:
  Java 8 U211
  SikuliXIDE 1.1.4 SnapShot
  Windows 10 Home 64bit build 1063
  AMD FX-8370, 32GB ram

  Launch:
  Error typically occurs on launch of the script (via batch) like this:
  >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" (
  echo 

  echo  %date%-%time%
  echo 

  echo collect1
  java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
  )

  Error:
  Exception in thread "main" Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 
4, in 
  from Sikuli import *
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
657, in 
  use()
File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 
455, in use
  newScreen = JScreen()
at org.sikuli.script.Location.getScreen(Location.java:255)

  at org.sikuli.script.Mouse.move(Mouse.java:394)

  at org.sikuli.script.Mouse.move(Mouse.java:375)

  at org.sikuli.script.Mouse.init(Mouse.java:63)

  at org.sikuli.script.Screen.initScreens(Screen.java:153)

  at org.sikuli.script.Screen.(Screen.java:186)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

  at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)

  at java.lang.reflect.Constructor.newInstance(Unknown Source)

  at
  
org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)

  java.lang.NullPointerException: java.lang.NullPointerException
  IDE terminated: returned: 1

  I may run the scripts 50+ times and only see this once, if I catch the
  error and immediately re-run the batch file it works fine

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


Re: [Sikuli-driver] [Question #680879]: Command Line Options / Logfile

2019-05-17 Thread Mike Praeuner
Question #680879 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680879

Status: Needs information => Solved

Mike Praeuner confirmed that the question is solved:
still experimenting but this is my current solution (solved)

--batch file--
@echo off
set starttime=%TIME%
set startcsec=%STARTTIME:~9,2%
set startsecs=%STARTTIME:~6,2%
set startmins=%STARTTIME:~3,2%
set starthour=%STARTTIME:~0,2%
set /a 
starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+(%startcsec%)
:TimeThis
rem setup environment
@echo on
taskkill /f /im nox*
taskkill /f /im java*
PATH=%PATH%;D:\MikE\Sikuli Scripts\
nircmd.exe monitor on
nircmd.exe setcursor 100 50
nircmd.exe movecursor 10 10
@echo off
rem a way to stop from progressing
timeout 30
@echo on
>>"d:\mike\Sikuli Scripts\Collect.log" (
echo 

echo  %date%-%time%
echo 

java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect2"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect3"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect4"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect5"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect6"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect7"
timeout 1
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect8"
)
@echo off
set endtime=%time%
set endcsec=%endTIME:~9,2%
set endsecs=%endTIME:~6,2%
set endmins=%endTIME:~3,2%
set endhour=%endTIME:~0,2%
if %endhour% LSS %starthour% set /a endhour+=24
set /a 
endtime=(%endhour%*60*60*100)+(%endmins%*60*100)+(%endsecs%*100)+(%endcsec%)
set /a timetaken= ( %endtime% - %starttime% )
set /a timetakens= %timetaken% / 100
set timetaken=%timetakens%.%timetaken:~-2%

rem end script
rem teardown environment
taskkill /f /im nox*
taskkill /f /im java*
rem last updated 5/12/19
>>"d:\mike\Sikuli Scripts\Collect.log" (
echo 

echo  %date%-%time%
echo 

echo.
echo Took: %timetaken% sec.
)
timeout 300
rem pause

References:
https://www.windows-commandline.com/get-date-time-batch-file/
https://stackoverflow.com/questions/20484151/redirecting-output-from-within-batch-file

-- 
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 #680879]: Command Line Options / Logfile

2019-05-16 Thread Mike Praeuner
Question #680879 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680879

Mike Praeuner posted a new comment:
Found this
https://bugs.launchpad.net/sikuli/+bug/1486873

Using this:
Debug.setLogFile("D:\\Mike\\Sikuli Scripts\\testfunction.log")

I get a file created for current session that is overwritten by the next
session

-- 
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 #680879]: Command Line Options / Logfile

2019-05-16 Thread Mike Praeuner
Question #680879 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680879

Description changed to:
Starting Here:
https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html

from a batch file I am running
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisEvE" -f 
"d:\mike\Sikuli Scripts\LogEvEHealth.txt"

Which creates LogEvEHealth.txt and logs that session

I tried this:
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisHealth" >> 
d:\mike\Sikuli Scripts\LogErisHealth.txt
but the syntax must be wrong somewhere

Any way to add timestamp / append next session? (using JYthon in SikuliX
IDE 1.1.4)

I read a few other answers but wasn't sure the best route:
https://www.robvanderwoude.com/battech_redirection.php
https://answers.launchpad.net/sikuli/+question/248604
https://answers.launchpad.net/sikuli/+question/595513

-- 
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 #680879]: Command Line Options / Logfile

2019-05-16 Thread Mike Praeuner
Question #680879 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680879

Description changed to:
Starting Here:
https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html

from a batch file I am running
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisEvE" -f 
"d:\mike\Sikuli Scripts\LogEvEHealth.txt"

Which creates LogEvEHealth.txt and logs that session

I tried this:
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisHealth" >> 
d:\mike\Sikuli Scripts\LogErisHealth.txt
but the syntax must be wrong somewhere

Anyway to add timestamp / append next session? (using JYthon in SikuliX
IDE 1.1.4)

I read a few other answers but wasn't sure the best route:
https://www.robvanderwoude.com/battech_redirection.php
https://answers.launchpad.net/sikuli/+question/248604
https://answers.launchpad.net/sikuli/+question/595513

-- 
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 #680879]: Command Line Options / Logfile

2019-05-16 Thread Mike Praeuner
New question #680879 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680879

Starting Here:
https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html

from a batch file I am running
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisEvE" -f 
"d:\mike\Sikuli Scripts\LogEvEHealth.txt"

Which creates LogEvEHealth.txt and logs that session

I tried this:
java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\ErisHealth" >> 
d:\mike\Sikuli Scripts\LogErisHealth.txt
but the syntax must be wrong somewhere

Anyway to add timestamp / append next session? (using JYthon in SikluiX IDE)

I read a few other answers but wasn't sure the best route:
https://www.robvanderwoude.com/battech_redirection.php
https://answers.launchpad.net/sikuli/+question/248604
https://answers.launchpad.net/sikuli/+question/595513






-- 
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 #680702]: Import Question

2019-05-09 Thread Mike Praeuner
Question #680702 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680702

Status: Answered => Solved

Mike Praeuner confirmed that the question is solved:
on very first run I was told I needed jython, so I grabbed that file (+ ruby) 
and have not gotten any messages or seen the IDE since
I did try to run via command line 

C:\Users\MikE\Desktop>java -jar sikulix.jar
Exception in thread "main" org.sikuli.script.SikuliXception: fatal: Java arch 
must be 64 Bit (java 8 version 1.8 vm 25.211-b12 class 52.0 arch null)
at org.sikuli.script.support.RunTime.terminate(RunTime.java:548)
at org.sikuli.script.support.RunTime.get(RunTime.java:751)
at org.sikuli.ide.SikulixIDE.main(SikulixIDE.java:59)
IDE terminated: returned: 1

so I downloaded this:
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=238729_478a62b7d4e34b78b671c754eaaf38ab

Which resolved the issue with v1.1.4

-- 
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 #680702]: Import Question

2019-05-09 Thread Mike Praeuner
Question #680702 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680702

Mike Praeuner posted a new comment:
I tried to setup 1.1.4 - but having issues (win10)  will try again later when I 
have more time to troubleshoot (1.1.3 is installed)
when I launch (1.1.4) sikulix.jar it deletes the jruby and jython files but 
never launches (Java8u211)
https://raiman.github.io/SikuliX1/downloads.html


Everything is working as expected now that I have the header on the correct 
script :P

I did notive that this:
testpad2.launchNox()
and this
launchNox()

both work - I am assuming the correct syntax is testpad2.launchNox(),
but since the other works as well does that mean you can redefine a
function on a script that loads the original function from another
script (probably all sorts of issues with that - but just curious)

-- 
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 #680702]: Import Question

2019-05-08 Thread Mike Praeuner
New question #680702 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680702

Starting here & here:
https://sikulix-2014.readthedocs.io/en/latest/scripting.html?highlight=import%20*
https://answers.launchpad.net/sikuli/+faq/2446

--testpad.sikuli--
from sikuli import *
# the path containing your stuff - choose your own naming
# on Windows
myScriptPath = "D:\\MikE\\Sikuli Scripts"
# all systems (avoids double entries in sys.path)
addImportPath(myScriptPath)
# supposing there is a testpad2.sikuli
import testpad2
reload(testpad2)
from testpad2 import *
setShowActions (True)
# testpad
# Start script with functions
# supposing myLib.sikuli contains a function "def myFunction():"
testpad2.launchNox()
testpad2.openUE()
#
#
# end of script
exit(1)

--testpad2.sikuli--
# Testing Global Functions
# Launch Nox
def launchNox():
app = App("D:\\Program Files\\Nox\\bin\\Nox.exe")
app.open(5) # does the focus as well
reg = app.window(0)
if exists("1555433103893.png"):
hover("1555433103893.png")
else:
sleep(0)
#function open UE app (default account)
def openUE():
wait("1555426342139.png", 60)
if exists("1555426342139.png"):
click("1555426342139.png")
else:
 sleep(0)
wait("1556061400286.png", 30)
hover("1556061400286.png")

and I get this error:
[error] script [ testpad ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"D:\MikE\Sikuli Scripts\testpad.sikuli\testpad.py", line 15, in  
testpad2.launchNox() File "D:\MikE\Sikuli Scripts\testpad2.sikuli\testpad2.py", 
line 2, in launchNox app = App("D:\\Program Files\\Nox\\bin\\Nox.exe") 
NameError: global name 'App' is not defined 

If I comment out line 15 I see this:
[error] script [ testpad ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"D:\MikE\Sikuli Scripts\testpad.sikuli\testpad.py", line 16, in  
testpad2.openUE() File "D:\MikE\Sikuli Scripts\testpad2.sikuli\testpad2.py", 
line 13, in openUE wait("1555426342139.png", 60) NameError: global name 'wait' 
is not defined 

Still out of my depth, but making steady progress :D (trying to eliminate any 
repeat code / reuse as much as possible)


-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner 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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Status: Answered => Solved

Mike Praeuner confirmed that the question is solved:
thank you - my knowledge now surpasses my skill - so I will go experiment and 
practice for a bit 
I "get" the function part, so I will start there, then work towards utilizing a 
for loop

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner posted a new comment:
https://www.geeksforgeeks.org/functions-in-python/

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner posted a new comment:
...or am I still thinking about this wrong (structure) and I should be
"storing" the do stuff / action and "calling" it when needed?

nOOb - thanks!

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner posted a new comment:
clarification / correction
this:
Select Account
  perform action on account
   do stuff to:
 Select next account (1-5 possible)
Exit app inside Nox

should be:
Select Account
  perform action on account
   do stuff to:
 Select next account (1-5 possible)
   perform action on account
Exit app inside Nox

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-23 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner posted a new comment:
Thank You RaiMan - I appreciate your patience & response. I will make
the suggested corrections

for second question...to structure a loop?

My normal sequence is
Run Script (scheduled task)
Load Nox
Load app
  do stuff to:
Select Google ID
  do stuff to:
Select Account 
  perform action on account
   do stuff to:
 Select next account (1-5 possible)
Exit app inside Nox
Clear app data (via shell script shortcut)
Load app
  do stuff to:
Select (next) Google ID (8 possible)
  repeat for all 25 accounts
Exit Nox
Exit Script

So would this be a for loop with the "select portion" as a set of
variables? (my terminology is probably wrong, hopefully you can
understand what I am trying to ask)

What I really want to accomplish is (end goal) create 4-5 scripts that
"perform different action(s) on account" based on the initial building
blocks of being able to load and switch accounts

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-22 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Mike Praeuner gave more information on the question:
I am currently reading up on Python Loops...
https://www.geeksforgeeks.org/loops-in-python/
Just need to wrap my head around how to implement / structure

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-22 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Description changed to:
First question:

I am using app.open (to launch Nox) then app.focus (to go to the "Nox Player" 
window)
How do I set the region to the Nox window (only one window open)?
#sample code
App.open("D:\\Program Files\\Nox\\bin\\Nox.exe")
sleep(15)
App.focus("NoxPlayer")
#

Second question:
I have my first sikuli script mostly working (it should take ~30m to run, 
currently ~1.5 hours, so it needs optimized)
I load Nox, clear android app data, load the app, select the google ID, select 
the account (1 of 5 potential) then perform the desired action (my first test 
is just to open and close the app for all 8 Google IDs, 25 accounts -- 60s 
global app timer between accounts)

Currently this script is 1600+ lines, with a large amount of repeat
content (indicating my lack of coding skills)  I am pretty certain I did
this the hardest way possible, so where would I start to simplify and
consolidate?


Regretfully I am not near my personal computer, but I will gladly load any 
files (.skl?) for reference when I get home this evening
Updated Source File:
https://www.dropbox.com/s/9eahdut5szxhsh0/DailyLogon.skl?dl=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


Re: [Sikuli-driver] [Question #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-22 Thread Mike Praeuner
Question #680383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680383

Description changed to:
First question:

I am using app.open (to launch Nox) then app.focus (to go to the "Nox Player" 
window)
How do I set the region to the Nox window (only one window open)?

Second question:
I have my first sikuli script mostly working (it should take ~30m to run, 
currently ~1.5 hours, so it needs optimized)
I load Nox, clear android app data, load the app, select the google ID, select 
the account (1 of 5 potential) then perform the desired action (my first test 
is just to open and close the app for all 8 Google IDs, 25 accounts -- 60s 
global app timer between accounts)

Currently this script is 1600+ lines, with a large amount of repeat
content (indicating my lack of coding skills)  I am pretty certain I did
this the hardest way possible, so where would I start to simplify and
consolidate?


Regretfully I am not near my personal computer, but I will gladly load any 
files (.skl?) for reference when I get home this evening

-- 
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 #680383]: hopefully (2) easy questions (region.focus & code consolidation)

2019-04-22 Thread Mike Praeuner
New question #680383 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680383

First question:

I am using app.open (to launch Nox) then app.focus (to go to the "Nox Player" 
window)
How do I set the region to the Nox window (only one window open)?

Second question:
I have my first sikuli script mostly working (it should take ~30m to run, 
currently ~1.5 hours, so it needs optimized)
I load Nox, clear android app data, load the app, select the google ID, select 
the account (1 of 5 potential) then perform the desired action (my first test 
is just to open and close the app for all 8 Google IDs, 25 accounts -- 60s 
global app timer between accounts)

Currently this script is 1600+ lines, with a large amount of repeat content 
(indicating my lack of coding skills) 


Regretfully I am not near my personal computer, but I will gladly load any 
files (.skl?) for reference when I get home this evening


-- 
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