Re: [Sikuli-driver] [Question #703663]: no viable alternative at input keydown?

2022-11-01 Thread Ralph Whitlock
Question #703663 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/703663

Ralph Whitlock confirmed that the question is solved:
Thanks Manfred Hampl, that solved my question.

-- 
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 #703663]: no viable alternative at input keydown?

2022-11-01 Thread Ralph Whitlock
Question #703663 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/703663

Status: Answered => Solved

Ralph Whitlock confirmed that the question is solved:
Thanks a lot Manfred Hampl!
That was the problem regarding the keyDown and keyUp and it works with 
quotation marks!
And now it seems that mouseDown and mouseUp works for some reason.

-- 
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 #703663]: no viable alternative at input keydown?

2022-10-31 Thread Ralph Whitlock
New question #703663 on SikuliX:
https://answers.launchpad.net/sikuli/+question/703663

So I'm making a program for automatically fishing in stardew valley, but I 
can't even get the program to hold the mousebutton or a keypress. It only gives 
me this error:

[error] SyntaxError ( "no viable alternative at input 'keyDown'",  )

What I've written so far is this:

wait(5)
click("1667230014998.png") #Stardew taskbar icon so the game is focused#
mouseMove(Location(2031, 807)
keyDown(C)
wait(1.5)
keyUp(C)

I don't see how this gives me an error.
I get the same error when I do this:

mouseDown(Button.LEFT)
wait(1.5)
mouseUp(Button.LEFT)

Any help would be appreciated!

-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-05 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Ralph gave more information on the question:
I replaced static { new Finder(new Screen().capture(0, 0, 1, 1)); } with
System.loadLibrary(Core.NATIVE_LIBRARY_NAME) and copied
opencv_java342.dll to \bin and the error is gone now. Application
works ok on the non-IDE PC :)

-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-05 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Status: Answered => Open

Ralph is still having a problem:
Hi, thanks heaps but still get a similar error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'long 
org.opencv.core.Mat.n_Mat()'
at org.opencv.core.Mat.n_Mat(Native Method)
at org.opencv.core.Mat.(Mat.java:30)
at org.sikuli.script.Finder$FindInput2.(Finder.java:1167)
at org.sikuli.script.Finder$FindInput2.(Finder.java:1161)
at org.sikuli.script.Finder.(Finder.java:34)
at utils.MainClass.(MainClass.java:25)

The PC I am running on is Win10 and has Java DevKit 17.0.2 installed.
The Java environment variables are set and I have copied
opencv_java342.dll to various system folders in the path to see if that
helps.

The jar runs standalone without error on the IDE PC which has the same
OS and same version/configuration of Java. The only solutions installed
from the eclipse marketplace are Maven (Eclipse m2e) and TestNG.

I have tried creating the fat jar with maven-assembly-plugin and maven-
shade-plugin and get the same error

The following folders exist under \roaming\sikulix
Extensions
SikulixDownloads
SikulixLibs (contains opencv_java342.dll)
SikulixStore
SikulixTesseract

-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-04 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Description changed to:
Hi all,

When I export as a fat jar and run on another Win10 PC with Java
installed I get the following error when I use screen.exist, hover,
click etc

java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Pom is below. Just wondering if you have seen this before or have any
suggestions? Note I'm running 2.0.4 because 2.0.5 has an issue locating
images embedded in the jar

Thanks in advance

http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd;>
  4.0.0
  com.rnimbin.autotest
  DailyChecks
  0.0.1-SNAPSHOT


  3.13.0
  7.4.0
  3.7.0
  1.8
  1.8 



  
org.seleniumhq.selenium
selenium-java
${selenium.version}
  
  
org.testng
testng
${testng.version}
  
  
com.aventstack
extentreports
4.0.6
  
  
com.sikulix
sikulixapi
2.0.4
  
  
com.sun.mail
javax.mail
1.6.2
  
  
org.apache.logging.log4j
log4j-core
2.17.2
  



  

  org.apache.maven.plugins
  maven-shade-plugin
  3.3.0
  
  
  

  package
  
shade
  
  

  
utils.MainClass
  

  

  

  

  


-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-04 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Description changed to:
Hi all,

When I export as a fat jar and run on another Win10 PC with Java
installed I get the following error when I use screen.exist, hover,
click etc

java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Pom is below. Just wondering if you have seen this before or have any
suggestions? Note I'm running 2.0.4 because 2.0.5 has an issue locating
images embedded in the jar

Thanks in advance

http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd;>
  4.0.0
  com.rnimbin.autotest
  DailyChecks
  0.0.1-SNAPSHOT


  3.13.0
  7.4.0
  3.7.0
  1.8
  1.8 



  
org.seleniumhq.selenium
selenium-java
${selenium.version}
  
  
org.testng
testng
${testng.version}
  
  
com.aventstack
extentreports
4.0.6
  
  
com.sikulix
sikulixapi
2.0.3
  
  
com.sun.mail
javax.mail
1.6.2
  
  
org.apache.logging.log4j
log4j-core
2.17.2
  



  

  org.apache.maven.plugins
  maven-shade-plugin
  3.3.0
  
  
  

  package
  
shade
  
  

  
utils.MainClass
  

  

  

  

  


-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-03 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Description changed to:
Hi all,

When I export as a fat jar and run on another Win10 PC with Java
installed I get the following error when I use screen.exist, hover,
click etc

java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Just wondering if you have seen this before or have any suggestions?
Note I'm running 2.0.4 because 2.0.5 has an issue locating images
embedded in the jar

Thanks in advance

-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-03 Thread Ralph
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Description changed to:
Hi all,

When I export as a fat jar and run on another PC with Java installed I
get the following error when I use exist, hover, click etc

java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Just wondering if you have seen this before or have any suggestions?
Note I'm running 2.0.4 because 2.0.5 does not find the images embedded
in the jar

Thanks in advance

-- 
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 #701193]: Error with runnable fat jar outside of IDE

2022-04-03 Thread Ralph
New question #701193 on SikuliX:
https://answers.launchpad.net/sikuli/+question/701193

Hi all,

When I export as a fat jar and run on another PC with Java installed I get the 
following error when I use exist, hover, click etc 
java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Just wondering if you have seen this before or have any suggestions? Note I'm 
running 2.0.4 because 2.0.5 does not find the images embedded in the jar

Thanks in advance

-- 
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 #701112]: Error with runnable jar outside of IDE

2022-03-29 Thread Ralph
Question #701112 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701112

Ralph posted a new comment:
Hi RaiMan, much appreciated. Using a fat jar with 2.0.4 fixed this error

-- 
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 #701112]: Error with runnable jar outside of IDE

2022-03-29 Thread Ralph
Question #701112 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701112

Status: Answered => Solved

Ralph 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 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 #701112]: Error with runnable jar outside of IDE

2022-03-28 Thread Ralph
New question #701112 on SikuliX:
https://answers.launchpad.net/sikuli/+question/701112

Hi RaiMan, When I export a runnable jar from Eclipse I get an error when I run 
the jar outside of the IDE. The error happens when I use click, hover, findtext 
and exists functions. The errors I get are "java.lang.NoClassDefFoundError: 
Could not initialize class org.sikuli.script.Finder$FindInput2" and "Caused by: 
java.lang.NullPointerException: Cannot invoke "java.io.File.getAbsolutePath()" 
because "this.fSxBase" is null"

I read in some of the documentation that I may need to install Sikuli on the PC 
first but cannot find out how to do this. Any help would be appreciated

The OS is Windows 10. This is from the pom

 1.8
 3.13.0
 7.4.0
 3.7.0



 
  org.seleniumhq.selenium
  selenium-java
  ${selenium.version}
 
 
  org.testng
  testng
  ${testng.version}
 
 
  com.aventstack
  extentreports
  4.0.6
 
 
  com.sikulix
  sikulixapi
  2.0.4
 

Thanks


-- 
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 #692755]: Sikulix hides every program and every window at screenshot

2020-09-05 Thread Ralph G
Question #692755 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692755

Ralph G 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 #692755]: Sikulix hides every program and every window at screenshot

2020-09-04 Thread Ralph G
Question #692755 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692755

Status: Answered => Solved

Ralph G confirmed that the question is solved:
WOW! You are SO KIND replying to my question within such a short time and at 
such a late time in the evening Raimund.
You definitely have won a new project code contributor, once I finish 
transferring over to Java from C#  ; )
A HUGE THANK YOU. I spent about 3 hours trying to figure it out so you have 
made my 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 #692755]: Sikulix hides every program and every window at screenshot

2020-09-04 Thread Ralph G
New question #692755 on Sikuli:
https://answers.launchpad.net/sikuli/+question/692755

I have just installed Sikuli for the first time ever. I actually installed the 
Sikulixide which is what I am trying to start with.
I am using an iMac with the latest updates   Catalina 10.15.6
When I am in Sikulixide and I click "Take Screenshot" then every window of 
every program vanishes and I am left with the image of my desktop only.
I have tried changing the Screenshot delay to to 5 seconds etc. in Preferences, 
quit and restart Sikuli, reboot the Mac, Launch from command/terminal, launch 
from Finder, change the keyboard shortcut (command/shift/2) keys and try it 
that way.
If I 4-finger up on the trackpad then Mac shows me that all programs and their 
Windows exist but clicking on one simply keeps it hidden. I have noticed that 
if I make a program active (using Finder bar or 4-finger swipe then click) then 
the "file menu, if that's wha t it's called on a Mac" does change to the 
appropriate program. But even trying to alter programs from full-screen (remain 
hidden though) to hidden and back to hide never gets the programs or their 
windows out of being hidden.
On the bright side i do have lots of lovely snapshots of different parts of my 
background wallpaper now ha ha.
Any ideas?
I'm totally stumped : (


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