Marcelo Galvani

Dec 21, 2009

Farmville - Script with AutoHotKey

Posted by: Marcelo Galvani In: General

Tired of clicking to harvest 484 times, 484 times to prepare the land for planting and 484 times, I decided to write a script using AutoHotKey .

Follows the algorithm:

^! P :: Pause

^! :: F

MyVar1 = 193, x coordinate
MyVar2 = 454, y coordinate
= 22 lines, number of lines
Columns = 22, number of columns

MyVar3: MyVar1 = + 25
MyVar4: MyVar2 = - 12
cLinhas = 0
cColunas = 0

$ F1 ::
while (cColunas <Columns)
{
if GetKeyState ("F1", "P")
break
while (cLinhas <Rows)
{
if GetKeyState ("F1", "P")
break
; If not (and clinhas cColunas = 11 = 10)
Click MyVar1%%%% MyVar2
MyVar1 = + 25
MyVar2 = + 12
cLinhas + +
}
MyVar1: = MyVar3
MyVar2: = MyVar4
MyVar3 = + 25
MyVar4-12 =
cColunas + +
cLinhas: = 0
}
return

He literally "click" at all points of its products with just one command. It can be used to harvest, prepare the soil and plant.

The variables to be observed are:

MyVar1 = 193, x coordinate of the "click" leftmost
MyVar2 = 454, y coordinate of the "click" leftmost
= 22 lines, number of lines
Columns = 22, number of columns

The coordinates can be found with the help of their own AutoHotKey, Spy by Windows.

The command that runs the script is Ctrl + Alt + F.

The F1 key will abort the script

The Ctrl + Alt + P pauses and continues.

The script now works in full screen, in a field of 22 × 22, with the maximum zoom-out (when it gets too small)

I want to make clear that the goal is not to circumvent the rules of the game, not for profit (the script is not marketed and used software nor is mine), but only to avoid the absurd amount of clicks without using tractors. If the folks at Zynga feel offended, just tell that I remove the post.

Good game!

Be Sociable, Share!
No tags for this post.

Facebook comments:

No Responses to "Farmville - with AutoHotKey Script"

Comment Form


  • Wander: It is ridiculous and unacceptable that there are people who are blind or dumb they still can not see what this damn government that we do, we who work
  • Sabrina: I disagree because I believe that the constitution prohibits any kind of limitation on traffic by means of taxes, except "conserved pathway" by
  • Eliezer: Hello everybody. The return proposed by the government focuses only on goods the tax is collected on the purchase. Was recently established

Flickr Photostream

About

Paulistano trintão, daddy of a beautiful daughter, married to a beautiful woman, curious and enthusiastic to the extreme technology.