install and useage sikulix [ubuntu-mate,ubuntu,debian]

automate some repetitive tasks in:
daily usage of applications or web pages
playing games
administration of IT systems and networks

based on:
http://www.sikulix.com/quickstart.html
http://www.sikuli.org/
http://www.sikuli.org/videos.html
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html
https://sikulix.wordpress.com/
http://doc.sikuli.org/keys.html
http://meta-guide.com/videography/100-best-sikuli-videos

install and remove sikuli-ide from repo so you get all dependencies:
sudo apt-get install -y sikuli-ide #possible to run with: sikuli-ide
sudo apt-get purge -y sikuli-ide

download latest sikuli from https://launchpad.net/sikuli/sikulix/1.1.0 :
cd
mkdir .mysikulix
cd .mysikulix
mkdir myscripts
#wget https://launchpadlibrarian.net/220425383/sikulixsetup-1.1.0.jar
wget https://launchpadlibrarian.net/359997648/sikulixsetup-1.1.2.jar
#java -jar sikulixsetup-1.1.0.jar
java -jar sikulixsetup-1.1.2.jar

run sikuli from terminal:
~/.mysikulix/runsikulix

create a starter:
get an icon:
mkdir ‐p ~/.local/share/icons/
cd ~/.local/share/icons/
wget -O sikulix.png https://github.com/RaiMan/SikuliX1-Docs/raw/master/src/main/resources/docs/source/ide-icon-64.png

cd ~/.local/share/applications
nano sikulix.desktop

[Desktop Entry]
Name=sikulix
Comment=gui automation
Exec=/home/xxUserxx/.mysikulix/runsikulix
Icon=/home/xxUserxx/.local/share/icons/sikulix.png
Terminal=false
Type=Application
Categories=System;Utility;Application;

use the correct username in starter:
cd ~/.local/share/applications
sed -i 's/xxUserxx/'$USER'/' sikulix.desktop

install setup:
sikulix-setup

sikulix-setup-question

sikulix-jython

sikulix-jython-ok

sikulix-test

example:
click(“startprogram.png”)
while not exists(“loginprogram.png”):
#Wait 1 second, then check again for the image.
wait(1)
click(“loginprogram.png”)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.