, You can use this function flexibly only if you understand the meaning of the parameter.
So if you want to speed up, you should set ScreenShot and FindAll to 0.
and then use the last screenshot for all subsequent searches. For example:
Code: Select all
CheckIfFarmersBusy:
ScreenShot()
okfb:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farmerbusy, 0,0)
okfb1:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farmerbusy1, 0,0)
okrss:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, searchRSS, 0,0)
okcl:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, cropland, 0,0)
okfl:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, foodlabel, 0,0)
oksrb:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, searchRSSButton, 0,0)
okf:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm, 0,0)
okf1:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm1, 0,0)
okf2:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm2, 0,0)
okf3:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm3, 0,0)
okf4:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm4, 0,0)
okf5:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, farm5, 0,0)
okgr:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, gatherRSS, 0,0)
okua:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, userAccount, 0,0)
okizl:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, izzy01label, 0,0)
okizzy01:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, izzy01, 0,0)
okshanewat:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, shanewat, 0,0)
okshanewatlabel:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, shanewatlabel, 0,0)
okuserSetting:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, userSetting, 0,0)
okcharacterManagement:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, characterManagement, 0,0)
okcharacterLogin:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, characterLogin, 0,0)
okuserAllAccount:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, userAllAccount, 0,0)
okchooseAnAccount:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, chooseAnAccount, 0,0)
okcandicecoldgmail:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, candicecoldgmail, 0,0)
okgoogleButton:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, googleButton, 0,0)
okswitchButton:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, switchButton, 0,0)
okfightfairlabel:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, fightfairlabel, 0,0)
oklionsloverlabel:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, lionsloverlabel, 0,0)
okfightfair:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, fightfair, 0,0)
oklionslover:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, lionslover, 0,0)
okcharismajoygmail:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, charismajoygmail, 0,0)
okdannypopolabel:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, dannypopolabel, 0,0)
okcharismajoylabel:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, charismajoylabel, 0,0)
okdannypopo:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, dannypopo, 0,0)
okcharismajoy:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, charismajoy, 0,0)
okmalikneevedgmail:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, malikneevedgmail, 0,0)
In addition, your click function is time-consuming, which can be simplified as follows:
or adjust the fault-tolerant size. Please debug it yourself.
1. In order to improve reliability, try to capture the unique image or text on the screen.
2. Use regular graphics as much as possible, and cluttered graphics can easily lead to mismatching.