Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-14 Thread BrazilMac
Question #673806 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673806

Status: Answered => Solved

BrazilMac confirmed that the question is solved:
Thanks RaiMan, that answers 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 #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
Question #673806 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673806

BrazilMac posted a new comment:
HI masuo thanks for your reply.

It has worked before, so thats why Im puzzled...on osx environment it
works fine, when defined at the end of file. On linux, there are times
that it works, but most of the time it doesnt...

-- 
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 #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
Question #673806 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673806

BrazilMac gave more information on the question:
If it helps, Im developing this on OSX, and testing on a linux machine
on mac, the error does not come up and the function logout() executes as
it should

-- 
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 #673458]: Trying to Run sikuli-ide on Ubuntu 16.04 - Errors

2018-09-13 Thread BrazilMac
Question #673458 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673458

BrazilMac 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 #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
New question #673806 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673806

Here is my script:





wait("1536669464524.png")
click("1536669473041.png")
click("1536669473041.png")
wait("1536669757342.png",30)
if find("1536669757342.png"):

#Use pre-defined hotkeys on api app 
type('u', KeyModifier.CTRL)
wait(1)
type('c', KeyModifier.CMD)
username = Env.getClipboard()

type('p', KeyModifier.CTRL)
wait(1)
type('c', KeyModifier.CMD)
password = Env.getClipboard()

type('s', KeyModifier.CTRL)
wait(1)
type('c', KeyModifier.CMD)
search = Env.getClipboard()

wait("1536657404192.png")
click("1536657070381.png")

click("1536657070381.png")

wait(1) 
type(username)
type(Key.TAB)
wait(1) 
type(password)

click("1536657336512.png")
if exists("1536672253666.png") :

print('PASS IS INCORRECT')
type(Key.ESC)
wait(1)
click("1536687573573.png")
click("1536687573573.png")

else :

wait("1536671840980.png")
while exists(Pattern("1536683293833.png").similar(0.90), 0):

click("1536671852025.png")
click("1536671852025.png")
click("1536671878418.png")
wait(1)
type(search)
wait("1536675224487.png")
click("1536675224487.png")
wait(1)

if exists("1536685239396.png") :

print('ACCOUNT INVALID')
logout()
click(Pattern("1536687625649.png").similar(0.79))
click(Pattern("1536687625649.png").similar(0.79))

else: 
click("1536677027804.png")
wait(1)
type(Key.ESC)
wait(10)
click(Pattern("1536676724489.png").targetOffset(-18,-1))
click("1536675568133.png")
click("1536675568133.png")
wait(1)
type('s', KeyModifier.CTRL)
wait(1)
type('c', KeyModifier.CMD)
search = Env.getClipboard()

logout()
click("1536689430382.png")
click("1536689430382.png")



def logout():

click("1536684131754.png")
click("1536684131754.png")

click("1536683889988.png")
click("1536683905637.png")
click("1536683920971.png")


---

It was working fine, but for some reason this message started popping up. any 
clues?

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 #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
I will check it out and come back :D

-- 
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 #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
Thanks Raiman,

As I plan to run this on Linux, I am running 1.1.3 instead. On my Ubuntu
16 box I have Java

OpenJDK 1.8.0_181
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

-- 
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 #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
Hi RaiMan, thanks so much!!! This would be such great 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


