| View previous topic :: View next topic |
| Author |
Message |
Micah Grandmaster Cheater
Reputation: 1
Joined: 30 Mar 2007 Posts: 833
|
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Tue Oct 28, 2008 9:23 am Post subject: |
|
|
Well, there's not really specifically a best language for writing macro programs in, and it's not just going to give you a function to click on a specified image on the screen.
Your best hopes, I would say, would be to get every other pixel colour in the image you want to find, and get every other pixel colour on the screen. Then compare the arrays of pixels to find the same pixel colours and arrangements.
If you find it, move the mouse to those coordinates and click.  _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Tue Oct 28, 2008 10:45 am Post subject: |
|
|
| --Pillboi-- wrote: | Well, there's not really specifically a best language for writing macro programs in, and it's not just going to give you a function to click on a specified image on the screen.
Your best hopes, I would say, would be to get every other pixel colour in the image you want to find, and get every other pixel colour on the screen. Then compare the arrays of pixels to find the same pixel colours and arrangements.
If you find it, move the mouse to those coordinates and click.  |
Thats such a long way of doing things, your right about there not being a function to click on an image, but i think pixelsearch is to long.
If the image is always in the same place, then its a simple matter of mouse move and mouse click. |
|
| Back to top |
|
 |
Habufe Expert Cheater
Reputation: 0
Joined: 03 Sep 2007 Posts: 149 Location: http://www.SaviourFagFails.com/
|
Posted: Tue Oct 28, 2008 11:49 am Post subject: |
|
|
| auto hotkey? |
|
| Back to top |
|
 |
Micah Grandmaster Cheater
Reputation: 1
Joined: 30 Mar 2007 Posts: 833
|
Posted: Tue Oct 28, 2008 2:44 pm Post subject: |
|
|
Yeah I am using autohotkey, but I am pretty sure it has an image search function.
The thing is, the picture doesn't stay in one spot... Otherwise I wouldn't be in this situation. _________________
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Tue Oct 28, 2008 3:02 pm Post subject: |
|
|
AutoIt.
It's a scripting language for bots/macro's. It has some sort of image-find function. |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Tue Oct 28, 2008 3:05 pm Post subject: |
|
|
| SXGuy wrote: | | If the image is always in the same place, then its a simple matter of mouse move and mouse click. |
I was assuming that it didn't stay in the same place, and was right.
However, unless theirs a better algorithm for it, I would say it was his only option. _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Tue Oct 28, 2008 3:39 pm Post subject: |
|
|
Is using javascript / a greasemonkey script an option?
| Code: |
imgurl = "http://mwdirect.static.zynga.com/mwms/graphics/item_shiv_01.gif"
collection = document.getElementsByTagName("img");
for(i=0; i<collection.length && collection[i].src != imgurl; i++);
if(i == collection.length)
alert("image not found");
else {
collection[i].click(); // if its an onClick
collection[i].parentNode.click() // if the image is inside a link (<a ...><img ... /></a>)
}
|
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Oct 29, 2008 4:40 am Post subject: |
|
|
It's probably flash or non-browser, but worth a try asking.  _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
|