 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
dumb new Guest
|
Posted: Thu Sep 03, 2009 12:23 am Post subject: I dont understand. |
|
|
| This will help a lot of new guys like me... pc 101 how o where do you paste that script.. |
|
| Back to top |
|
 |
Tuxhedoh
Joined: 20 Apr 2006 Posts: 25 Location: Baltimore, MD
|
Posted: Thu Sep 03, 2009 2:34 am Post subject: Re: I dont understand. |
|
|
| dumb new wrote: | | This will help a lot of new guys like me... pc 101 how o where do you paste that script.. |
I assume you already have AHK installed, but if you don't, http://www.autohotkey.com/download/AutoHotkeyInstall.exe is the install.
Once it's installed copy the code into a notepad document. Save the document somewhere you'll remember ie... Your Desktop. - and name it something.ahk -
Double click the file on your desktop you should see a green square in the system tray. Pressing Ctrl+Alt+C will launch the one I created, I think the other one is Ctrl+Alt+P
Let me know if you need more assistance. |
|
| Back to top |
|
 |
_stoned
Joined: 03 Sep 2009 Posts: 2 Location: Austria
|
Posted: Thu Sep 03, 2009 8:49 pm Post subject: |
|
|
Does anyone have a fully working script now?
I used to use just my own recoreded, but those seem to work pretty well too, so i'd like to use them. |
|
| Back to top |
|
 |
Tuxhedoh
Joined: 20 Apr 2006 Posts: 25 Location: Baltimore, MD
|
Posted: Thu Sep 03, 2009 11:05 pm Post subject: Both of those work. |
|
|
| Both of the scripts in Page 2 work without any problems. I'm not sure what you're asking. |
|
| Back to top |
|
 |
Szilveszter Guest
|
Posted: Sat Sep 05, 2009 1:48 am Post subject: Re: Soybean-delete method? |
|
|
| my_mistake wrote: | very nice script(s). thank you.
anyone tried to do one for the Soybean-delete method? |
Hehe i did it today it's working, i gave too much delay and it partly hungarian i am tired its 4:00am here:)
and here is the soyebean method: | Code: | ^0::
msgbox, a script xpre vált pénzt adott ido alatt, a kezdethez mindenképp bevetett mezo kell.
gosub getlocationshop
msgbox, shopinit completed go to soybean init
gosub getzoldbabloc
msgbox, zoldbab (again zoldbab=soybean) init completed next step field init
gosub getlocationMezo
msgbox, mezo(Field init) kesz last step require asokapanagyharang init
sleep 10000
click %asoX%, %asoY%
sleep 1000
click %mezoX%, %mezoY%
sleep 1200
gosub getasook
msgbox, initalizacio kesz, a script addig fut amig a control + xel le nem allitod. The script will run until you stop with control+x. The script written by Szilveszter
msgbox, mennyi xpt, szeretnel csinalni oszd el harommal es azt ird be, kerek szam legyen!?
inputbox,xp,xp,xp,,100,150
msgbox, minden oke?
gosub mainLOOP
msgbox, %xp%*3 xp-t termelt a script
return
;initalizásciós subok:
;a kezdomezo meghatározására szolgál
getlocationMezo:
msgbox, click on the field which should be the base of the xp generation! (xp ratio 10gold/1xp) Pleaseclick on the bottom corner of the field
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, mezoX, mezoY
sleep 100
return
;a shop helyének meghatározására szolgál a farmképernyon
getlocationShop:
msgbox, clikk on the shop icon at your farm screen (midle of the icon)
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, shopX, ShopY
sleep 100
;az aso es a plow icon meghatarozasa a shop kodrdinataibol 843,595 shop 845,540 powl 891,540 aso
powlX:=shopX
powlY:=shopY-55
powltoolY:=powlY-70
;eszközválasztás az -70 Y
multiX:=powlX-46
multiY:=powlY
asoX:=powlX+45
asoY:=powlY
return
getzoldbabloc:
msgbox,click on "zoldbab ikon" (soybeans) midle of the icon
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, soybeX, soybeY
sleep 100
return
getasook:
msgbox click on "nagy piros oké gomb" on the big OK button to sell
KeyWait, LButton, D
KeyWait, LButton, D
mousegetpos, asoOKX, AsoOKY
return
mainLoop:
Loop %xp%
{
click %powlX%, %PowlY%
sleep 500
click %powlx%, %powltoolY%
sleep 500
click %mezoX%, %mezoY%
sleep 500
click %shopX%, %shopY%
sleep 6000
click %soybeX%, %soyBEY%
sleep 2000
click %mezoX%, %mezoY%
sleep 500
click %asoX%, %asoY%
sleep 500
click %mezoX% , %mezoY%
sleep 3000
click %asoOKX%, %asoOKY%
}
return
^x:: reload |
Sometimes farmwille buggy and not realize the clicks so wait more then script do in init, but if u can set up variables well its working very very fine:P |
|
| Back to top |
|
 |
