Giter Site home page Giter Site logo

fjxhkj / ahk-cgdipsnapshot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evilc/ahk-cgdipsnapshot

0.0 2.0 0.0 536 KB

An AHK library for working with snapshots of a portion of the screen (compare, easy conversion etc) using the GDI+ library

AutoHotkey 100.00%

ahk-cgdipsnapshot's Introduction

AHK-CGDipSnapShot

An AHK library for working with snapshots of a portion of the screen (compare, easy conversion etc)

###What does it do? It adds a layer on top of the GDI+ ("Gdip") library that introduces the concept of Snapshots.

A Snapshot is a screen grab of a box from the screen, which can then be examined using a command syntactically similar to AHK's PixelGetColor command. Pixel checks can be done using coordinates relative to the Screen or to the Snapshot.

The advantage of this technique is that you can perform multiple checks on an area of the screen, without the worry of the screen changing between one check and another.

You can also take multiple Snapshots at any given moment(s), easily save Shapshots to disk, and also a mechanism is provided to easiliy display Snapshots on the screen.

Example script included.

###Using this library in your projects ####Setup #####All Methods Obtain Gdip_all.ahk from here and place in C:\Program Files\AutoHotkey\lib Then follow either "easy" or "manual" method.

#####Easy Method

  1. Clone this project using GitHub for Windows. You can click here On the main page for this project on GitHub, click Clone in Desktop on the right edge of the page.
    Or you can try this link.
    This will clone this Project ("Repository") onto your computer.
    If there are updates to this Library, you can then Synch with GitHub to get the latest version.
  2. Run Setup.exe from the repoistory you just downloaded.
    This will check you are all set up to use the library and configure AutoHotkey so you can easily include the library in any script in any folder on your computer.
  3. Check the DEVELOPER NOTES section to see if there are any special instructions, then click Install.
  4. You are now set up and can use this library by putting the following line at the start of your script:
    #include <CGDipSnapshot>

#####Manual Method If you know what you are doing, or are paranoid, or both, you can just obtain the files and #include as normal. The Setup app simply makes it easy for people who don't really know what they are doing to get up and running with this library. It performs the following main functions:
Check for out-of-date AHK version from Autohotkey.com, instead of an up-to-date version from http://ahkscript.org
Create an ahk file in your AHK lib folder (Usually C:\Program Files\Autohotkey\Lib) that includes the file(s) from this repository in the Github folder - thus allowing you to keep this lib in the Github repo folder, but include it from anywhere via #include<> syntax.

####Usage Help on usage should be obtainable from the following sources (Best to Worst):

  • Project Wiki
  • Example scripts.
    These usually illustrate basic set-up and usage.
  • Library Source.
    May need to check this to see full list of features.

ahk-cgdipsnapshot's People

Contributors

evilc avatar

Watchers

 avatar  avatar

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.