ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

How can I detect an image & click it


  • Please log in to reply
How can I detect an image & click it

#1

Lovvly
Lovvly
    Offline
    0
    Rep
    21
    Likes

    lonely

Posts: 232
Threads: 14
Joined: Mar 17, 2018
Credits: 0

Six years registered
#1

So I've created a program with autoit which recognizes images & allows me to click them , but since there wasn't many other options I could add I decided to create a similar one in java but I still can't find any library to recognize images on a specific window if you have any idea on how I can do it please tell me !


  • 0

#2

fang
fang
    Offline
    1
    Rep
    1
    Likes

    Member

Posts: 42
Threads: 8
Joined: Jan 04, 2017
Credits: 0
Seven years registered
#2

What kind of window? browser?


  • 0

#3

Lovvly
Lovvly
    Offline
    0
    Rep
    21
    Likes

    lonely

Posts: 232
Threads: 14
Joined: Mar 17, 2018
Credits: 0

Six years registered
#3

yeh like chrome or a game client to be more precise league of legend's client


  • 0

#4

willywillywoo
willywillywoo
    Offline
    2
    Rep
    9
    Likes

    Member

Posts: 71
Threads: 2
Joined: Apr 04, 2018
Credits: 0

Six years registered
#4

Technically everything on your screen is an image... so can you be a little more precise? Say you have image A that you are looking for from league of legends. Will it try to look at the computer generated graphics to see if image A is on there? Or will it be looking for the image as a resource that the client is using before it paints it on to a frame your computer projects??


  • 1

#5

PotTimeAcc
PotTimeAcc
    Offline
    0
    Rep
    -2
    Likes

    PotTime

  • PipPipPipPip
Posts: 96
Threads: 1
Joined: Aug 12, 2018
Credits: 0
Five years registered
#5

Use Image or BufferedImage or a thing like this


  • 0

Minecraft account cracker. C++, C# .NET, Back-End and Java developer. Come Discord: PotTime#1695


#6

willywillywoo
willywillywoo
    Offline
    2
    Rep
    9
    Likes

    Member

Posts: 71
Threads: 2
Joined: Apr 04, 2018
Credits: 0

Six years registered
#6

Use Image or BufferedImage or a thing like this

 How would this help? He is asking about how to detect an image while bufferedimage and image is literally an image. Has nothing to do with detection of an image.


  • 0

#7

Lovvly
Lovvly
    Offline
    0
    Rep
    21
    Likes

    lonely

Posts: 232
Threads: 14
Joined: Mar 17, 2018
Credits: 0

Six years registered
#7

Technically everything on your screen is an image... so can you be a little more precise? Say you have image A that you are looking for from league of legends. Will it try to look at the computer generated graphics to see if image A is on there? Or will it be looking for the image as a resource that the client is using before it paints it on to a frame your computer projects??

I would like it to search for a button for example & I'll have the link to an image of that button in the code , it'll have to spot that button & move the mouse cursor to it


  • 0

#8

willywillywoo
willywillywoo
    Offline
    2
    Rep
    9
    Likes

    Member

Posts: 71
Threads: 2
Joined: Apr 04, 2018
Credits: 0

Six years registered
#8

I would like it to search for a button for example & I'll have the link to an image of that button in the code , it'll have to spot that button & move the mouse cursor to it

Okay, so my understanding so far is that it will try to match an image you already have in a larger image. I did a little bit of looking at google and came up with a few ideas:

 

A: Runescape bots sometimes use color recognition and if you look at the source code for ones in java, you may be able to recreate what they used. 

 

B: There was also something interesting called Sikuli that could be used with java. It was made for automating testing of UI but for what I think you are doing, it will do just fine. Technically, you are interacting with the UI of the league client. 

 

I am not saying either of these will work, but it is just what I came up with and what I would investigate first.


  • 1

#9

Lovvly
Lovvly
    Offline
    0
    Rep
    21
    Likes

    lonely

Posts: 232
Threads: 14
Joined: Mar 17, 2018
Credits: 0

Six years registered
#9

Okay, so my understanding so far is that it will try to match an image you already have in a larger image. I did a little bit of looking at google and came up with a few ideas:

 

A: Runescape bots sometimes use color recognition and if you look at the source code for ones in java, you may be able to recreate what they used. 

 

B: There was also something interesting called Sikuli that could be used with java. It was made for automating testing of UI but for what I think you are doing, it will do just fine. Technically, you are interacting with the UI of the league client. 

 

I am not saying either of these will work, but it is just what I came up with and what I would investigate first.

That's exactly what I needed runescape bots are what I need I did a little of reverse engineering & it worked out well , thanks !


  • 0

#10

DRAGO579
DRAGO579
    Offline
    0
    Rep
    1
    Likes

    Junkie

  • PipPipPipPipPipPip
Posts: 322
Threads: 0
Joined: Jul 29, 2018
Credits: 0
Five years registered
#10

What method did you use?


  • 0


 Users browsing this thread: