Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Facebook Farmville


  • Please log in to reply
69 replies to this topic
Alino
  • Members
  • 4 posts
  • Last active: Aug 11 2009 10:15 AM
  • Joined: 04 Aug 2009
Hello I have made this script to automatically harvest plow & plant, all fields in the game Farmville
you can look at my vid on youtube to see how it looks

here is the source
#z::

Loop
{
;Run http://apps.facebook.com/onthefarm/index.php?ref=tab
;sleep, 20000

;zoom out 2x
Sleep, 600
MouseClick, left,  905,  649
Sleep, 1200
MouseClick, left,  905,  649
Sleep, 1200

;move - to not get buged
MouseClick, left,  818,  292
Sleep, 1200

;fullscreen
MouseClick, left,  932,  650
Sleep, 1200

;POLIA HARVEST
MouseClick, left,  721,  193
Sleep, 100
MouseClick, left,  773,  219
Sleep, 100
MouseClick, left,  820,  244
Sleep, 100
MouseClick, left,  873,  268
Sleep, 100
MouseClick, left,  920,  292
Sleep, 100
MouseClick, left,  970,  315
Sleep, 100
MouseClick, left,  1021,  334
Sleep, 100
MouseClick, left,  1071,  359
Sleep, 100
MouseClick, left,  1125,  383
Sleep, 100
MouseClick, left,  1164,  406
Sleep, 100
MouseClick, left,  1218,  430
Sleep, 100
MouseClick, left,  1276,  451
Sleep, 100
MouseClick, left,  1216,  479
Sleep, 100
MouseClick, left,  1164,  452
Sleep, 100
MouseClick, left,  1115,  425
Sleep, 100
MouseClick, left,  1069,  404
Sleep, 100
MouseClick, left,  1013,  381
Sleep, 100
MouseClick, left,  960,  358
Sleep, 100
MouseClick, left,  916,  332
Sleep, 100
MouseClick, left,  866,  308
Sleep, 100
MouseClick, left,  817,  287
Sleep, 100
MouseClick, left,  760,  262
Sleep, 100
MouseClick, left,  711,  240
Sleep, 100
MouseClick, left,  657,  214
Sleep, 100
MouseClick, left,  612,  240
Sleep, 100
MouseClick, left,  668,  261
Sleep, 100
MouseClick, left,  716,  288
Sleep, 100
MouseClick, left,  763,  311
Sleep, 100
MouseClick, left,  815,  337
Sleep, 100
MouseClick, left,  863,  357
Sleep, 100
MouseClick, left,  917,  385
Sleep, 100
MouseClick, left,  967,  407
Sleep, 100
MouseClick, left,  1020,  432
Sleep, 100
MouseClick, left,  1065,  451
Sleep, 100
MouseClick, left,  1119,  476
Sleep, 100
MouseClick, left,  1170,  498
Sleep, 100
MouseClick, left,  1113,  524
Sleep, 100
MouseClick, left,  1063,  497
Sleep, 100
MouseClick, left,  1015,  477
Sleep, 100
MouseClick, left,  966,  451
Sleep, 100
MouseClick, left,  915,  425
Sleep, 100
MouseClick, left,  857,  400
Sleep, 100
MouseClick, left,  811,  376
Sleep, 100
MouseClick, left,  758,  351
Sleep, 100
MouseClick, left,  705,  327
Sleep, 100
MouseClick, left,  665,  311
Sleep, 100
MouseClick, left,  614,  287
Sleep, 100
MouseClick, left,  570,  263
Sleep, 100
MouseClick, left,  511,  286
Sleep, 100
MouseClick, left,  567,  312
Sleep, 100
MouseClick, left,  619,  331
Sleep, 100
MouseClick, left,  671,  358
Sleep, 100
MouseClick, left,  720,  378
Sleep, 100
MouseClick, left,  765,  405
Sleep, 100
MouseClick, left,  821,  431
Sleep, 100
MouseClick, left,  867,  455
Sleep, 100
MouseClick, left,  918,  475
Sleep, 100
MouseClick, left,  971,  498
Sleep, 100
MouseClick, left,  1014,  521
Sleep, 100
MouseClick, left,  1064,  553
Sleep, 100
MouseClick, left,  1016,  574
Sleep, 100
MouseClick, left,  969,  547
Sleep, 100
MouseClick, left,  919,  518
Sleep, 100
MouseClick, left,  859,  497
Sleep, 100
MouseClick, left,  816,  475
Sleep, 100
MouseClick, left,  756,  448
Sleep, 100
MouseClick, left,  722,  425
Sleep, 100
MouseClick, left,  665,  403
Sleep, 100
MouseClick, left,  618,  380
Sleep, 100
MouseClick, left,  565,  358
Sleep, 100
MouseClick, left,  517,  336
Sleep, 100
MouseClick, left,  469,  307
Sleep, 100
MouseClick, left,  415,  334
Sleep, 100
MouseClick, left,  469,  361
Sleep, 100
MouseClick, left,  522,  382
Sleep, 100
MouseClick, left,  562,  406
Sleep, 100
MouseClick, left,  612,  428
Sleep, 100
MouseClick, left,  669,  447
Sleep, 100
MouseClick, left,  723,  479
Sleep, 100
MouseClick, left,  770,  504
Sleep, 100
MouseClick, left,  820,  519
Sleep, 100
MouseClick, left,  871,  550
Sleep, 100
MouseClick, left,  921,  573
Sleep, 100
MouseClick, left,  972,  595
Sleep, 100
MouseClick, left,  922,  624
Sleep, 100
MouseClick, left,  870,  595
Sleep, 100
MouseClick, left,  815,  573
Sleep, 100
MouseClick, left,  767,  542
Sleep, 100
MouseClick, left,  717,  523
Sleep, 100
MouseClick, left,  662,  500
Sleep, 100
MouseClick, left,  608,  469
Sleep, 100
MouseClick, left,  567,  453
Sleep, 100
MouseClick, left,  512,  429
Sleep, 100
MouseClick, left,  472,  405
Sleep, 100
MouseClick, left,  424,  377
Sleep, 100
MouseClick, left,  364,  352
Sleep, 100
MouseClick, left,  321,  378
Sleep, 100
MouseClick, left,  368,  411
Sleep, 100
MouseClick, left,  420,  434
Sleep, 100
MouseClick, left,  468,  456
Sleep, 100
MouseClick, left,  518,  478
Sleep, 100
MouseClick, left,  564,  505
Sleep, 100
MouseClick, left,  617,  532
Sleep, 100
MouseClick, left,  664,  555
Sleep, 100
MouseClick, left,  724,  580
Sleep, 100
MouseClick, left,  774,  601
Sleep, 100
MouseClick, left,  818,  626
Sleep, 100
MouseClick, left,  870,  647
Sleep, 100
MouseClick, left,  816,  675
Sleep, 100
MouseClick, left,  758,  644
Sleep, 100
MouseClick, left,  712,  623
Sleep, 100
MouseClick, left,  668,  601
Sleep, 100
MouseClick, left,  603,  572
Sleep, 100
MouseClick, left,  567,  548
Sleep, 100
MouseClick, left,  519,  524
Sleep, 100
MouseClick, left,  465,  497
Sleep, 100
MouseClick, left,  418,  477
Sleep, 100
MouseClick, left,  370,  454
Sleep, 100
MouseClick, left,  318,  430
Sleep, 100
MouseClick, left,  275,  406
Sleep, 100
MouseClick, left,  219,  431
Sleep, 100
MouseClick, left,  267,  456
Sleep, 100
MouseClick, left,  319,  478
Sleep, 100
MouseClick, left,  366,  501
Sleep, 100
MouseClick, left,  416,  522
Sleep, 100
MouseClick, left,  466,  548
Sleep, 100
MouseClick, left,  516,  572
Sleep, 100
MouseClick, left,  565,  602
Sleep, 100
MouseClick, left,  618,  623
Sleep, 100
MouseClick, left,  664,  644
Sleep, 100
MouseClick, left,  715,  667
Sleep, 100
MouseClick, left,  767,  691
Sleep, 100
MouseClick, left,  716,  718
Sleep, 100
MouseClick, left,  658,  690
Sleep, 100
MouseClick, left,  613,  669
Sleep, 100
MouseClick, left,  562,  643
Sleep, 100
MouseClick, left,  514,  620
Sleep, 100
MouseClick, left,  462,  596
Sleep, 100
MouseClick, left,  415,  569
Sleep, 100
MouseClick, left,  363,  548
Sleep, 100
MouseClick, left,  314,  517
Sleep, 100
MouseClick, left,  271,  497
Sleep, 100
MouseClick, left,  212,  472
Sleep, 100
MouseClick, left,  165,  447
Sleep, 100

Sleep, 215000

;POLIA PLOW
MouseClick, left,  721,  193
Sleep, 100
MouseClick, left,  773,  219
Sleep, 100
MouseClick, left,  820,  244
Sleep, 100
MouseClick, left,  873,  268
Sleep, 100
MouseClick, left,  920,  292
Sleep, 100
MouseClick, left,  970,  315
Sleep, 100
MouseClick, left,  1021,  334
Sleep, 100
MouseClick, left,  1071,  359
Sleep, 100
MouseClick, left,  1125,  383
Sleep, 100
MouseClick, left,  1164,  406
Sleep, 100
MouseClick, left,  1218,  430
Sleep, 100
MouseClick, left,  1276,  451
Sleep, 100
MouseClick, left,  1216,  479
Sleep, 100
MouseClick, left,  1164,  452
Sleep, 100
MouseClick, left,  1115,  425
Sleep, 100
MouseClick, left,  1069,  404
Sleep, 100
MouseClick, left,  1013,  381
Sleep, 100
MouseClick, left,  960,  358
Sleep, 100
MouseClick, left,  916,  332
Sleep, 100
MouseClick, left,  866,  308
Sleep, 100
MouseClick, left,  817,  287
Sleep, 100
MouseClick, left,  760,  262
Sleep, 100
MouseClick, left,  711,  240
Sleep, 100
MouseClick, left,  657,  214
Sleep, 100
MouseClick, left,  612,  240
Sleep, 100
MouseClick, left,  668,  261
Sleep, 100
MouseClick, left,  716,  288
Sleep, 100
MouseClick, left,  763,  311
Sleep, 100
MouseClick, left,  815,  337
Sleep, 100
MouseClick, left,  863,  357
Sleep, 100
MouseClick, left,  917,  385
Sleep, 100
MouseClick, left,  967,  407
Sleep, 100
MouseClick, left,  1020,  432
Sleep, 100
MouseClick, left,  1065,  451
Sleep, 100
MouseClick, left,  1119,  476
Sleep, 100
MouseClick, left,  1170,  498
Sleep, 100
MouseClick, left,  1113,  524
Sleep, 100
MouseClick, left,  1063,  497
Sleep, 100
MouseClick, left,  1015,  477
Sleep, 100
MouseClick, left,  966,  451
Sleep, 100
MouseClick, left,  915,  425
Sleep, 100
MouseClick, left,  857,  400
Sleep, 100
MouseClick, left,  811,  376
Sleep, 100
MouseClick, left,  758,  351
Sleep, 100
MouseClick, left,  705,  327
Sleep, 100
MouseClick, left,  665,  311
Sleep, 100
MouseClick, left,  614,  287
Sleep, 100
MouseClick, left,  570,  263
Sleep, 100
MouseClick, left,  511,  286
Sleep, 100
MouseClick, left,  567,  312
Sleep, 100
MouseClick, left,  619,  331
Sleep, 100
MouseClick, left,  671,  358
Sleep, 100
MouseClick, left,  720,  378
Sleep, 100
MouseClick, left,  765,  405
Sleep, 100
MouseClick, left,  821,  431
Sleep, 100
MouseClick, left,  867,  455
Sleep, 100
MouseClick, left,  918,  475
Sleep, 100
MouseClick, left,  971,  498
Sleep, 100
MouseClick, left,  1014,  521
Sleep, 100
MouseClick, left,  1064,  553
Sleep, 100
MouseClick, left,  1016,  574
Sleep, 100
MouseClick, left,  969,  547
Sleep, 100
MouseClick, left,  919,  518
Sleep, 100
MouseClick, left,  859,  497
Sleep, 100
MouseClick, left,  816,  475
Sleep, 100
MouseClick, left,  756,  448
Sleep, 100
MouseClick, left,  722,  425
Sleep, 100
MouseClick, left,  665,  403
Sleep, 100
MouseClick, left,  618,  380
Sleep, 100
MouseClick, left,  565,  358
Sleep, 100
MouseClick, left,  517,  336
Sleep, 100
MouseClick, left,  469,  307
Sleep, 100
MouseClick, left,  415,  334
Sleep, 100
MouseClick, left,  469,  361
Sleep, 100
MouseClick, left,  522,  382
Sleep, 100
MouseClick, left,  562,  406
Sleep, 100
MouseClick, left,  612,  428
Sleep, 100
MouseClick, left,  669,  447
Sleep, 100
MouseClick, left,  723,  479
Sleep, 100
MouseClick, left,  770,  504
Sleep, 100
MouseClick, left,  820,  519
Sleep, 100
MouseClick, left,  871,  550
Sleep, 100
MouseClick, left,  921,  573
Sleep, 100
MouseClick, left,  972,  595
Sleep, 100
MouseClick, left,  922,  624
Sleep, 100
MouseClick, left,  870,  595
Sleep, 100
MouseClick, left,  815,  573
Sleep, 100
MouseClick, left,  767,  542
Sleep, 100
MouseClick, left,  717,  523
Sleep, 100
MouseClick, left,  662,  500
Sleep, 100
MouseClick, left,  608,  469
Sleep, 100
MouseClick, left,  567,  453
Sleep, 100
MouseClick, left,  512,  429
Sleep, 100
MouseClick, left,  472,  405
Sleep, 100
MouseClick, left,  424,  377
Sleep, 100
MouseClick, left,  364,  352
Sleep, 100
MouseClick, left,  321,  378
Sleep, 100
MouseClick, left,  368,  411
Sleep, 100
MouseClick, left,  420,  434
Sleep, 100
MouseClick, left,  468,  456
Sleep, 100
MouseClick, left,  518,  478
Sleep, 100
MouseClick, left,  564,  505
Sleep, 100
MouseClick, left,  617,  532
Sleep, 100
MouseClick, left,  664,  555
Sleep, 100
MouseClick, left,  724,  580
Sleep, 100
MouseClick, left,  774,  601
Sleep, 100
MouseClick, left,  818,  626
Sleep, 100
MouseClick, left,  870,  647
Sleep, 100
MouseClick, left,  816,  675
Sleep, 100
MouseClick, left,  758,  644
Sleep, 100
MouseClick, left,  712,  623
Sleep, 100
MouseClick, left,  668,  601
Sleep, 100
MouseClick, left,  603,  572
Sleep, 100
MouseClick, left,  567,  548
Sleep, 100
MouseClick, left,  519,  524
Sleep, 100
MouseClick, left,  465,  497
Sleep, 100
MouseClick, left,  418,  477
Sleep, 100
MouseClick, left,  370,  454
Sleep, 100
MouseClick, left,  318,  430
Sleep, 100
MouseClick, left,  275,  406
Sleep, 100
MouseClick, left,  219,  431
Sleep, 100
MouseClick, left,  267,  456
Sleep, 100
MouseClick, left,  319,  478
Sleep, 100
MouseClick, left,  366,  501
Sleep, 100
MouseClick, left,  416,  522
Sleep, 100
MouseClick, left,  466,  548
Sleep, 100
MouseClick, left,  516,  572
Sleep, 100
MouseClick, left,  565,  602
Sleep, 100
MouseClick, left,  618,  623
Sleep, 100
MouseClick, left,  664,  644
Sleep, 100
MouseClick, left,  715,  667
Sleep, 100
MouseClick, left,  767,  691
Sleep, 100
MouseClick, left,  716,  718
Sleep, 100
MouseClick, left,  658,  690
Sleep, 100
MouseClick, left,  613,  669
Sleep, 100
MouseClick, left,  562,  643
Sleep, 100
MouseClick, left,  514,  620
Sleep, 100
MouseClick, left,  462,  596
Sleep, 100
MouseClick, left,  415,  569
Sleep, 100
MouseClick, left,  363,  548
Sleep, 100
MouseClick, left,  314,  517
Sleep, 100
MouseClick, left,  271,  497
Sleep, 100
MouseClick, left,  212,  472
Sleep, 100
MouseClick, left,  165,  447
Sleep, 100


Sleep, 216000

;POLIA ZASADIT MALINY
MouseClick, left,  1021,  859
Sleep, 2500
MouseClick, left,  993,  475
Sleep, 2500
MouseClick, left,  861,  484
Sleep, 2500

MouseClick, left,  721,  193
Sleep, 100
MouseClick, left,  773,  219
Sleep, 100
MouseClick, left,  820,  244
Sleep, 100
MouseClick, left,  873,  268
Sleep, 100
MouseClick, left,  920,  292
Sleep, 100
MouseClick, left,  970,  315
Sleep, 100
MouseClick, left,  1021,  334
Sleep, 100
MouseClick, left,  1071,  359
Sleep, 100
MouseClick, left,  1125,  383
Sleep, 100
MouseClick, left,  1164,  406
Sleep, 100
MouseClick, left,  1218,  430
Sleep, 100
MouseClick, left,  1276,  451
Sleep, 100
MouseClick, left,  1216,  479
Sleep, 100
MouseClick, left,  1164,  452
Sleep, 100
MouseClick, left,  1115,  425
Sleep, 100
MouseClick, left,  1069,  404
Sleep, 100
MouseClick, left,  1013,  381
Sleep, 100
MouseClick, left,  960,  358
Sleep, 100
MouseClick, left,  916,  332
Sleep, 100
MouseClick, left,  866,  308
Sleep, 100
MouseClick, left,  817,  287
Sleep, 100
MouseClick, left,  760,  262
Sleep, 100
MouseClick, left,  711,  240
Sleep, 100
MouseClick, left,  657,  214
Sleep, 100
MouseClick, left,  612,  240
Sleep, 100
MouseClick, left,  668,  261
Sleep, 100
MouseClick, left,  716,  288
Sleep, 100
MouseClick, left,  763,  311
Sleep, 100
MouseClick, left,  815,  337
Sleep, 100
MouseClick, left,  863,  357
Sleep, 100
MouseClick, left,  917,  385
Sleep, 100
MouseClick, left,  967,  407
Sleep, 100
MouseClick, left,  1020,  432
Sleep, 100
MouseClick, left,  1065,  451
Sleep, 100
MouseClick, left,  1119,  476
Sleep, 100
MouseClick, left,  1170,  498
Sleep, 100
MouseClick, left,  1113,  524
Sleep, 100
MouseClick, left,  1063,  497
Sleep, 100
MouseClick, left,  1015,  477
Sleep, 100
MouseClick, left,  966,  451
Sleep, 100
MouseClick, left,  915,  425
Sleep, 100
MouseClick, left,  857,  400
Sleep, 100
MouseClick, left,  811,  376
Sleep, 100
MouseClick, left,  758,  351
Sleep, 100
MouseClick, left,  705,  327
Sleep, 100
MouseClick, left,  665,  311
Sleep, 100
MouseClick, left,  614,  287
Sleep, 100
MouseClick, left,  570,  263
Sleep, 100
MouseClick, left,  511,  286
Sleep, 100
MouseClick, left,  567,  312
Sleep, 100
MouseClick, left,  619,  331
Sleep, 100
MouseClick, left,  671,  358
Sleep, 100
MouseClick, left,  720,  378
Sleep, 100
MouseClick, left,  765,  405
Sleep, 100
MouseClick, left,  821,  431
Sleep, 100
MouseClick, left,  867,  455
Sleep, 100
MouseClick, left,  918,  475
Sleep, 100
MouseClick, left,  971,  498
Sleep, 100
MouseClick, left,  1014,  521
Sleep, 100
MouseClick, left,  1064,  553
Sleep, 100
MouseClick, left,  1016,  574
Sleep, 100
MouseClick, left,  969,  547
Sleep, 100
MouseClick, left,  919,  518
Sleep, 100
MouseClick, left,  859,  497
Sleep, 100
MouseClick, left,  816,  475
Sleep, 100
MouseClick, left,  756,  448
Sleep, 100
MouseClick, left,  722,  425
Sleep, 100
MouseClick, left,  665,  403
Sleep, 100
MouseClick, left,  618,  380
Sleep, 100
MouseClick, left,  565,  358
Sleep, 100
MouseClick, left,  517,  336
Sleep, 100
MouseClick, left,  469,  307
Sleep, 100
MouseClick, left,  415,  334
Sleep, 100
MouseClick, left,  469,  361
Sleep, 100
MouseClick, left,  522,  382
Sleep, 100
MouseClick, left,  562,  406
Sleep, 100
MouseClick, left,  612,  428
Sleep, 100
MouseClick, left,  669,  447
Sleep, 100
MouseClick, left,  723,  479
Sleep, 100
MouseClick, left,  770,  504
Sleep, 100
MouseClick, left,  820,  519
Sleep, 100
MouseClick, left,  871,  550
Sleep, 100
MouseClick, left,  921,  573
Sleep, 100
MouseClick, left,  972,  595
Sleep, 100
MouseClick, left,  922,  624
Sleep, 100
MouseClick, left,  870,  595
Sleep, 100
MouseClick, left,  815,  573
Sleep, 100
MouseClick, left,  767,  542
Sleep, 100
MouseClick, left,  717,  523
Sleep, 100
MouseClick, left,  662,  500
Sleep, 100
MouseClick, left,  608,  469
Sleep, 100
MouseClick, left,  567,  453
Sleep, 100
MouseClick, left,  512,  429
Sleep, 100
MouseClick, left,  472,  405
Sleep, 100
MouseClick, left,  424,  377
Sleep, 100
MouseClick, left,  364,  352
Sleep, 100
MouseClick, left,  321,  378
Sleep, 100
MouseClick, left,  368,  411
Sleep, 100
MouseClick, left,  420,  434
Sleep, 100
MouseClick, left,  468,  456
Sleep, 100
MouseClick, left,  518,  478
Sleep, 100
MouseClick, left,  564,  505
Sleep, 100
MouseClick, left,  617,  532
Sleep, 100
MouseClick, left,  664,  555
Sleep, 100
MouseClick, left,  724,  580
Sleep, 100
MouseClick, left,  774,  601
Sleep, 100
MouseClick, left,  818,  626
Sleep, 100
MouseClick, left,  870,  647
Sleep, 100
MouseClick, left,  816,  675
Sleep, 100
MouseClick, left,  758,  644
Sleep, 100
MouseClick, left,  712,  623
Sleep, 100
MouseClick, left,  668,  601
Sleep, 100
MouseClick, left,  603,  572
Sleep, 100
MouseClick, left,  567,  548
Sleep, 100
MouseClick, left,  519,  524
Sleep, 100
MouseClick, left,  465,  497
Sleep, 100
MouseClick, left,  418,  477
Sleep, 100
MouseClick, left,  370,  454
Sleep, 100
MouseClick, left,  318,  430
Sleep, 100
MouseClick, left,  275,  406
Sleep, 100
MouseClick, left,  219,  431
Sleep, 100
MouseClick, left,  267,  456
Sleep, 100
MouseClick, left,  319,  478
Sleep, 100
MouseClick, left,  366,  501
Sleep, 100
MouseClick, left,  416,  522
Sleep, 100
MouseClick, left,  466,  548
Sleep, 100
MouseClick, left,  516,  572
Sleep, 100
MouseClick, left,  565,  602
Sleep, 100
MouseClick, left,  618,  623
Sleep, 100
MouseClick, left,  664,  644
Sleep, 100
MouseClick, left,  715,  667
Sleep, 100
MouseClick, left,  767,  691
Sleep, 100
MouseClick, left,  716,  718
Sleep, 100
MouseClick, left,  658,  690
Sleep, 100
MouseClick, left,  613,  669
Sleep, 100
MouseClick, left,  562,  643
Sleep, 100
MouseClick, left,  514,  620
Sleep, 100
MouseClick, left,  462,  596
Sleep, 100
MouseClick, left,  415,  569
Sleep, 100
MouseClick, left,  363,  548
Sleep, 100
MouseClick, left,  314,  517
Sleep, 100
MouseClick, left,  271,  497
Sleep, 100
MouseClick, left,  212,  472
Sleep, 100
MouseClick, left,  165,  447
Sleep, 100

Sleep, 215000
Send, {ESC}
Sleep, 1200
MouseClick, left,  50,  390
Sleep, 1200
Send, {CTRLDOWN}r{CTRLUP}

Sleep, 7 200 000
}

