Re: [Sikuli-driver] [Question #689146]: ImportError: cannot import name fileSystemDecode

2020-03-06 Thread Wei
Question #689146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689146

Wei posted a new comment:
Thanks, I will update it too.

-- 
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 #689146]: ImportError: cannot import name fileSystemDecode

2020-03-05 Thread Wei
Question #689146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689146

Status: Needs information => Solved

Wei confirmed that the question is solved:
Hi RaiMan,

Thanks for indicating the direction, I found that I had wrong sikuli jar
in classpath, I should set sikulixapi-2.0.3.jar instead of
sikulix-2.0.3.jar. After update claspath , delete the sikuli folder in
Roaming. The error  no longer exists.

Thanks for your help.

-- 
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 #689146]: ImportError: cannot import name fileSystemDecode

2020-03-05 Thread Wei
Question #689146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689146

Wei posted a new comment:
Hi RaiMan,

Sorry, here is the log of putting the script after  import
org.sikuli.script.SikulixForJython

C:\Users\wgong\AppData\Roaming\Sikulix\Lib\site-packages
C:\Users\wgong\AppData\Roaming\Sikulix\Lib
C:\Working_P4\depot\qa\tests\licensing\Corti\tuningtool\DAX3.5.6\automation-test
C:\jython2.7.0\Lib
__classpath__
__pyclasspath__/
C:\jython2.7.0\Lib\site-packages
C:\Working_P4\depot\qa\tests\licensing\Corti\tuningtool\DAX3.5.6\automation-test\case\two_speakers

-- 
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 #689146]: ImportError: cannot import name fileSystemDecode

2020-03-05 Thread Wei
Question #689146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689146

Wei posted a new comment:
HI RaiMan,

Thanks for the reply, here I got the output:

C:\Working_P4\depot\qa\tests\licensing\Corti\tuningtool\DAX3.5.6\automation-test
C:\jython2.7.0\Lib
__classpath__
__pyclasspath__/
C:\jython2.7.0\Lib\site-packages
C:\Working_P4\depot\qa\tests\licensing\Corti\tuningtool\DAX3.5.6\automation-test\case\two_speakers

-- 
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 #689146]: ImportError: cannot import name fileSystemDecode

2020-03-05 Thread Wei
New question #689146 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689146

Hello :) 

I am using Sikuli for a UI automation of a windows application.  When I created 
the script and started to run it, I found sikuli will create folder in 
"Roaming" which contains all libs, and when sikuli init, there will be an 
import error in subprocess.py, below is the log, my workmate running the script 
without any error  on his laptop, but we are using the same setup, same jython, 
same python, same JRD, same version of sikuli.

from sikuli import *
  File "C:\Users\wgong\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 6, 
in 
from Sikuli import *
  File "C:\Users\wgong\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 20, 
in 
import subprocess
  File "C:\Users\wgong\AppData\Roaming\Sikulix\Lib\subprocess.py", line 441, in 

from org.python.core.Py import fileSystemDecode
ImportError: cannot import name fileSystemDecode

My laptop environment:
WIndow 10 64bit
Python 2.7.10
Jython 2. 7.0
Sikyli 2.0.3
Java 1.8.0_161

Thanks so much if you could take a look at this issue ,cheers. 

-- 
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 #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
Question #677385 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677385

Kevin Wei posted a new comment:
Just download 1.1.4 and integrate into my project. It's perfect to
resolve all my concerns, thanks again.

-- 
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 #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
Question #677385 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677385

Status: Answered => Solved

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


