0

I am able to use sikuli methods in python. But no idea about using in ruby. My professor told me to use ruby instead of python. So, can someone could help me out with this. Small code snippet or steps would be appreciated. If I want to use below python code in ruby, what all changes I have to make?

from sikuli.Sikuli import *
from sikuliwrapper import *

class abc(object):
    def _init_(self):
            self.appCoordinates = (0,0,1024,768)

  def action(self, *args):
           find("abc.png")
           click("select.png")
Javier Brooklyn
  • 624
  • 3
  • 9
  • 25
Yashwanth Nataraj
  • 183
  • 3
  • 5
  • 16

2 Answers2

2

Not going to lie.

http://rubygems.org/gems/sikuli

Its pretty easy to find.

Jakob Bowyer
  • 33,878
  • 8
  • 76
  • 91
1

Yes you can do anything using gem sikuli in ruby

  1. gem install sikuli
  2. you can write function like this
  def self.sikuli_move
    screen = Sikuli::Screen.new
    screen.click(200, 0)
  end

For more details check out this link

  1. http://rubygems.org/gems/sikuli/versions/0.2.1
  2. http://rubygems.org/gems/sikuli
BenMorel
  • 34,448
  • 50
  • 182
  • 322
Sourabh
  • 207
  • 1
  • 8