Return





pause::Pause

EDIT: you can help me to make this script better :) i am new to autohotkey and i am pretty sure this can be done easier with less code written.

  • Guests
  • Last active:
  • Joined: --
doesn't work, clicks outside of the game screen and mess all up...unless I am not understanding the set up

Alino
  • Members
  • 4 posts
  • Last active: Aug 11 2009 10:15 AM
  • Joined: 04 Aug 2009
yea you have to reconfigure it to fit your screen resolution...

  • Guests
  • Last active:
  • Joined: --
...or, make the clicks relative to the active IE window...

Alino
  • Members
  • 4 posts
  • Last active: Aug 11 2009 10:15 AM
  • Joined: 04 Aug 2009
how to do that? that would be really cool!

  • Guests
  • Last active:
  • Joined: --
Something like the below...when you record the script activate the window first. Everything from this point should be relative to this window and it won't matter the resolution. But I am not good at AHK...

WinWait, FarmVille on Facebook - Windows Internet Explorer provided by Yahoo!, 
IfWinNotActive, FarmVille on Facebook - Windows Internet Explorer provided by Yahoo!, , WinActivate, FarmVille on Facebook - Windows Internet Explorer provided by Yahoo!, 
WinWaitActive, FarmVille on Facebook - Windows Internet Explorer provided by Yahoo!,