[Sikuli-driver] [Question #677385]: sikuli silent install behind proxy

2019-01-07 Thread Kevin Wei
New question #677385 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677385

Planning to install sikuli behind company proxy. With GUI, everything works 
fine, I could easily specify a proxy. But when I use following command "java 
-jar sikulixsetup-1.1.2.jar options 2 4" to do silent install, it gives me 
error as follows:

➜  Downloads java -jar sikulixsetup-1.1.2.jar options 2 4  
[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: Accessing: 
GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] RunTimeINIT: Accessing: 
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1680 x 1050
[debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/weik/Downloads
* show environment for SETUP (build 201803080837)
user.home: /Users/weik
user.dir (work dir): /Users/weik/Downloads
user.name: weik
java.io.tmpdir: /var/folders/s1/z_q9pwb90vqcv9k5_w9ftv9mgn/T
running 64Bit on Mac OSX (10.14.2) from a jar
java 8-64 version 1.8.0_181-b13 vm 25.181-b13 class 52.0 arch x86_64
app data folder: /Users/weik/Library/Application Support/Sikulix
libs folder: null
executing jar: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump sikulix
  0: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump end
* show environment end
[debug] RunTimeSETUP: global init: leaving
[debug] RunTimeSETUP: initAPI: entering
[debug] RunTimeSETUP: resourceList: enter
[debug] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) 
/Lib/sikuli
[debug] RunTimeSETUP: resourceList: having jar: 
jar:file:/Users/weik/Downloads/sikulixsetup-1.1.2.jar!/Lib/sikuli
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
 /Users/weik/Library/Application Support/Sikulix/Lib/sikuli
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for 
sikulixsetupIDE#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for 
sikulixsetupAPI#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] RunSetup: command line options:
[debug] RunSetup: options 2 4 
[debug (8/01/19 10:35:19 AM)] RunTimeSETUP: exists libs folder at: 
/Users/weik/Library/Application Support/Sikulix/SikulixLibs_201803080837
[debug (8/01/19 10:35:19 AM)] FileManager: resetFolder:
/Users/weik/Downloads/SetupStuff
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDir:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDirDownloads:
/Users/weik/Downloads/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGeneric:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGenericApp:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads_201803080837
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: python:
/Users/weik/Library/Application 
Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: tess
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: python25
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: api
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ide
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: rubyaddons
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: win
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: mac:
/Users/weik/Library/Application 
Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: lux
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ruby
[debug (8/01/19 10:35:19 AM)] RunSetup: ... starting with: options 2 4 
[debug (8/01/19 10:35:19 AM)] RunSetup: Setup: 1.1.2 2018-03-08_08:37 in folder:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: 
popAsk: 
null
--- Native support libraries for all systems (sikulixlibs...)
--- Package 2 ---
null (Java API)
Only click NO, if you want to terminate setup now!

Re: [Sikuli-driver] [Question #269664]: Sikuli loop with python

2015-07-28 Thread Wei Yang
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Answered = Solved

Wei Yang confirmed that the question is solved:
It is solved, thanks a lot. Learnt a lot from you Cameron.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269664]: Sikuli loop with python

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Needs information = Open

Wei Yang gave more information on the question:
Hi Cameron, thanks for your reply.

Both A and B have an equal number of elements. I apologise for the typo
in B, it should be commas instead.

I have tried as you suggested but an error message propped up
[error]Syntax Error (no viable alternative at input ':')

Please kindly correct me if I have misunderstandings in any ways.

Thank you.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269664]: Sikuli loop with python

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269664

Status: Answered = Open

Wei Yang is still having a problem:
the first part works, but the second part there is an error message. I
wonder what causes the error.


A=[111,222,333]
B=[123.456.789]
for i in range(len(A)):
try:
.
type(A[i])(line 12)
type(B[i])
.
except FindFailed:
type(Key.F5)

** [error] Type Error (type(): 1st arg can't be coerced to string)
 [error] --- Traceback --- error source first line: module(function) 
statement 12 main: (module)type(A)
 [error] --- Traceback --- end

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269664]: Sikuli loop with python

2015-07-26 Thread Wei Yang
New question #269664 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269664

This is the current code (I am using try/except to handle exceptions) I am 
using, I would like to know if there are any way to make it LOOP with a python 
list to shorten the code :

try:

   .
   type(first number in A)
   type(first number in B)
   .

except FindFailed:

   type(Key.F5)

For e.g.

A=[111,222,333]
B=[123.456.789]
try:

   .
   type(first number in A)
   type(first number in B)
   .

except FindFailed:

   type(Key.F5)

**Once the first loop is completed, how to choose the second number from list A 
and B etc. Please kindly correct me if I have misunderstanding in any ways. 
Thank you for your time. 


-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #267859]: Rewind code

2015-06-07 Thread Wei Yang
New question #267859 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267859

I would like to know if it is possible to rewind back to a certain previous 
line assuming if a FindFailed or any other exceptional kind of error occurred.

Please advice.

Thank you very much

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 1360046] [NEW] Settings.BundlePath not work

2014-08-21 Thread Xian Wei
Public bug reported:

Hi,
When i was used new Sikuli 1.0.1 Sikuli-Java.jar i find the Settings.BundlePath 
not work well, i write follow code to test:

System.out.print(ImageLocator.getBundlePath()+\n);

Settings.BundlePath=E:/qa/automation/picpool/JAM/mainline/;

System.out.print(ImageLocator.getBundlePath()+\n);

Then find the output is :
E:\qa\automation\mainline\jam
E:\qa\automation\mainline\jam
I am not sure it is a bug or i am wrong, but i sure it is work on last version.
But i find another way to work around:
System.out.print(ImageLocator.getBundlePath()+\n);
 
 
ImageLocator.setBundlePath(E:/qa/automation/picpool/JAM/mainline/);

 System.out.print(ImageLocator.getBundlePath()+\n);
