Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Imagesearch doesnt find Image !

Discussion on Imagesearch doesnt find Image ! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 11
Received Thanks: 0
Unhappy Imagesearch doesnt find Image !

Hey Guys,
I really dont know what to do anymore , the script I made doesnt find the image that It should and I dont know what i am doin wrong.
I want that it always presses F2 until the Image was found and if the Image was found it should stop and exit.
Heres my code :

Code:
#RequireAdmin
#include <ImageSearch.au3>
GUICreate("AwakeBot"  ,200,150 )
GUICtrlCreateLabel ("Versuche:",  1, 30, 50)
GUISetState (@SW_SHOW)

HotKeySet("{NUMPAD1}","_starten")
HotKeySet("{NUMPAD3}","_beenden")
HotKeySet("{p}","_pause")

$x1 = 1366
$y1 = 768
$info = GUICtrlCreateLabel ("Erwecken...",  1, 70, 1000)
$Versuche = GUICtrlCreateLabel ("0",  50, 30, 50)
Global $x1 = 0, $y1 = 0, $info, $tolerance = 0, $resultPosition, $Versuche
$findImage = _ImageSearch('Awake', 1, $x1, $y1, 100)

	While 1
	   Sleep(1)
   WEnd

_ImageSearchArea($findImage = _ImageSearch('Awake', 1, $x1, $y1,50), $resultPosition = 1, 1366, 768, 1366, 768, $x1, $y1,$tolerance = 50)

Func _starten()
   while 1
   Send("{F2 down}")
   Sleep(700)
   Send("{F2 up}")
   GUICtrlSetData ($Versuche, GUICtrlRead($Versuche) + 1)
    _ImageSearchArea($findImage, $resultPosition, 0, 0, 1366, 768,$x1 ,$y1 ,$tolerance)
   If $findImage = True Then
	GUICtrlSetData($Info, "Fertig")
	Sleep(10000)
	Exit
EndIf
WEnd
EndFunc

   Func _pause()
  GUICtrlSetData($Info, "Paused")
    Sleep(20000)
    GUICtrlSetData($Info, "Normal State")
 EndFunc

 Func _beenden()
	Exit
EndFunc
I would really appriciate if somebody would explain me the problem clearly
thanks you
DDHacker is offline  
Reply


Similar Threads Similar Threads
Lawl Image - Easy Image upload
10/08/2015 - Coding Releases - 132 Replies
Hier steht euch nun die gründlich überarbeitete Version von LawlImage zur verfügung! Mit LawlImage ist es einfach wie nie, schnell Bilder hochzuladen. Das einzige was ihr tun müsst, ist einen Rechtsklick auf das Bild auszuführen und unter "Senden an" oder "Send To" LawlImage zu wählen. Schneller kann man Bilder nicht hochladen! http://image.lawl-dev.com/imgsrv.php?url=79348bed 8d5da002ffc10d36f2e916d2.png
Dibiase - New Sig/Full Size Image - [GIANT IMAGE WARNING]
10/26/2011 - General Art - 1 Replies
WARNING - SOME OF THESE IMAGES ARE MASSIVE(OVER 2000 PIXELS WIDE/1000 PIXELS HIGH). This is my latest signature collection, the full size images show the detail. Full-Size: http://img339.imageshack.us/img339/971/dibiaseful l.png Super-Sized:
Warrock hack doesnt find the dll
11/28/2010 - WarRock - 9 Replies
Wenn ich Warrock öffne kommt faild inject obwohl ich beides gleich genannt habe habe schon firewall ausgeschaltet hilft alles nicht -.-
Easy way to find real mage after mirror image
01/19/2009 - WoW Guides & Templates - 4 Replies
If you go to interface > names > then uncheck enemy players pets & minions and creations. Now when a mage spawns mirror image, only the real mage will have his name over his head.



All times are GMT +1. The time now is 21:57.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.