detecting a picture

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: detecting a picture

Re: detecting a picture

by Mightykiller » 19 Nov 2017, 15:40

Tanks man i will try

Re: detecting a picture

by Spawnova » 18 Nov 2017, 21:38

First you will want to read the docs on ImageSearch

Here's an example

Code: Select all


#if foundImage ;the below hotkey only works if an image was found
    alt::
    mousemove,foundX,foundY
    foundImage := false ;disables hotkey, until next time you find an image
    return
#if

f1:: ;press f1 to scan for image.png
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 image.png ;search the entire screen, using image.png with a shade variance of 50 pixels
if (errorlevel = 0) {
    foundImage := true
} else {
    foundImage := false
}
return

Re: detecting a picture

by Mightykiller » 18 Nov 2017, 18:51

HELLO ANYONE HERE XD ?

detecting a picture

by Mightykiller » 17 Nov 2017, 13:12

Hello so i need to start working on a project and i need help.
First i need to detect a picture on my screen
second when i press ALT my mouse cursor will aim on that picture

thats all i need can anyone help?

Top