FindClick() - ImageSearch, Clicking, & More [Newest Version]

Post your working scripts, libraries and tools
Oblituarius
Posts: 6
Joined: 31 Mar 2019, 16:57

Re: FindClick() - ImageSearch, Clicking, & More [Newest Version]

06 Jan 2020, 15:00

Hi @berban It's me again.

I gave up on "db" since it never worked. I tried using the example on P.19 and I always get a blank result or "(,0). Is there a way to use that example or a variation of it to extract %Results% into an Array that I can order up? I know that if I get it to work, I could store %Coords1% and %Coords2% into some variables and then put them into an Array.
That would also work in my case.

Still testing some stuff, it's been a while since I worked on my script. I will probably have to go through FindClick.ahk to see how it is working too.

Thanks!

Edit1: So I managed to get every single instance coord with this code . Probably too much sh*t and it shouldn't be done like this. It's super messy, but it gets the job done:

Code: Select all

TableLoc()
{
	FindClick("Image", "e n Sleep500 oTransBlack,1 a408,680,-443,-329")
	Sort, Results, N R
	Coords := StrSplit(Results, "`n", "`")
	Loop % (Coords.MaxIndex()-1)
	{
		X1_Table_Array[TA1] := Coords[A_Index]
		if (X1_Table_Array[TA1] = X1_Table_Array[TA1-1])
		{
			TA1++
			TA2++
			Tooltip, Sum %TA2%, 1578, 523, 2
		}
		Sleep 800
		Temp1 := X1_Table_Array[TA1]
		Temp2 := X1_Table_Array[TA1]
		
		StartingPos := InStr(Temp1, ",")
		string1 := SubStr(Temp1, 1, 4)
		
		StartingPos := InStr(Temp2, ",")
		string2 := SubStr(Temp2, StartingPos + 1)
		
		Tooltip, %TA3%, %string1%, %string2%, %TA3%
		TA3++
		TA1++
		
		Click1 := Format("{:i}", string1)
		Click2 := Format("{:i}", string2)
		
		MouseGetPos, X, Y
		Random, I, 0, 1 ;Random ellipse invert.
		MouseMove_Ellipse(X, Y, Click1+40, Click2+60, 1, 0, I)
		
		TableFinder()
	}
	return
}
Now, for some reason, I have to leave in oTransBlack,1 or it goes bunkers xd.

This took me solid 8+hrs of research to put together. Kill me.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: KentC and 58 guests