The output is :
E:\qa\automation\mainline\jam
E:/qa/automation/picpool/JAM/mainline/

Below is my environment information:
OS: windows 7 x64
Java: 1.7.0_06

I wait for your  reply, thanks.

--BR
Xian

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

Title:
  Settings.BundlePath not work

Status in Sikuli:
  New

Bug description:
  Hi,
  When i was used new Sikuli 1.0.1 Sikuli-Java.jar i find the 
Settings.BundlePath not work well, i write follow code to test:

System.out.print(ImageLocator.getBundlePath()+\n);

Settings.BundlePath=E:/qa/automation/picpool/JAM/mainline/;

  System.out.print(ImageLocator.getBundlePath()+\n);

  Then find the output is :
  E:\qa\automation\mainline\jam
  E:\qa\automation\mainline\jam
  I am not sure it is a bug or i am wrong, but i sure it is work on last 
version.
  But i find another way to work around:
  System.out.print(ImageLocator.getBundlePath()+\n);
 
 
ImageLocator.setBundlePath(E:/qa/automation/picpool/JAM/mainline/);

 System.out.print(ImageLocator.getBundlePath()+\n);
  The output is :
  E:\qa\automation\mainline\jam
  E:/qa/automation/picpool/JAM/mainline/

  Below is my environment information:
  OS: windows 7 x64
  Java: 1.7.0_06

  I wait for your  reply, thanks.

  --BR
  Xian

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1360046/+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 #250719]: Env.addHotkey with special characters

2014-06-25 Thread Wei
Question #250719 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250719

Status: Needs information = Open

Wei gave more information on the question:
Hello RaiMan

My Sikuli version is  X-1.0rc3  (r930) on 32bit

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #250719]: Env.addHotkey with special characters

2014-06-24 Thread Wei
New question #250719 on Sikuli:
https://answers.launchpad.net/sikuli/+question/250719

Hello everybody 

When I use special characters with Env.addHotkey, it doesn't works.(On Windows 
7 32)

This is my script:

def click28(event):click(28.png)
def click32(event):click(32.png)
def click35(event):click(35.png)
def click37(event):click(37.png)
def click39(event):click(39.png)
Env.addHotkey(,,0,click28)
Env.addHotkey(.,0,click32)
Env.addHotkey(;,0,click35)
Env.addHotkey(/,0,click37)
Env.addHotkey(-,0,click39)

only these 5 characters don't work fine

Could somebody give me a help?

Thanks a lot!





-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #250719]: Env.addHotkey with special characters

2014-06-24 Thread Wei
Question #250719 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250719

Wei gave more information on the question:
by the

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #250719]: Env.addHotkey with special characters

2014-06-24 Thread Wei
Question #250719 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250719

Wei gave more information on the question:
By the way, these characters are on left side of the keyboard. not on numpad.
I also tried to replace - to key.MINUS; / to key.DIVIDE but it still 
didn't work.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #236500]: How to use Sikuli in 3D crosshair applications?

2013-09-28 Thread Poh Wei Pin
Question #236500 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/236500

Status: Needs information = Open

Poh Wei Pin gave more information on the question:
No problem Sir!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #236500]: How to use Sikuli in 3D crosshair applications?

2013-09-27 Thread Poh Wei Pin
New question #236500 on Sikuli:
https://answers.launchpad.net/sikuli/+question/236500

Not sure any of you know Minecraft. When I was experimenting something with the 
help of sikuli,  I issued rightclick() command and when
I run the project, either nothing seems to happen or my mouse cursor will move 
up and did not accurately click the highlighted region.
Only after I attempted to move the target offset crosshair to the game 
crosshair, the program then right clicked it once
But my concern is how to use sikuli the right way in 3D crosshair application. 
Mainly how do I programme the bot to make it right click
a item in Minecraft.


Notes: Minecraft is a 3D java game and there is a crosshair at the middle of 
the screen

Your Sincerely,
Wei Pin

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #218418]: Linking script back again after else

2013-01-05 Thread Poh Wei Pin
New question #218418 on Sikuli:
https://answers.launchpad.net/sikuli/+question/218418

E

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #218418]: Linking script back again after else

2013-01-05 Thread Poh Wei Pin
Question #218418 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218418

Description changed to:
Example Script: [Roughly What i wrote]

If Exists(Picture A)
  Click(Me 1)
  Click(Me 2)

Else
   Click(Him1)
   Click(Him 2)

Now Here comes my problem
Is there anyway to link back to my script again after the else??

