Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
klick

AutoHotKey noob seeks help.

Recommended Posts

Hi ppl,

 

I haven't use AutoHotKey and the likes before.

But now I need an autoclicker urgently that will recognize images and clicks on them

(Page 1, search for IMAGE1, click on it -> Page 2 , search for IMAGE 2, click on it -> Page 3, click here .... rinse and repeat)

 

Can autohotkey do that? and how hard is it?

 

I already have some images but they're in 24-bit BMP.  Will it work with AutoHotKey?

 

Appreciate if someone can give me something to work on so it's easier for me to jumpstart.

 

Thank you for your time.

 

 

Klick.

 

Share this post


Link to post
Share on other sites

Very possible, not to hard here is a link to the ImageSearch document for autohotkey

http://www.autohotkey.com/docs/commands/ImageSearch.htm

 

An example would be like

CoordMode Pixel
f1::  ;f1 executes the following code
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, image.png ;foundx and foundy output the x and y coordinates,
if ErrorLevel = 0 ;0 = an image was found
{
click,left,%FoundX%,%FoundY% ;left click the image x,y
sleep 500 ;sleep is usefull if you need to wait for something, in the case wait after click for half a second
MsgBox The image was found at %FoundX%,%FoundY%.
}

return ;return to an idle state

Edit: also here is a link to a page where you can download notepad++ and autohotkey syntax highlighting for it, I recommend checking it out as it makes things alot easier.

http://ahkscript.org/boards/viewtopic.php?f=7&t=50

Edited by Spawnova

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...