Farmville

Farmvill can be a fun way to pass some time, but if your fields get to be a bit big clicking on every single field can get to be a bit tiresome. I found this autohotkey script in the depths of the internet. It simplifies the process greatly ;-)

Select All Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
!^c::
GoSub GetFarmSq
GoSub Getfirstsq
 
i=1
 
SetMouseDelay, 0
 
cycle := farmy/2
newx=%startx%
newy=%starty%
loop, %cycle%
{
Click %newx%,%newy%
Loop, %farmx%
{
newx+=25
newy-=12
Click %newx%,%newy%
}
newx+=25
newy+=12
Click %newx%,%newy%
Loop, %farmx%
{
newx-=25
newy+=12
Click %newx%,%newy%
}
newx+=25
newy+=12
}
 
return
 
GoSub Getfirstsq
 
GetFarmsq:
Inputbox, farmy, Hi, Enter the number of fields to the right to click on,,200,150,,,,,6
if ErrorLevel
GoSub Esc
Inputbox, farmx, Hi, Enter the number of fields upwards to click on,,200,150,,,,,6
if ErrorLevel
GoSub Esc
farmx--
return
 
Getfirstsq:
Msgbox, Click on the leftmost field to start with ("9 O'clock" position).
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, startx, starty
return
 
Esc:
!^x::reload
Return

Trackback URL

, ,

One Comment on "Farmville"

  1. turgut
    03/12/2009 at 10:18 am Permalink

    Wonderful…Thanks for codes…

Hi, leave a comment:


ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe to Comments