@GKevinOD
OutofSync errors may be due to Bluestacks Version like this one that doesn't work on 0.87 Bluestacks as recommended by other Commercial Robots like LF. They don't have the -p & -a so this will work:
Run('"C:\Program Files (x86)\BlueStacks\HD-StartLauncher.exe " Android com.supercell.clashofclans com.supercell.clashofclans.GameApp"')
However just like K3iroll, I updated my bluestacks - BlueStacks Rooted Version 0 9 6 4092 Modded ENGLISH =Dubs= - and found out the shortcut link was the same as yours so this worked:
Run($RunApp & " -p com.supercell.clashofclans -a com.supercell.clashofclans.GameApp")
And regarding the imagesearch files, unfortunately I couldn't find combined architypes. However, I checked version Bot Alpha v5.3 and found out that there might be complications on the structure used:
If IsString($findImage) Then
$result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
If IsArray($result) = False Then $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
Else
$result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
If IsArray($result) = False Then $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
EndIf
This code may have called the 64bit dll first before it passed to 32bit thus creating errors for 32bit systems, I think.
So we may try something like this:
Switch @OSArch
Case "X64"
If IsString($findImage) Then
$result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
Else
$result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
EndIf
Case "X86"
If IsString($findImage) Then
$result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
Else
$result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
EndIf
EndSwitch
I'm not sure but I hope it works. I couldn't test it because I don't have a 32bit pc with me.
Moreover about bluestacks menu, here is the imagesearch files including locating Bluestacks on desktop:
https://www.dropbox.com/s/05o9n4wln99b4ch/COCImgSearchRestart.rar?dl=0
Also about the zombiesearch update, I haven't finished it yet. I'll let you know.