[What i actually wanted]

If Exists(Picture A)
  BACK TO HERE --
  Click(Me 1) |
  Click(Me 2) |
|
Else|
   Click(Him1)|
   Click(Him 2)   |
|
 CONTINUE BACK TO EXISTS -|


More Examples:

In CMD language, 
I wrote this:
If Exists(Picture A)
  :Blah
  Click(Me 1) 
  Click(Me 2) 

Else
   Click(Him1)
   Click(Him 2) 
   :Blah [Linking Blah to the top Blah]


Please help me thank you!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #218214]: Nothing happened after clicking find

2013-01-03 Thread Poh Wei Pin
New question #218214 on Sikuli:
https://answers.launchpad.net/sikuli/+question/218214

After opening sikuli, I click the Camera Icon and the program just closed and 
nothing happened
Wasn't it supposed to show up something??

Please help me

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #218214]: Nothing happened after clicking find

2013-01-03 Thread Poh Wei Pin
Question #218214 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218214

Status: Answered = Open

Poh Wei Pin is still having a problem:
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #218214]: Nothing happened after clicking find

2013-01-03 Thread Poh Wei Pin
Question #218214 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218214

Poh Wei Pin posted a new comment:
Above error message was what i've got when i first
type in: java -jar %SIKULI_HOME%sikuli-script.jar -i
It was fine then i proceed to the snapshot command and type in this:
img = capture()
Ended up having alot of that error 

:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java
:18)
at java.awt.Window$1.setOpacity(Unknown Source

Re: [Sikuli-driver] [Question #218214]: Nothing happened after clicking find

2013-01-03 Thread Poh Wei Pin
Question #218214 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218214

Status: Answered = Solved

Poh Wei Pin confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #124759]: Can you run Python and call Sikuli from there? --- use XML-RPC

2011-07-01 Thread Michael Wei
Question #124759 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/124759

Michael Wei posted a new comment:
Sure, some codes is from net user, hope someone could get better idea from it.
Copied here, please save it to c:\InteractiveConsole.py and run it in command 
(for windows)
java -cp %SIKULI_HOME%\sikuli-script.jar org.python.util.jython 
c:\InteractiveConsole.py


#! /usr/bin/env python
#coding=utf-8
import sys, time
from SimpleXMLRPCServer import SimpleXMLRPCServer as Server
from code import InteractiveConsole
#from sikuli.Sikuli import *

#java -jar c:/sikuli-script.jar -s c:\InteractiveConsole.py
#java -cp c:/sikuli-script.jar org.python.util.jython c:\InteractiveConsole.py

class FileCacher:
Cache the stdout text so we can analyze it before returning it
def __init__(self): self.reset()
def reset(self): self.out = []
def write(self,line): self.out.append(line)
def flush(self):
output = ''.join(self.out)
self.reset()
return output

class Shell(InteractiveConsole):
Wrapper around Python that can filter input/output to the shell
def __init__(self):
self.stdout = sys.stdout
self.stderr = sys.stderr
self.cache = FileCacher()
InteractiveConsole.__init__(self)
return

def get_output(self): sys.stdout = self.cache  
def get_errput(self): sys.stderr = self.cache   
def return_output(self): sys.stdout = self.stdout
def return_errput(self): sys.stderr = self.stderr

def push(self,line):
self.get_output()
self.get_errput()

# you can filter input here by doing something like
# line = filter(line)
InteractiveConsole.push(self,line)

self.return_output()
self.return_errput()

output = self.cache.flush()
# you can filter the output here by doing something like
# output = filter(output)
return output

def runcmd(str): 
print str
return sh.push(str)

if __name__ == '__main__':

server_name = 127.0.0.1
server_port = 1337
global sh

srv = Server((server_name, server_port)) # as an example on the same machine

#print the init information
if not srv:
print Fail to start SimpleXMLRPCServer %s:%s %(server_name, 
server_port)
exit(1)
else:
print Started SimpleXMLRPCServer: %s:%s %(server_name, server_port)
print time.ctime()+\n


sh = Shell()
runcmd(from sikuli.Sikuli import *) 

srv.register_function(runcmd)
srv.serve_forever()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #124759]: Can you run Python and call Sikuli from there?

2011-06-22 Thread Michael Wei
Question #124759 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/124759

Michael Wei posted a new comment:
Hi All, 
I try this soultion in my machine, click() and capture() functions works well, 
but when I try to invoke find() function in sikuli, got errors below:
xmlrpclib.Fault: Fault 1: type 'exceptions.TypeError':cannot marshal type 
'org.sikuli.script.Match' objects

Do you have any suggestion here?

Thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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