DUDE
  • Guests
  • Last active:
  • Joined: --
HOLY CRAP!!! Don't you think you could just find out how wide each plot is and do a loop, adding a certain amount of pixels each time? That way you could also account for what size farm the person has.

See, like with this code I added pictures to a gui but rather than have 40 lines of code I just looped and it lays them all out.
x = 20
y = 50
loop, parse, ALLCOLORS, |
{
  if A_LoopField =
    Break
  Gui, Add, Picture, x%x% y%y% gColorChange%A_Index%, T:\Service Rochester\Berl Geoff\Files used by Programs (Please don't touch)\Colors\%A_LoopField%.bmp
  x += 20
  if (A_Index = 8 OR A_Index = 16 OR A_Index = 24 OR A_Index = 32)
  {
    y += 20.
    x = 20
  }
}

Every time it lays 8 out it resets X and increments Y. You don't have to but it would make your code a lot nicer and it would be dynamic to the size plot they have since that can change.

Also, you need to use something like CoordModeOSD which can be found in the forums and in your code use
CoordMode, Mouse, Relative
That sets your mouse coordinates relative to the Internet explorer window rather than the entire monitor's resolution. Now, there are still issues that can arise but those are just some starting points. I normally don't help out "botters" but since you didn't just post asking for someone to do the work for you than I'll make an exception.

SoggyDog
  • Members
  • 803 posts
  • Last active: Mar 04 2013 06:27 AM
  • Joined: 02 May 2006

...Don't you think you could just find out how wide each plot is and do a loop...

As I get older, I get more and more out of touch with things like MySpace, Facebook and Twitter,
so I've never played this game, but as I read the original code, I had to wonder the same thing.

...or, make the clicks relative to the active IE window...

I saw this being a problem, too.

Alino
  • Members
  • 4 posts
  • Last active: Aug 11 2009 10:15 AM
  • Joined: 04 Aug 2009
DUDE i am too stupid to add that to my code ^_^ but it's cool.

I updated my script, it is optimized for 1440x900, google chrome with hidden bookmark panel and 16x16 farm size.
You can edit it to fit your needs.

#Persistent

Gosub, ReloadWindow

HARVEST:
Gosub, ClickAllFields
Sleep, 405000
Gosub, ReloadWindow


PLOW:
Gosub, ClickAllFields
Sleep, 405000
Gosub, ReloadWindow


PLANT:
Gosub, ReloadWindow

Sleep, 2500
MouseClick, left,  1021,  859
Sleep, 2500
MouseClick, left,  993,  475
Sleep, 2500
MouseClick, left,  861,  484
Sleep, 2500


Gosub, ClickAllFields
Sleep, 405000



Sleep, 7 200 000
Reload
Return


ReloadWindow:

IfWinExist FarmVille on Facebook - Google Chrome
{
	WinActivate
	Sleep, 600
}
else
{
	Run http://apps.facebook.com/onthefarm/index.php?ref=tab
	Sleep, 2000
}


;Refresh
Send, {ESC}
Sleep, 1200
MouseClick, left,  50,  390
Sleep, 1200
Send, {CTRLDOWN}r{CTRLUP}
Sleep, 1200
Gosub, CheckColor

;zoom out 3x
Sleep, 600
MouseClick, left,  913,  638
Sleep, 1200
MouseClick, left,  913,  638
Sleep, 1200
MouseClick, left,  913,  638
Sleep, 1200

;move - to not get buged
MouseClick, left,  645,  298
Sleep, 1200

;fullscreen
MouseClick, left,  941,  640
Sleep, 3500
Return


CheckColor:

Sleep, 1000
white = 0xFFFFFF
PixelGetColor, color, 920,  639
IfEqual, white, %color%
{
Sleep, 10000
Goto, CheckColor
}
Return


ClickAllFields:

WinWaitActive, Adobe Flash Player
MouseClick, left,  716,  270
Sleep, 100
MouseClick, left,  694,  284
Sleep, 100
MouseClick, left,  668,  294
Sleep, 100
MouseClick, left,  644,  308
Sleep, 100
MouseClick, left,  618,  320
Sleep, 100
MouseClick, left,  594,  333
Sleep, 100
MouseClick, left,  567,  344
Sleep, 100
MouseClick, left,  544,  356
Sleep, 100
MouseClick, left,  517,  368
Sleep, 100
MouseClick, left,  491,  379
Sleep, 100
MouseClick, left,  469,  391
Sleep, 100
MouseClick, left,  442,  404
Sleep, 100
MouseClick, left,  421,  416
Sleep, 100
MouseClick, left,  393,  430
Sleep, 100
MouseClick, left,  371,  440
Sleep, 100
MouseClick, left,  343,  453
Sleep, 100
MouseClick, left,  370,  465
Sleep, 100
MouseClick, left,  394,  453
Sleep, 100
MouseClick, left,  419,  438
Sleep, 100
MouseClick, left,  444,  428
Sleep, 100
MouseClick, left,  469,  415
Sleep, 100
MouseClick, left,  494,  404
Sleep, 100
MouseClick, left,  520,  391
Sleep, 100
MouseClick, left,  543,  379
Sleep, 100
MouseClick, left,  569,  367
Sleep, 100
MouseClick, left,  591,  355
Sleep, 100
MouseClick, left,  617,  343
Sleep, 100
MouseClick, left,  641,  331
Sleep, 100
MouseClick, left,  668,  320
Sleep, 100
MouseClick, left,  694,  306
Sleep, 100
MouseClick, left,  717,  296
Sleep, 100
MouseClick, left,  743,  284
Sleep, 100
MouseClick, left,  769,  296
Sleep, 100
MouseClick, left,  746,  310
Sleep, 100
MouseClick, left,  720,  320
Sleep, 100
MouseClick, left,  694,  333
Sleep, 100
MouseClick, left,  669,  344
Sleep, 100
MouseClick, left,  644,  356
Sleep, 100
MouseClick, left,  619,  367
Sleep, 100
MouseClick, left,  593,  380
Sleep, 100
MouseClick, left,  568,  392
Sleep, 100
MouseClick, left,  544,  403
Sleep, 100
MouseClick, left,  518,  416
Sleep, 100
MouseClick, left,  495,  427
Sleep, 100
MouseClick, left,  469,  441
Sleep, 100
MouseClick, left,  443,  451
Sleep, 100
MouseClick, left,  418,  465
Sleep, 100
MouseClick, left,  396,  475
Sleep, 100
MouseClick, left,  420,  489
Sleep, 100
MouseClick, left,  446,  477
Sleep, 100
MouseClick, left,  470,  464
Sleep, 100
MouseClick, left,  495,  452
Sleep, 100
MouseClick, left,  519,  439
Sleep, 100
MouseClick, left,  542,  427
Sleep, 100
MouseClick, left,  570,  415
Sleep, 100
MouseClick, left,  595,  404
Sleep, 100
MouseClick, left,  619,  392
Sleep, 100
MouseClick, left,  644,  380
Sleep, 100
MouseClick, left,  669,  367
Sleep, 100
MouseClick, left,  696,  355
Sleep, 100
MouseClick, left,  717,  343
Sleep, 100
MouseClick, left,  744,  331
Sleep, 100
MouseClick, left,  769,  318
Sleep, 100
MouseClick, left,  792,  308
Sleep, 100
MouseClick, left,  819,  319
Sleep, 100
MouseClick, left,  795,  332
Sleep, 100
MouseClick, left,  768,  344
Sleep, 100
MouseClick, left,  743,  357
Sleep, 100
MouseClick, left,  720,  369
Sleep, 100
MouseClick, left,  695,  379
Sleep, 100
MouseClick, left,  670,  391
Sleep, 100
MouseClick, left,  645,  403
Sleep, 100
MouseClick, left,  620,  416
Sleep, 100
MouseClick, left,  595,  429
Sleep, 100
MouseClick, left,  567,  438
Sleep, 100
MouseClick, left,  546,  451
Sleep, 100
MouseClick, left,  520,  464
Sleep, 100
MouseClick, left,  495,  475
Sleep, 100
MouseClick, left,  467,  487
Sleep, 100
MouseClick, left,  446,  499
Sleep, 100
MouseClick, left,  471,  514
Sleep, 100
MouseClick, left,  496,  502
Sleep, 100
MouseClick, left,  520,  487
Sleep, 100
MouseClick, left,  545,  475
Sleep, 100
MouseClick, left,  570,  465
Sleep, 100
MouseClick, left,  596,  454
Sleep, 100
MouseClick, left,  622,  440
Sleep, 100
MouseClick, left,  646,  427
Sleep, 100
MouseClick, left,  670,  415
Sleep, 100
MouseClick, left,  694,  404
Sleep, 100
MouseClick, left,  720,  391
Sleep, 100
MouseClick, left,  746,  379
Sleep, 100
MouseClick, left,  770,  368
Sleep, 100
MouseClick, left,  795,  356
Sleep, 100
MouseClick, left,  821,  344
Sleep, 100
MouseClick, left,  846,  334
Sleep, 100
MouseClick, left,  870,  345
Sleep, 100
MouseClick, left,  844,  356
Sleep, 100
MouseClick, left,  819,  368
Sleep, 100
MouseClick, left,  794,  379
Sleep, 100
MouseClick, left,  768,  392
Sleep, 100
MouseClick, left,  746,  404
Sleep, 100
MouseClick, left,  721,  416
Sleep, 100
MouseClick, left,  695,  429
Sleep, 100
MouseClick, left,  670,  443
Sleep, 100
MouseClick, left,  646,  454
Sleep, 100
MouseClick, left,  619,  465
Sleep, 100
MouseClick, left,  593,  476
Sleep, 100
MouseClick, left,  571,  488
Sleep, 100
MouseClick, left,  546,  503
Sleep, 100
MouseClick, left,  519,  511
Sleep, 100
MouseClick, left,  496,  523
Sleep, 100
MouseClick, left,  519,  538
Sleep, 100
MouseClick, left,  545,  525
Sleep, 100
MouseClick, left,  569,  513
Sleep, 100
MouseClick, left,  597,  501
Sleep, 100
MouseClick, left,  621,  488
Sleep, 100
MouseClick, left,  644,  477
Sleep, 100
MouseClick, left,  670,  465
Sleep, 100
MouseClick, left,  696,  452
Sleep, 100
MouseClick, left,  722,  439
Sleep, 100
MouseClick, left,  744,  429
Sleep, 100
MouseClick, left,  772,  418
Sleep, 100
MouseClick, left,  796,  405
Sleep, 100
MouseClick, left,  821,  392
Sleep, 100
MouseClick, left,  845,  381
Sleep, 100
MouseClick, left,  869,  370
Sleep, 100
MouseClick, left,  894,  358
Sleep, 100
MouseClick, left,  921,  370
Sleep, 100
MouseClick, left,  895,  380
Sleep, 100
MouseClick, left,  871,  392
Sleep, 100
MouseClick, left,  844,  404
Sleep, 100
MouseClick, left,  821,  416
Sleep, 100
MouseClick, left,  794,  428
Sleep, 100
MouseClick, left,  770,  440
Sleep, 100
MouseClick, left,  746,  453
Sleep, 100
MouseClick, left,  718,  465
Sleep, 100
MouseClick, left,  694,  477
Sleep, 100
MouseClick, left,  669,  488
Sleep, 100
MouseClick, left,  645,  500
Sleep, 100
MouseClick, left,  617,  513
Sleep, 100
MouseClick, left,  594,  524
Sleep, 100
MouseClick, left,  571,  535
Sleep, 100
MouseClick, left,  547,  547
Sleep, 100
MouseClick, left,  569,  562
Sleep, 100
MouseClick, left,  597,  549
Sleep, 100
MouseClick, left,  620,  536
Sleep, 100
MouseClick, left,  644,  524
Sleep, 100
MouseClick, left,  669,  512
Sleep, 100
MouseClick, left,  694,  500
Sleep, 100
MouseClick, left,  721,  489
Sleep, 100
MouseClick, left,  745,  475
Sleep, 100
MouseClick, left,  771,  464
Sleep, 100
MouseClick, left,  796,  453
Sleep, 100
MouseClick, left,  821,  442
Sleep, 100
MouseClick, left,  844,  429
Sleep, 100
MouseClick, left,  867,  416
Sleep, 100
MouseClick, left,  895,  403
Sleep, 100
MouseClick, left,  921,  393
Sleep, 100
MouseClick, left,  946,  382
Sleep, 100
MouseClick, left,  969,  393
Sleep, 100
MouseClick, left,  945,  404
Sleep, 100
MouseClick, left,  921,  415
Sleep, 100
MouseClick, left,  896,  427
Sleep, 100
MouseClick, left,  870,  439
Sleep, 100
MouseClick, left,  844,  451
Sleep, 100
MouseClick, left,  822,  463
Sleep, 100
MouseClick, left,  796,  476
Sleep, 100
MouseClick, left,  768,  488
Sleep, 100
MouseClick, left,  748,  499
Sleep, 100
MouseClick, left,  721,  512
Sleep, 100
MouseClick, left,  693,  525
Sleep, 100
MouseClick, left,  671,  537
Sleep, 100
MouseClick, left,  643,  551
Sleep, 100
MouseClick, left,  621,  560
Sleep, 100
MouseClick, left,  594,  574
Sleep, 100
MouseClick, left,  621,  588
Sleep, 100
MouseClick, left,  643,  574
Sleep, 100
MouseClick, left,  669,  561
Sleep, 100
MouseClick, left,  696,  549
Sleep, 100
MouseClick, left,  720,  536
Sleep, 100
MouseClick, left,  744,  524
Sleep, 100
MouseClick, left,  771,  512
Sleep, 100
MouseClick, left,  794,  499
Sleep, 100
MouseClick, left,  820,  489
Sleep, 100
MouseClick, left,  848,  476
Sleep, 100
MouseClick, left,  872,  465
Sleep, 100
MouseClick, left,  893,  451
Sleep, 100
MouseClick, left,  922,  439
Sleep, 100
MouseClick, left,  944,  428
Sleep, 100
MouseClick, left,  968,  416
Sleep, 100
MouseClick, left,  995,  405
Sleep, 100
MouseClick, left,  1021,  417
Sleep, 100
MouseClick, left,  995,  429
Sleep, 100
MouseClick, left,  971,  441
Sleep, 100
MouseClick, left,  944,  453
Sleep, 100
MouseClick, left,  919,  464
Sleep, 100
MouseClick, left,  894,  476
Sleep, 100
MouseClick, left,  871,  487
Sleep, 100
MouseClick, left,  845,  500
Sleep, 100
MouseClick, left,  819,  511
Sleep, 100
MouseClick, left,  796,  523
Sleep, 100
MouseClick, left,  768,  536
Sleep, 100
MouseClick, left,  743,  548
Sleep, 100
MouseClick, left,  720,  561
Sleep, 100
MouseClick, left,  692,  573
Sleep, 100
MouseClick, left,  669,  585
Sleep, 100
MouseClick, left,  646,  596
Sleep, 100
MouseClick, left,  671,  610
Sleep, 100
MouseClick, left,  696,  597
Sleep, 100
MouseClick, left,  720,  585
Sleep, 100
MouseClick, left,  746,  574
Sleep, 100
MouseClick, left,  771,  561
Sleep, 100
MouseClick, left,  797,  549
Sleep, 100
MouseClick, left,  820,  536
Sleep, 100
MouseClick, left,  844,  525
Sleep, 100
MouseClick, left,  869,  513
Sleep, 100
MouseClick, left,  895,  501
Sleep, 100
MouseClick, left,  922,  489
Sleep, 100
MouseClick, left,  945,  477
Sleep, 100
MouseClick, left,  970,  465
Sleep, 100
MouseClick, left,  995,  452
Sleep, 100
MouseClick, left,  1019,  440
Sleep, 100
MouseClick, left,  1046,  429
Sleep, 100
MouseClick, left,  1070,  440
Sleep, 100
MouseClick, left,  1043,  453
Sleep, 100
MouseClick, left,  1019,  464
Sleep, 100
MouseClick, left,  994,  475
Sleep, 100
MouseClick, left,  969,  488
Sleep, 100
MouseClick, left,  945,  499
Sleep, 100
MouseClick, left,  921,  512
Sleep, 100
MouseClick, left,  895,  525
Sleep, 100
MouseClick, left,  868,  535
Sleep, 100
MouseClick, left,  844,  547
Sleep, 100
MouseClick, left,  820,  560
Sleep, 100
MouseClick, left,  796,  572
Sleep, 100
MouseClick, left,  770,  584
Sleep, 100
MouseClick, left,  743,  596
Sleep, 100
MouseClick, left,  718,  609
Sleep, 100
MouseClick, left,  692,  620
Sleep, 100
MouseClick, left,  720,  632
Sleep, 100
MouseClick, left,  743,  621
Sleep, 100
MouseClick, left,  768,  609
Sleep, 100
MouseClick, left,  794,  596
Sleep, 100
MouseClick, left,  818,  585
Sleep, 100
MouseClick, left,  842,  571
Sleep, 100
MouseClick, left,  870,  559
Sleep, 100
MouseClick, left,  896,  548
Sleep, 100
MouseClick, left,  921,  536
Sleep, 100
MouseClick, left,  944,  523
Sleep, 100
MouseClick, left,  967,  511
Sleep, 100
MouseClick, left,  994,  500
Sleep, 100
MouseClick, left,  1020,  488
Sleep, 100
MouseClick, left,  1043,  477
Sleep, 100
MouseClick, left,  1070,  463
Sleep, 100
MouseClick, left,  1093,  452
Sleep, 100
Return

;----FUNCTIONS ON HOTKEYS----

pause::Pause

#z::
Goto, HARVEST

#x::
Goto, PLOW

#c::
Goto, PLANT


tuxhedoh2
  • Guests
  • Last active:
  • Joined: --
Here's my attempt - granted there's no error checking, no making sure you're on the correct page... I'll add more later, but anyway, it's fairly self explanatory.


You need to make sure that you've got a crop selected if you are planting.

Launch with hot key - currently CtrL+alt+c
Answer questions.
Click in the middle of the top left (furthest left) plot... and watch it go...

!^c::
GoSub GetFarmSq
GoSub Getfirstsq

i=1

Loop, %farmy%
{
Click %startx%,%starty%
newx=%startx%
newy=%starty%
Loop, %farmx%
{
newx+=25
newy-=12
Click %newx%,%newy%
sleep 200
i++
}
startx+=25
starty+=12
sleep 200
}

return


GoSub Getfirstsq

GetFarmsq:
Inputbox, farmx, Hey There, Enter the number of squares in your top row, ,100,150
Inputbox, farmy, Hey There, Enter the number of squares in long, ,100,150
;msgbox, you said your farm was %farmx% x %farmy%
farmx--
return

Getfirstsq:
Msgbox, Click the middle of the top left square
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, startx, starty
return

!^x::reload
Return



DARIO
  • Guests
  • Last active:
  • Joined: --
GREAT! great script

ChaChi
  • Members
  • 5 posts
  • Last active: Jun 12 2007 07:21 PM
  • Joined: 05 Dec 2005
I have tried using the scripts all though it does function some what I don't think it takes into account the screen resolution, and has the mouse clicks along the path of the squares it misses about half of them and hits the rows next to them or nothing at all.

me
  • Guests
  • Last active:
  • Joined: --
Nice script tuxhedoh2, having 20x20 to plough/plant/harvest was a nightmare, have to do it in halfs (2x(20x10)), but no more mouse clicking till my eyes bleed, ty

lordzer0
  • Guests
  • Last active:
  • Joined: --
Make use of tuxhedoh2 script by just fullscreening and then zooming out twice.


x = x+25
y = y+12

will get a perfect click regardless of resolution size. I tested it on about 5 different resolutions.
800x600
1650x1440
1280x800
and a couple others

Dvan
  • Guests
  • Last active:
  • Joined: --
Im trying to get this to work in fullscreen, where do you put that line?