Cheating Network
 
 

Go Back   Cheating Network > General Computing > Programming > Tutorials / Releases
Reload this Page I need Help with AHK image search



Tutorials / Releases

This is a discussion about I need Help with AHK image search within the Tutorials / Releases section, where you will Any tutorials or releases should be posted here.



Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2007, 09:29 PM   #1 (permalink)
Senior Member
 
kad77's Avatar
 
Join Date: Dec 2007
Location: Earth
Posts: 293
Reputation: 0
kad77 is an unknown quantity at this point
Default

ok I have started a bot and need it to do an image search I have gotten the picture and how to I put it into the bot so it searchs it?
kad77 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2007, 09:31 PM   #2 (permalink)
Jay
Member
 
Join Date: Dec 2007
Posts: 47
Reputation: 0
Jay is an unknown quantity at this point
Default

Didnt read it but does this help. http://www.autohotkey.com/forum/topic23763.html
Jay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2007, 09:32 PM   #3 (permalink)
Senior Member
 
Seatbelt99's Avatar
 
Join Date: Dec 2007
Location: Grand Rapids, MI
Posts: 1,069
Reputation: 68
Seatbelt99 will become famous soon enough
Send a message via AIM to Seatbelt99 Send a message via MSN to Seatbelt99
Default

ImageSearch,OutPutX, OutPutY,6, 113, 985, 780, image.bmp

Output x and y are the variables of where the image was found.

The 6, 113 is the top left coordinate of where you want the search to start

the 985, 780 is the bottom right coordinate of where you want the search to end.
__________________
Seatbelt99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2007, 09:39 PM   #4 (permalink)
Senior Member
 
Join Date: Dec 2007
Posts: 106
Reputation: 0
bam5 is an unknown quantity at this point
Send a message via AIM to bam5 Send a message via Yahoo to bam5
Default

This should be in the "Questions in general" sub-forum.
__________________
<div align="CENTER">Chickbot haha hobdiddy
</div>
<div align="CENTER"><a href="http://anonym.to/?http://cnetelite.977mb.com" target="_blank">CNET ELITE Website (better looking now...)
</a></div>
bam5 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2007, 09:40 PM   #5 (permalink)
Senior Member
 
kad77's Avatar
 
Join Date: Dec 2007
Location: Earth
Posts: 293
Reputation: 0
kad77 is an unknown quantity at this point
Default

ok how do I make it so once it finds the picture it clicks on it?
kad77 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2007, 09:48 PM   #6 (permalink)
Senior Member
 
Seatbelt99's Avatar
 
Join Date: Dec 2007
Location: Grand Rapids, MI
Posts: 1,069
Reputation: 68
Seatbelt99 will become famous soon enough
Send a message via AIM to Seatbelt99 Send a message via MSN to Seatbelt99
Default

<div class='quotetop'>QUOTE (kad77 @ Dec 10 2007, 09:40 PM) <{POST_SNAPBACK}></div><div class='quotetop'>QUOTE </div>
Quote:
ok how do I make it so once it finds the picture it clicks on it?[/b][/b]
loop, 50
{
ImageSearch,OutPutX, OutPutY,6, 113, 985, 780, image.bmp
If errorlevel = 0
Click, %OutputX%, %OutputY%
}


This will check for the image 50 times, if it finds it it will click on the top left pixel of it.

I have had issues with the top left pixel actually not being clickable, so I personally do this (depending on the size of the image)

loop, 50
{
ImageSearch,OutPutX, OutPutY,6, 113, 985, 780, image.bmp
If errorlevel = 0
OutputX += 5
OutputY += 5
Click, %OutputX%, %OutputY%
}


This will make it click on a pixel five down and five to the right of the top left...If you get what I am saying!
__________________
Seatbelt99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2007, 09:54 PM   #7 (permalink)
Über Moderator
 
MagicalCanOfSprite's Avatar
 
Join Date: Dec 2007
Posts: 264
Reputation: 2
MagicalCanOfSprite is an unknown quantity at this point
Default

<div class='quotetop'>QUOTE (Seatbelt99 @ Dec 10 2007, 09:48 PM) <{POST_SNAPBACK}></div><div class='quotetop'>QUOTE </div>
Quote:
I have had issues with the top left pixel actually not being clickable, so I personally do this (depending on the size of the image)

loop, 50
{
ImageSearch,OutPutX, OutPutY,6, 113, 985, 780, image.bmp
If errorlevel = 0
OutputX += 5
OutputY += 5
Click, %OutputX%, %OutputY%
}


This will make it click on a pixel five down and five to the right of the top left...If you get what I am saying![/b][/b]
You could also just make the bitmap so that the only parts that are in the bitmap are clickable.
MagicalCanOfSprite is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
ahk, image, search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Search (AHK) Basic Question sapphirenightz Programming 9 09-30-2008 02:35 PM
Image Mender m7iders Software Discussion 3 05-17-2008 03:50 PM
Image scanning question assault14 Chit Chat 1 05-09-2008 06:11 PM
Attach Files To An Image ahage16 Software Discussion 5 02-03-2008 02:43 PM
Image verify casper89 Programming 15 01-13-2008 05:15 PM


Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.