; If error exit
If IsArray($result) Then
If $result[0] = "0" Then Return 0
Else
SetLog("Error: Image Search not working...")
Return 1
EndIf
SetLog("Error: Image Search not working...")
; Otherwise get the x,y location of the match and the size of the image to
; compute the centre of search
$array = StringSplit($result[0], "|")
If (UBound($array) >= 4) Then
$x = Int(Number($array[2]))
$y = Int(Number($array[3]))
If $resultPosition = 1 Then
$x = $x + Int(Number($array[4]) / 2)
$y = $y + Int(Number($array[5]) / 2)
EndIf
Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance,$HBMP=0)
;MsgBox(0,"asd","" & $x1 & " " & $y1 & " " & $right & " " & $bottom)
If IsString($findImage) Then
if $tolerance>0 then $findImage = "*" & $tolerance & " " & $findImage
If $HBMP = 0 Then
$result = DllCall("ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage)
Else
$result = DllCall("ImageSearchDLL.dll","str","ImageSearchEx","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
EndIf
Else
$result = DllCall("ImageSearchDLL.dll","str","ImageSearchExt","int",$x1,"int",$y1,"int",$right,"int",$bottom, "int",$tolerance, "ptr",$findImage,"ptr",$HBMP)
EndIf
; If error exit
if $result[0]="0" then return 0
; Otherwise get the x,y location of the match and the size of the image to
; compute the centre of search
$array = StringSplit($result[0],"|")
$x=Int(Number($array[2]))
$y=Int(Number($array[3]))
if $resultPosition=1 then
$x=$x + Int(Number($array[4])/2)
$y=$y + Int(Number($array[5])/2)
endif
return 1
EndFunc
Global $MainScreenStart = @ScriptDir & "\Images\MainScreenStart.bmp"
Local $collx, $colly
if _ImageSearchArea($MainScreenStart, 1, 0, 0, 840, 720, $collx, $colly, 20) Then MsgBox(0,"it worked",$collx & "," & $colly)
bluestack whatsapp 05/07/2015 - Technical Support - 0 Replies hey ich habe ein problem ich wollte mir eben whatsapp auf mein laptop ziehen jedoch funktioniert das nicht ich habe mir bluestack runtergeladen funktioniert einwandfrei jedoch wenn ich dann auf whatsapp installieren klicke kommt folgender fehler .
http://i.epvpimg.com/qdsbf.png
kann mir da evt jemand helfen ?
Bluestack in VirtualBox 07/24/2014 - Technical Support - 2 Replies Hey ho, ich habn Problem...
Und zwar hab ich ne virtuelle Box aufm pc installiert, in der Bluestacks läuft. Ich hab die gefixxte Bluestack Setup benutzt, damit Bluestack in der virtuellen Box läuft.
Leider wenn ich dort Instagram installieren möchte, bekomme ich eine Fehlermeldung, dass keine Grafikkarte vorhanden ist. ( andere Apps funktionieren problemlos )
Gibt es eine Möglichkeit, der VirtualBox eine Grafikkarte oder ähnliches zu zuweisen?
Danke schon einmal für eure Hilfe :)
Bluestack Plague inc. 11/14/2013 - General Gaming Discussion - 0 Replies Hey Leute!
Ich sehe ganz viele videos auf Youtube die mein lieblings Spiel "Plague inc." in Bluestack zocken!
Leider kann ich die app dort nicht finden.
Gibt es da möglichkeiten das game über Bluestack zu Zocken ?
Grüße
Peter
bluestack 11/07/2013 - Technical Support - 0 Replies failed to install kriege ich als...
ja ich habe gegoggelt habe die files gelöscht und regedit einegfügt... nix gliche fehler