[Sikuli-driver] [Question #673707]: Javascript Examples Anywhere?

2018-09-11 Thread BrazilMac
New question #673707 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673707

Hi Everyone,

I am new to SIkuli, I managed to code a simple script using the IDE...I am a 
proficiend JS/Node dev and Im wondering if there are any examples of a script 
written in pure javascript, is it possible? And if so, whats the approach for 
call all the functions as in the IDE, do I need to make any "require" and such? 
I needed some more advanced stuff but a bit stuck here

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 #673341]: Cant Open Certain Apps using App.open() or os.popen()

2018-09-11 Thread BrazilMac
Question #673341 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673341

Status: Needs information => Open

BrazilMac gave more information on the question:
Hi Raiman, apologies for the delay, was away!

OSX El Captain 10.11.16

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

I have a docker build running Ubuntu 16 and it works fine there :D

-- 
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 #673458]: Trying to Run sikuli-ide on Ubuntu 16.04 - Errors

2018-09-07 Thread BrazilMac
Question #673458 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673458

Status: Answered => Solved

BrazilMac confirmed that the question is solved:
Thanks again RaiMan, I just copied the setup jar file to my linux
install, and it is working flawlessly

Appreciated!

-- 
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 #673458]: Trying to Run sikuli-ide on Ubuntu 16.04 - Errors

2018-09-07 Thread BrazilMac
New question #673458 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673458

Hi All,

Tried to install/run sikuli IDE on Ubuntu 16:04, here is my file list inside of 
/usr/share/java

JXGrabKey-0.3.2.jar  asm3-commons.jar  asm4-analysis.jar
atinject-jsr330-tck-1.0.jar  jline-1.0.jarjunit-3.8.2.jar   
 sikuli-script-1.0~x~rc3.tesseract3.jar
JXGrabKey.jarasm3-debug-all-3.3.2.jar  asm4-commons-5.0.4.jar   
atinject-jsr330-tck.jar  jline.jarjunit.jar 
 sikuli-script.jar
antlr-2.7.7.jar  asm3-debug-all.jarasm4-commons.jar 
constantine.jar  jnr-constants-0.8.6.jar  jython-2.5.3.jar  
 stringtemplate-3.2.1.jar
antlr.debug.jar  asm3-tree-3.3.2.jar   asm4-debug-all-5.0.4.jar 
forms.jarjnr-constants.jarjython.jar
 stringtemplate.jar
antlr.jarasm3-tree.jar asm4-debug-all.jar   
gettext.jar  jnr-ffi-1.0.10.jar   libconstantine.jar
 swing-layout-1.0.4.jar
antlr3-3.2.jar   asm3-util-3.3.2.jar   asm4-tree-5.0.4.jar  
guava-19.0.jar   jnr-ffi.jar  libintl.jar   
 swing-layout.jar
antlr3-runtime-3.2.jar   asm3-util.jar asm4-tree.jar
guava.jarjnr-netdb-1.1.4.jar  
libreadline-java-0.8.0.1.jar   swingx-beaninfo-1.6.2-SNAPSHOT.jar
antlrall.jar asm3-xml-3.3.2.jarasm4-util-5.0.4.jar  
java_defaults.mk jnr-netdb.jarlibreadline-java.jar  
 swingx-beaninfo.jar
asm3-3.3.2.jar   asm3-xml.jar  asm4-util.jar
jffi-1.2.7.jar   jnr-posix-3.0.12.jar 
livetribe-jsr223-2.0.6.jar swingx-core-1.6.2-SNAPSHOT.jar
asm3-all-3.3.2.jar   asm3.jar  asm4-xml-5.0.4.jar   
jffi.jar jnr-posix.jarlivetribe-jsr223.jar  
 swingx-core.jar
asm3-all.jar asm4-5.0.4.jarasm4-xml.jar 
jgoodies-common-1.4.0.jarjnr-x86asm-1.0.2.jar 
mac_widgets-0.10.0+svn416.jar  swingx.jar
asm3-analysis-3.3.2.jar  asm4-all-5.0.4.jarasm4.jar 
jgoodies-common.jar  jnr-x86asm.jar   mac_widgets.jar
asm3-analysis.jarasm4-all.jar  atinject-jsr330-api-1.0.jar  
jgoodies-forms-1.6.0.jar jsr305-0.1~+svn49.jaropencv-249.jar
asm3-commons-3.3.2.jar   asm4-analysis-5.0.4.jar   atinject-jsr330-api.jar  
jgoodies-forms.jar   jsr305.jar   opencv.jar



It seems that the instructions here:

https://bugs.launchpad.net/ubuntu/+source/sikuli/+bug/1313398


#!/bin/sh

LC_NUMERIC=C exec /usr/bin/java -cp 
"/usr/share/java/jna.jar:/usr/share/java/asm3.jar:/usr/share/java/asm3-commons.jar:/usr/share/java/antlr3-runtime.jar:/usr/share/java/libconstantine-java.jar:/usr/share/java/jython.jar:/usr/share/java/commons-cli.jar:/usr/share/java/JXGrabKey.jar:/usr/share/java/json_simple.jar:/usr/share/java/swing-layout.jar:/usr/share/java/swingx-core.jar:/usr/share/java/forms.jar:/usr/share/java/jgoodies-common.jar:/usr/share/java/mac_widgets.jar:/usr/share/java/junit.jar:/usr/share/sikuli/sikuli-ide.jar:/usr/share/java/sikuli-script.jar:/usr/share/maven-repo/com/google/guava/guava/debian/guava-debian.jar:/usr/share/maven-repo/org/jruby/ext/posix/jnr-posix/debian/jnr-posix-debian.jar:/usr/share/java/jaffl.jar"
 -Dsikuli.console=true -Dsikuli.debug=3 -Xms64M -Xmx512M -Dfile.encoding=UTF-8 
-Dpython.home=/usr/share/jython -Dpython.path="/usr/share/sikuli/Lib" 
-Dpython.cachedir=$HOME/.jython-cache org.sikuli.ide.SikuliIDE "$@"

Not all files are on my list


Any clues?



-- 
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 #673341]: Cant Open Certain Apps using App.open() or os.popen()

2018-09-05 Thread BrazilMac
Question #673341 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673341

Status: Answered => Open

BrazilMac is still having a problem:
Hi RaiMan, thank you very much for your reply.

I have tried (manually) using Open /Applications/Spotify.app for
example, it works as expected.

But via script on IDE, same issue.

I am running 1.1.3 as I plan to move the script later to be run on
Ubuntu

I will record a video to show exactly what happens

-- 
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 #673341]: Cant Open Certain Apps using App.open() or os.popen()

2018-09-04 Thread BrazilMac
New question #673341 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673341

Hi,

Im on a Mac, running version 1.1.3

I have tried with the below apps:

App.open("/Applications/Dictionary.app")
App.open("/Applications/Calendar.app")

works fine, but certain apps like Firefox or Photoshop for example, the app 
will open and instantly close. I have tried also creating .sh file and using :

os.popen('sh /Users/herickpaiva/firefox.sh')

as well as:

someapp = App("App");
someapp open()

to try to open the apps, but same thing happens, app launches and "vanishes" 
instantly.

Anything else I can do?

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