 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
icefreez
Joined: 15 May 2007 Posts: 169
|
Posted: Tue Dec 01, 2009 8:30 pm Post subject: Gridclicker |
|
|
Since there are so many questions and problems here I thought I would post this. I know this isn't an autohotkey script but I found this program quite useful for
planting. http://www.glsoft.co.uk/gridclicker/index.shtml This is not my script. Yes I have used it, and it works quite well. |
|
| Back to top |
|
 |
Rockmaninoff
Joined: 10 Dec 2009 Posts: 1
|
Posted: Thu Dec 10, 2009 10:35 pm Post subject: |
|
|
Hi all,
First post, but I think is a pretty good one. I've lurked this thread for a while and compiled some of the scripts that people use. I also just added a couple of mine today.
Currently, here's what my script does:
| Code: | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Key Legend ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CTRL+SHIFT+TAB displays key legend ;
; CTRL+SHIFT+ESCAPE suspends script ;
; CTRL+SHIFT+` pauses script (key to the left of the '1' key) ;
; CTRL+SHIFT+X halt/reload script ;
; CTRL+SHIFT+0 soybean delete method (zero key) ;
; CTRL+SHIFT+P auto-harvest, auto-plow, auto-seed ;
; CTRL+SHIFT+I auto-harvest 1x1 elements in a nxm grid ;
; CTRL+SHIFT+U auto-sell 1x1 elements in a nxm grid ;
; CTRL+SHIFT+Y semi-auto-plant cherry trees ;
; CTRL+SHIFT+T auto-plant cherry trees in rows going NW to SE ;
; CTRL+SHIFT+R auto-plant cherry trees in rows going SW to NE ;
; Mouse Middle Click does multiple things; comment out what you don't want to do ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| Code: |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Key Legend ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CTRL+SHIFT+TAB displays key legend ;
; CTRL+SHIFT+ESCAPE suspends script ;
; CTRL+SHIFT+` pauses script (key to the left of the '1' key) ;
; CTRL+SHIFT+X halt/reload script ;
; CTRL+SHIFT+0 soybean delete method (zero key) ;
; CTRL+SHIFT+P auto-harvest, auto-plow, auto-seed ;
; CTRL+SHIFT+I auto-harvest 1x1 elements in a nxm grid ;
; CTRL+SHIFT+U auto-sell 1x1 elements in a nxm grid ;
; CTRL+SHIFT+Y semi-auto-plant cherry trees ;
; CTRL+SHIFT+T auto-plant cherry trees in rows going NW to SE ;
; CTRL+SHIFT+R auto-plant cherry trees in rows going SW to NE ;
; Mouse Middle Click does multiple things; comment out what you don't want to do ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;
; Suspend code ;
;;;;;;;;;;;;;;;;
^+Esc::Suspend
;;;;;;;;;;;;;;
; Pause code ;
;;;;;;;;;;;;;;
^+`::Pause
;;;;;;;;;;;;;
; Stop code ;
;;;;;;;;;;;;;
^+x:: reload
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Code to display a list of commands ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+Tab::
Msgbox,,FarmVille Script Key Legend,
( Join`r`n
Ctrl + Shift + Tab`t`tDisplays Key Legend
Ctrl + Shift + Esc`t`tSuspends script
Ctrl + Shift + ```t`tPauses script (key to the left of the '1' key)
Ctrl + Shift + X`t`tHalts/reloads script
Ctrl + Shift + 0`t`tSoybean delete method (zero key)
Ctrl + Shift + P`t`tAuto-harvest, auto-plow, auto-seed
Ctrl + Shift + I`t`tAuto-harvest 1x1 elements in a nxm grid
Ctrl + Shift + U`t`tAuto-sell 1x1 elements in a nxm grid
Ctrl + Shift + Y`t`tSemi-auto-plant cherry trees
Ctrl + Shift + T`t`tAuto-plant cherry trees in rows going NW to SE
Ctrl + Shift + R`t`tAuto-plant cherry trees in rows going SW to NE
Mouse Middle Click`t`tDoes multiple things based on script comments
)
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Farmville Single-click Animal and Tree Harvester ;
; Click the middle mouse button to harvest an animal or tree. ;
; Script by freeforlife. ;
; Mouse code follows, uncomment for what you'd like ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
; Middle-click harvest ;
;;;;;;;;;;;;;;;;;;;;;;;;
MButton::
Click
MouseGetPos, xposi, yposi
yposi+=45
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=45
MouseMove, %xposi%, %yposi%
return
;;;;;;;;;;;;;;;;;;;;;;;
; Middle-click delete ;
;;;;;;;;;;;;;;;;;;;;;;;
/*
MButton::
Click
MouseGetPos, xposi, yposi
yposi+=30
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=30
MouseMove, %xposi%, %yposi%
return
*/
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Middle-click buy cherry tree ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
/*
MButton::
MouseGetPos, xposi, yposi
Click xposi, yposi
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
sleep 4000
MouseMove, %xposi%, %yposi%
return
*/
;;;;;;;;;;;;;;;;;;;;;;;
; Soybean Delete code ;
;;;;;;;;;;;;;;;;;;;;;;;
^+0::
msgbox, FARMER MUST BE OUT OF THE WAY!!!
gosub Market
gosub Buysoybean
gosub getlocationplot
sleep 1000
click %asoX%, %asoY%
sleep 1000
click %mezoX%, %mezoY%
sleep 1000
gosub accept
msgbox, The script will run until you stop it with control+x. The script written by Szilveszter
inputbox,xp,xp,xp,,100,150
gosub mainLOOP
msgbox, %xp%*3 xp-t termelt a script
return
Market:
msgbox, click on the Market icon on your farm screen (midle of the icon)
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, shopX, ShopY
sleep 100
powlX:=shopX
powlY:=shopY-55
powltoolY:=powlY-70
multiX:=powlX-46
multiY:=powlY
asoX:=powlX+45
asoY:=powlY
return
Buysoybean:
msgbox,click on Middle of the soybeans buy icon.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, soybeX, soybeY
sleep 200
return
getlocationplot:
msgbox, click on the bottom corner of the farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezoX, mezoY
sleep 100
return
accept:
msgbox click on the big ACCEPT button.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, asoOKX, AsoOKY
sleep 200
return
mainLoop:
Loop %xp%
{
click %powlX%, %PowlY%
sleep 500
click %powlx%, %powltoolY%
sleep 500
click %mezoX%, %mezoY%
sleep 500
click %shopX%, %shopY%
sleep 1500
click %soybeX%, %soyBEY%
sleep 200
click %mezoX%, %mezoY%
sleep 500
click %asoX%, %asoY%
sleep 500
click %mezoX% , %mezoY%
sleep 750
click %asoOKX%, %asoOKY%
}
return
;;;;;;;;;;;;;;;;;;
; Auto-plow code ;
;;;;;;;;;;;;;;;;;;
^+p::
msgbox, FARMER MUST BE OUT OF THE WAY!!!
GoSub GetFarmSq
GoSub Getfirstsq
i=1
Loop, %farmy%
{
Click %startx%,%starty%
newx=%startx%
newy=%starty%
Loop, %farmx%
{
newx+=25
newy-=12
Click %newx%,%newy%
Random, rand, 200, 400
sleep rand
i++
}
startx+=25
starty+=12
Random, rand, 200, 300
sleep rand
}
return
GoSub Getfirstsq
GetFarmsq:
Inputbox, farmx, Farm Length, Enter Farm Length e.g. 20, ,100,150
Inputbox, farmy, Farm Width, Enter Farm Width e.g. 20, ,100,150
msgbox, Farm size is as follows: %farmx% x %farmy%
farmx--
return
Getfirstsq:
Msgbox, Click the middle of the top left square of Farm.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, startx, starty
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Auto-harvest 1x1 elements in a 1x1 grid ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+I::
msgbox, FARMER MUST BE OUT OF THE WAY!!!`r`nFARM MUST BE ZOOMED OUT!!!`r`nIt is recommended to only do a row or column of width 1. If you follow this recommendation,
one of the following prompts should be set to '1'.
GoSub GetFarmSq2
GoSub Getfirstsq2
i=1
Loop, %farmy%
{
Click %startx%,%starty%
MouseGetPos, xposi, yposi
yposi+=45
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=45
MouseMove, %xposi%, %yposi%
newx=%startx%
newy=%starty%
Loop, %farmx%
{
newx+=6.25
newy-=3
Click %newx%,%newy%
MouseGetPos, xposi, yposi
yposi+=45
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=45
MouseMove, %xposi%, %yposi%
Random, rand, 200, 400
sleep rand
i++
}
startx+=6.25
starty+=3
Random, rand, 200, 300
sleep rand
}
return
GoSub Getfirstsq2
GetFarmsq2:
Inputbox, farmx, Grid Length, Enter Grid Length (number of elements going SW to NE)
Inputbox, farmy, Grid Width, Enter Grid Width (number of elements going NW to SE)
msgbox, Farm size is as follows: %farmx% x %farmy%
farmx--
return
Getfirstsq2:
Msgbox, Click the cherry of the top left tree.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, startx, starty
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Auto-sell 1x1 elements in a nxm grid ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This script auto-sells a nxm grid. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+U::
msgbox, FARMER MUST BE OUT OF THE WAY!!!`r`nFARM MUST BE ZOOMED OUT!!!`r`nIt is recommended to only do a row or column of width 1. If you follow this recommendation,
one of the following prompts should be set to '1'.
GoSub GetFarmSqAutosell1
GoSub GetfirstsqAutosell1
i=1
Loop, %farmy%
{
Click %startx%,%starty%
MouseGetPos, xposi, yposi
yposi+=30
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=30
sleep 600
Click %acceptX%, %acceptY%
sleep 600
MouseMove, %xposi%, %yposi%
newx=%startx%
newy=%starty%
Loop, %farmx%
{
newx+=6.25
newy-=3
Click %newx%,%newy%
MouseGetPos, xposi, yposi
yposi+=30
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=30
sleep 600
Click %acceptX%, %acceptY%
sleep 600
MouseMove, %xposi%, %yposi%
i++
}
startx+=6.25
starty+=3
;sleep 200
}
return
GoSub GetfirstsqAutosell1
GetFarmsqAutosell1:
Inputbox, farmx, Grid Length, Enter Grid Length (number of elements going SW to NE)
Inputbox, farmy, Grid Width, Enter Grid Width (number of elements going NW to SE)
Msgbox, Farm size is as follows: %farmx% x %farmy%
farmx--
return
GetfirstsqAutosell1:
Msgbox, Click the cherry of the top left tree.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, startx, starty
xposi:=startx
yposi:=starty
Click %xposi%, %yposi%
yposi+=30
xposi+=10
Click %xposi%, %yposi%
xposi-=10
yposi-=30
MouseMove, %xposi%, %yposi%
msgbox, click on the 'Cancel' icon. We are not selling the tree; the script auto-calculates where the 'Accept' icon is.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, acceptX, acceptY
acceptX-=130
sleep 800
;startx+=6.25
;starty+=3
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Semi-auto-plant cherry tree ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; With this method, the script ;
; will auto-click for you, but ;
; you will need to plant the ;
; tree once it's been selected ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+Y::
Msgbox, This script will run for the number of trees you ask for. It is important to remain alert. The script will automatically select the tree, but YOU have to
plant it. You have a few seconds to do it while the script sleeps.
Msgbox, Click the center of the Market Icon.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, xposi, yposi
Msgbox, Close the market.
KeyWait, LButton, D
KeyWait, LButton, D
Inputbox, looplength, Loop Length, Enter number of trees you want to plant in this loop.
i=1
Loop, %looplength%
{
Click xposi, yposi
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
MouseMove, %plantposx%, %plantposY%
KeyWait, LButton, D
MousegetPos, plantposX, plantposY
sleep 200
MouseMove, %xposi%, %yposi%
i++
}
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Auto-plant cherry tree NW to SE ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; With this method, the script will auto ;
; click for you, but you will need to ;
; plant the first tree only ;
; THIS METHOD ONLY WORKS FOR ONE ROW!!!! ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+T::
Msgbox, Farm must be zoomed out. This script will run for the number of trees you ask for, but will only do one row. This row is for the top right of your farm, or
for rows going from NW to SE. You MUST plant the first tree. When planting it, click the lower corner of it when possible.
Msgbox, Click the center of the Market Icon.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, xposi, yposi
Msgbox, Close the market.
KeyWait, LButton, D
KeyWait, LButton, D
Inputbox, looplength, Loop Length, Enter number of trees you want to plant in this row.
;KeyWait, LButton, D
Click %xposi%, %yposi%
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
Msgbox, Plant your tree now.
KeyWait, LButton, D
KeyWait, LButton, D
MousegetPos, plantposX, plantposY
sleep 200
MouseMove, %xposi%, %yposi%
i=2
Loop, %looplength%
{
Click xposi, yposi
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
plantposX+=6.25
plantposY+=3
sleep 600
Click %plantposX%, %plantposY%
sleep 100
MouseMove, %xposi%, %yposi%
i++
}
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Auto-plant cherry tree SW to NE ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; With this method, the script will auto ;
; click for you, but you will need to ;
; plant the first tree only ;
; THIS METHOD ONLY WORKS FOR ONE ROW!!!! ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^+R::
Msgbox, Farm must be zoomed out. This script will run for the number of trees you ask for, but will only do one row. This row is for the top left of your farm, or for
rows going from SW to NE. You MUST plant the first tree. When planting it, click the lower corner of it when possible.
Msgbox, Click the center of the Market Icon.
KeyWait, LButton, D
KeyWait, LButton, D
MouseGetPos, xposi, yposi
Msgbox, Close the market.
KeyWait, LButton, D
KeyWait, LButton, D
Inputbox, looplength, Loop Length, Enter number of trees you want to plant in this row.
;KeyWait, LButton, D
Click %xposi%, %yposi%
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
Msgbox, Plant your tree now.
KeyWait, LButton, D
KeyWait, LButton, D
MousegetPos, plantposX, plantposY
sleep 200
MouseMove, %xposi%, %yposi%
i=2
Loop, %looplength%
{
Click xposi, yposi
yposi-=440
xposi-=537
sleep 1200
Click %xposi%, %yposi%
xposi+=28
yposi+=432
sleep 800
Click %xposi%, %yposi%
xposi+=509
yposi+=8
plantposX+=6.25
plantposY-=3
sleep 600
Click %plantposX%, %plantposY%
sleep 100
MouseMove, %xposi%, %yposi%
i++
}
return
|
|
|
| Back to top |
|
 |
LastCallAgain
Joined: 20 Nov 2009 Posts: 6
|
Posted: Fri Dec 11, 2009 2:08 pm Post subject: My Farmville script |
|
|
Here's my implementation of AHK for FarmVille harvest/plow/seed.
I have several routines set to different sizes and shapes of the area to work; this one works five rows of 20 plots.
It assumes that:
(a) the mouse is located in the upper left plot when the hotkey is pressed; and
(b) the zoom is set to the farthest (smallest) view.
It also allows the user to abort by holding down the Shift key if one of FV's annoying dialogs interrupts...
| Code: |
CoordMode, Mouse, Relative
Loop 5
{
GetKeyState, state, Shift
if state = D
return
Loop 20
{
GetKeyState, state, Shift
if state = D
return
Click
Sleep 250
MouseMove, 25, -12, 5, R
}
MouseMove, -475, 252, 5, R
}
return
|
Additionally, I have toyed with a script that repeatedly buys, places and sells 25 hay bales to run up XP but I think may violate ToS and I'm far enough along that I really don't need it any more. _________________ --------------------------------------------------
Computers make it easier to do a lot of
things, but most of the things they make
it easier to do don't need to be done.
--Andy Rooney
-------------------------------------------------- |
|
| Back to top |
|
 |
LastCallAgain
Joined: 20 Nov 2009 Posts: 6
|
Posted: Fri Dec 11, 2009 2:23 pm Post subject: |
|
|
quadzer posted some code in the farmTown thread:
http://www.autohotkey.com/forum/viewtopic.php?t=49888
that calculates the size of the area you want to harvest/plow/plant.
It works at any zoom and in fullscreen, as long as the area is rectangular, i.e. same number of plots in each row and column.
Worth a look! _________________ --------------------------------------------------
Computers make it easier to do a lot of
things, but most of the things they make
it easier to do don't need to be done.
--Andy Rooney
-------------------------------------------------- |
|
| Back to top |
|
 |
adorable Guest
|
|
| Back to top |
|
 |
Knightmare Guest
|
Posted: Fri Dec 25, 2009 10:06 am Post subject: Hover over |
|
|
| I would love to know the code you used to harvest animals with a mouse over the pink heart, if you don't mind, I would love to use that as a way to dismiss notifications by checking the color at a point as well as using it to decide whether to plow, harvest or seed depending on the color of a field. |
|
| Back to top |
|
 |
Farmville Player Guest
|
Posted: Wed Dec 30, 2009 5:11 pm Post subject: |
|
|
Any thoughts on how can we use imagesearch / pixelsearch in the flash game farmville?
Could someone please help who is well versed with imagesearch / pixelsearch.
Can we plow automatically based on the results from imagesearch / pixelsearch, please help |
|
| Back to top |
|
 |
Buck Guest
|
Posted: Sat Mar 06, 2010 1:41 pm Post subject: |
|
|
| Because FarmVille is tied into Facebook's ajax/javascript library, it's much easier to automate the game using javascript. I would a greasemonkey script that alters the menu and automates a lot of tasks using direct ajax calls. |
|
| Back to top |
|
 |
Buck Guest
|
Posted: Sat Mar 06, 2010 1:41 pm Post subject: |
|
|
| Buck wrote: | | Because FarmVille is tied into Facebook's ajax/javascript library, it's much easier to automate the game using javascript. I made a greasemonkey script that alters the menu and automates a lot of tasks using direct ajax calls. |
"Would" should be "made". |
|
| Back to top |
|
 |
florinn
Joined: 01 Mar 2010 Posts: 43
|
Posted: Sat Mar 06, 2010 7:43 pm Post subject: |
|
|
Just my 2 cents, am a newbie and I did not tried your scripts yet, but this is how I do farmville:
I load the grid clicker program, I put it over my crops, set the interval between clicks at 0.1 sec then with cheat engine I speed Firefox up to 20x. In one minute I have all my crops harvested. Of course, I have to repeat the process to plow and plant, but I am fully satisfied.
I know this does not helps your scripts, but is my cheap and fast solution
Of course, you need to watch the popups.. |
|
| Back to top |
|
 |
MUKUL PANWAR Guest
|
Posted: Sat Mar 06, 2010 11:04 pm Post subject: USING SCRIPT FOR HAYBALES & ALL |
|
|
HEY MY DEAR FRIENDZZZ,,,,,HOW TO USE THESE SCRIPTS?? I M NEW TO SCRIPTSSS
MY E-MAIL ID IS mukulpanwar71@gmail.com |
|
| Back to top |
|
 |
Wolfgang
Joined: 03 Jan 2010 Posts: 4
|
Posted: Tue Apr 06, 2010 6:51 pm Post subject: |
|
|
I just found this thread a few days ago, and it looks like the soybean scripts I've tried are broken due to them moving the delete tool icon.
Being new, and not proficient with AHK, I'm pretty lost right now. Has anyone updated their script? |
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Tue Apr 06, 2010 10:44 pm Post subject: |
|
|
| florinn wrote: | Just my 2 cents, am a newbie and I did not tried your scripts yet, but this is how I do farmville:
I load the grid clicker program, I put it over my crops, set the interval between clicks at 0.1 sec then with cheat engine I speed Firefox up to 20x. In one minute I have all my crops harvested. Of course, I have to repeat the process to plow and plant, but I am fully satisfied.
I know this does not helps your scripts, but is my cheap and fast solution
Of course, you need to watch the popups.. |
Would you mind sharing the name of the grid clicker you use? I basically do the same thing you do but I am always looking for better ways to do these things. |
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Tue Apr 06, 2010 10:51 pm Post subject: Re: USING SCRIPT FOR HAYBALES & ALL |
|
|
| MUKUL PANWAR wrote: | HEY MY DEAR FRIENDZZZ,,,,,HOW TO USE THESE SCRIPTS?? I M NEW TO SCRIPTSSS
MY E-MAIL ID IS mukulpanwar71@gmail.com |
If AHK is not installed: http://www.autohotkey.com/download/AutoHotkeyInstall.exe
Copy the code from the forum that you want to use.
Paste copied code into a new text document in notepad.
Save newly pasted text document as somename.AHK
Double click the newly created file and your code should be running. You should see a little H in the bottom right of your screen next to the time. |
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Tue Apr 06, 2010 11:03 pm Post subject: |
|
|
4X4 Soybean add-delete
ctrl 0 (that is a zero) to start
ctrl x to stop
| Code: | ^0::
;CTRL 0 to start
;Ctrl X to stop
gosub Market
gosub Buysoybean
gosub getlocationplot1
sleep 1000
click %asoX%, %asoY%
sleep 1000
click %multix%, %multiY%
sleep 1000
click %mezo1X%, %mezo1Y%
sleep 1000
gosub accept
gosub getlocationplot2
gosub getlocationplot3
gosub getlocationplot4
gosub getlocationplot5
gosub getlocationplot6
gosub getlocationplot7
gosub getlocationplot8
gosub getlocationplot9
gosub getlocationplot10
gosub getlocationplot11
gosub getlocationplot12
gosub getlocationplot13
gosub getlocationplot14
gosub getlocationplot15
gosub getlocationplot16
msgbox, The script will run until you stop it with control+x. The script written by Szilveszter
inputbox,xp,xp,xp,,100,150
gosub mainLOOP
msgbox, %xp%*3 xp-t termelt a script
return
Market:
msgbox, click on the Market icon on your farm screen (midle of the icon)
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, shopX, ShopY
sleep 100
powlX:=shopX
powlY:=shopY-55
powltoolY:=powlY-70
multiX:=powlX-45
multiY:=powlY-275
asoX:=powlX-45
asoY:=powlY
return
Buysoybean:
msgbox,click on Middle of the soybeans buy icon.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, soybeX, soybeY
sleep 200
return
getlocationplot1:
msgbox, click on the bottom corner of the farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo1X, mezo1Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot2:
msgbox, click on the bottom corner of the 2nd farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo2X, mezo2Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot3:
msgbox, click on the bottom corner of the 3rd farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo3X, mezo3Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot4:
msgbox, click on the bottom corner of the 4th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo4X, mezo4Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot5:
msgbox, click on the bottom corner of the 5th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo5X, mezo5Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot6:
msgbox, click on the bottom corner of the 6th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo6X, mezo6Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot7:
msgbox, click on the bottom corner of the 7th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo7X, mezo7Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot8:
msgbox, click on the bottom corner of the 8th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo8X, mezo8Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot9:
msgbox, click on the bottom corner of the 9th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo9X, mezo9Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot10:
msgbox, click on the bottom corner of the 10th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo10X, mezo10Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot11:
msgbox, click on the bottom corner of the 11th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo11X, mezo11Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot12:
msgbox, click on the bottom corner of the 12th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo12X, mezo12Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot13:
msgbox, click on the bottom corner of the 13th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo13X, mezo13Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot14:
msgbox, click on the bottom corner of the 14th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo14X, mezo14Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot15:
msgbox, click on the bottom corner of the 15th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo15X, mezo15Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
getlocationplot16:
msgbox, click on the bottom corner of the 16th farm plot you want to use and wait.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezo16X, mezo16Y
sleep 500
click %asoOKX%, %asoOKY%
sleep 100
return
accept:
msgbox click on the big ACCEPT button.
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, asoOKX, AsoOKY
sleep 200
return
mainLoop:
Loop %xp%
{
click %powlX%, %PowlY%
sleep 500
click %powlx%, %powltoolY%
sleep 500
click %mezo1X%, %mezo1Y%
sleep 500
click %mezo2X%, %mezo2Y%
sleep 500
click %mezo3X%, %mezo3Y%
sleep 500
click %mezo4X%, %mezo4Y%
sleep 500
click %mezo5X%, %mezo5Y%
sleep 500
click %mezo6X%, %mezo6Y%
sleep 500
click %mezo7X%, %mezo7Y%
sleep 500
click %mezo8X%, %mezo8Y%
sleep 500
click %mezo9X%, %mezo9Y%
sleep 500
click %mezo10X%, %mezo10Y%
sleep 500
click %mezo11X%, %mezo11Y%
sleep 500
click %mezo12X%, %mezo12Y%
sleep 500
click %mezo13X%, %mezo13Y%
sleep 500
click %mezo14X%, %mezo14Y%
sleep 500
click %mezo15X%, %mezo15Y%
sleep 500
click %mezo16X%, %mezo16Y%
sleep 500
click %shopX%, %shopY%
sleep 2000
click %soybeX%, %soyBEY%
sleep 200
click %mezo1X%, %mezo1Y%
sleep 500
click %mezo2X%, %mezo2Y%
sleep 500
click %mezo3X%, %mezo3Y%
sleep 500
click %mezo4X%, %mezo4Y%
sleep 500
click %mezo5X%, %mezo5Y%
sleep 500
click %mezo6X%, %mezo6Y%
sleep 500
click %mezo7X%, %mezo7Y%
sleep 500
click %mezo8X%, %mezo8Y%
sleep 500
click %mezo9X%, %mezo9Y%
sleep 500
click %mezo10X%, %mezo10Y%
sleep 500
click %mezo11X%, %mezo11Y%
sleep 500
click %mezo12X%, %mezo12Y%
sleep 500
click %mezo13X%, %mezo13Y%
sleep 500
click %mezo14X%, %mezo14Y%
sleep 500
click %mezo15X%, %mezo15Y%
sleep 500
click %mezo16X%, %mezo16Y%
sleep 500
click %asoX%, %asoY%
sleep 500
click %mezo1X% , %mezo1Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo2X% , %mezo2Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo3X% , %mezo3Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo4X% , %mezo4Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo5X% , %mezo5Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo6X% , %mezo6Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo7X% , %mezo7Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo8X% , %mezo8Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo9X% , %mezo9Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo10X% , %mezo10Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo11X% , %mezo11Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo12X% , %mezo12Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo13X% , %mezo13Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo14X% , %mezo14Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo15X% , %mezo15Y%
sleep 1000
click %asoOKX%, %asoOKY%
sleep 500
click %mezo16X% , %mezo16Y%
sleep 1000
click %asoOKX%, %asoOKY%
}
return
^x:: reload |
I used Szilveszter's code to create this.
I know it is kinda a mess but I am learning as I go. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|