rsvees Guest
|
Posted: Sat Sep 05, 2009 3:55 am Post subject: |
|
|
| Can you make the soybean delete in english, it's hard for me to understand:) |
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Sat Sep 05, 2009 3:59 am Post subject: |
|
|
Hello AHK community,
Please accept my apologies if this post comes out confusing or formatted wrong. It is my first.
Here is Szilveszter's code that I modified to make more sense to myself. I hope my modifications help others to be better able to use and understand the hard work Szilveszter put into the origional code. I hope someone can further improve on this because it has so much potential.
You may have to adjust the sleep times if you have a slower computer or connection.
ctrl 0 to start program
ctrl X to stop program
| Code: | ^0::
;CTRL 0 to start
;Ctrl X to stop
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
^x:: reload |
It works quite well for me.
Either way let us know what you think!
Last edited by qwerty on Mon Sep 07, 2009 1:31 am; edited 1 time in total |
|
| Back to top |
|
 |
lavier Guest
|
Posted: Sat Sep 05, 2009 2:48 pm Post subject: |
|
|
| Can u explain how to use your codec more clearly. I added them to AHK script and then don't know how to do next |
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Sat Sep 05, 2009 3:06 pm Post subject: |
|
|
| lavier wrote: | | Can u explain how to use your codec more clearly. I added them to AHK script and then don't know how to do next |
This reply is for the soybean delete program.
So you pasted the code into a blank notepad document, saved this document as somename.ahk, doubleclicked it and have the little green H icon down in the bottom right corner of your screen.
All you need to do is hit "ctrl 0" (zero) then follow the popups. To stop the program hit "ctrl x"
If you mess up when following the popups, stop the program and start over. |
|
| Back to top |
|
 |
_stoned
Joined: 03 Sep 2009 Posts: 2 Location: Austria
|
Posted: Sat Sep 05, 2009 8:12 pm Post subject: Re: Both of those work. |
|
|
| Tuxhedoh wrote: | | Both of the scripts in Page 2 work without any problems. I'm not sure what you're asking. |
None for the posted scripts work for farms > 16 squares (they don't fit in the normal flash window, you have to go fullscreen)
So I'm using my own old script that just does clicks I recorded before... |
|
| Back to top |
|
 |
lavier Guest
|
Posted: Sun Sep 06, 2009 12:23 am Post subject: |
|
|
| qwerty wrote: | | lavier wrote: | | Can u explain how to use your codec more clearly. I added them to AHK script and then don't know how to do next |
This reply is for the soybean delete program.
So you pasted the code into a blank notepad document, saved this document as somename.ahk, doubleclicked it and have the little green H icon down in the bottom right corner of your screen.
All you need to do is hit "ctrl 0" (zero) then follow the popups. To stop the program hit "ctrl x"
If you mess up when following the popups, stop the program and start over. |
After I click on .ahk file it's alwasy got notice: Error at line 28 etc. This line does not contain recoignize action . Maybe I did something wrong??? Pls help me |
|
| Back to top |
|
 |
Tuxhedoh
Joined: 20 Apr 2006 Posts: 25 Location: Baltimore, MD
|
Posted: Sun Sep 06, 2009 8:33 pm Post subject: Re: Both of those work. |
|
|
| _stoned wrote: | | Tuxhedoh wrote: | | Both of the scripts in Page 2 work without any problems. I'm not sure what you're asking. |
None for the posted scripts work for farms > 16 squares (they don't fit in the normal flash window, you have to go fullscreen)
So I'm using my own old script that just does clicks I recorded before... |
I've got a 20x20 farm. the one by Viridis works for a 20x20 farm without any problems.
Mine can do a 20x16, and followed by 20x4 - it's a little quicker than Viridis' because it doesn't move the farm followed by a click. |
|
| Back to top |
|
 |
Delusion
Joined: 16 Jul 2008 Posts: 213 Location: Greece/Rhodos
|
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Mon Sep 07, 2009 1:27 am Post subject: |
|
|
| lavier wrote: | | qwerty wrote: | | lavier wrote: | | Can u explain how to use your codec more clearly. I added them to AHK script and then don't know how to do next |
This reply is for the soybean delete program.
So you pasted the code into a blank notepad document, saved this document as somename.ahk, doubleclicked it and have the little green H icon down in the bottom right corner of your screen.
All you need to do is hit "ctrl 0" (zero) then follow the popups. To stop the program hit "ctrl x"
If you mess up when following the popups, stop the program and start over. |
After I click on .ahk file it's alwasy got notice: Error at line 28 etc. This line does not contain recoignize action . Maybe I did something wrong??? Pls help me |
Sorry about that I tried it myself and got the same error.
try this and see if u get it again.
| Code: | ^0::
;CTRL 0 to start
;Ctrl X to stop
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
^x:: reload |
|
|
| Back to top |
|
 |
qwerty
Joined: 05 Sep 2009 Posts: 12 Location: Houston
|
Posted: Mon Sep 07, 2009 1:30 am Post subject: |
|
|
| Delusion wrote: | | are there any scripts for FarmTown? VarmVille is like soooo boooring... |
I had found something on youtube called lazy farmer V2. It is supposed to be for farmtown also. |
|
| 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
|