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
Lines = 22, number of lines
Columns = 22, number of columns

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

$ F1::
while (cColunas <Columns)
{
if GetKeyState ("F1", "P")
UPS
while (cLinhas <Rows)
{
if GetKeyState ("F1", "P")
UPS
; 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 plantation with one command. It can be used to harvest, prepare the soil for planting.

The variables to be observed are:

MyVar1 = 193, x coordinate of the "click" to the left
MyVar2 = 454, y coordinate of the "click" to the left
Lines = 22, 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 clarify that the goal is not to circumvent the rules of the game, not for profit (the script is not traded and neither are my software used), but only to avoid the ridiculous amount of clicks without using tractors. If the folks at Zynga feel offended, just let us know that I remove the post.

Good game!

No tags for this post.

Facebook comments:

No Responses to "Farmville - with AutoHotKey Script"

Comment Form

Categories

Translator

Portuguese flagItalian flagEnglish flagGerman flagFrench flagSpanish flag

What I'm Doing ...


  • Mauricio de Oliveira Ignatius: OR HAVE COME AND GO RIGHT TO HAVE OR NOT, IS THERE A CONSENSUS THAT, IF WE ARE REQUIRED TO PAY IS SO CLEAR THAT WE DO NOT HAVE THIS RIGHT, CONC
  • Pablo: We already pay a toll when we put gasoline and automobile taxes as well. I believe the government should take the value of the two taxes together and pass
  • Marcel Ribeiro: Some people who "think" understood there as our friend told Fernando that "everyone wants to walk in a well maintained road but nobody wants to p

Flickr photostream

    About

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