Code Monkey home page Code Monkey logo

helios's Introduction

Helios

Project Status: WIP โ€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. License: MIT

Helios is a GUI automation tool written in Go - it automates anything that you can see on your screen. Helios uses image recognition powered by OpenCV under-the-hood. You can use Helios to automate GUI testing, video games and more.

Example:

package main

import (
	. "github.com/j7mbo/helios"
	"time"
)

func main() {
    // Initialise helios without any configuration
    app := NewApplication(nil)
    // Load .gopher.png and expect to find it at 0.9 / 1.0 confidence
    gopherImage, _ := NewImage("./gopher.png", 0.9)
    // Find the gopher image on-screen
    gopher := app.GetScreen().Find(gopherImage)
    // Highlight it for two seconds
    gopher.Highlight(2 * time.Second)
    // Click at a random (X,Y) coordinate within the matched box
    gopher.Click()
}

The Gopher from Goland, highlighted for 2 seconds:

Found Gopher

Installation

MacOS

brew install pkg-config
brew install opencv

Docs

TBD...

Upcoming work

  • Ability to define Regions to search
  • Abstraction for finder
  • Works with any resolution
  • Wait X seconds for an image to appear
  • Offsets for regions
  • Stable supported api
  • Support and releases for Windows, Linux (MacOS already supported)
  • Moving highlight box during highlighting
  • Support for multiple screens
  • Fix for issue #1 - no need to embed a highlighter binary
  • Embedding OpenCV directly, 0 dependency binary (need help with this)
  • API for interfacing with other languages
  • OCR, text extraction
  • GUI for region and image selection, scripting language (this'll be a fun one)
  • Tests...

helios's People

Contributors

j7mbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rpdg

helios's Issues

Highlighting without running multiple binaries

Right now we use fyne to draw a rectangle on the screen, overlayed with a transparent window.

Due to fyne-io/fyne#3063, we have to isolate the fyne run-loop in it's own binary, embed the binary in helios, and then run from memory. This is obviously far less than ideal.

Either wait for the above bug to be fixed, which means the highlighter can then be run internally and the run loop just cancelled / restarted at runtime, or else find an alternative method of highlighting a region of the screen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.