3 posts in this topic
_ImageSearch with $transparency
Does anyone have experience with transparency on _ImageSearch? The code attached finds the image "base.bmp" but at position 0,0 not near the center of the screen as it appears. My goal is to find the Big Blue "G" regardless of the background. I have not yet found the base image, so I have not tested changing the background. Do you have to use image formats that support transparency? If so, how would you capture the image from within autoit code and set the transparency color?
ImageSearch Script Closing w/ Error
I am back once again to ask for assistance. I am just trying to fool around with the "ImageSearch" function in order to detect when certain elements appear on my active window to then respond to. To begin testing this I simply cut out a small segment of my background, saved it as a BMP, and used that as the bmp for the search function. I had hoped for it to just run through quickly and say it found it and spit out the X Y coords of where it was found. Instead I am getting this : http://screencast.com/t/MD9aOzPhETE
Here's my script thus far :
#Include <msgBoxConstants.au3> #Include <ImageSearch.au3> global $x = 0 global $y = 0 CheckForImage () Func checkForImage () Local $Search = _ImageSearchArea ('ninjaCheck.bmp', 1, 0, 0, 1366, 768, $x, $y, 100) If $Search = 1 Then MsgBox ($IDOK,"Found",$resultPosition) EndIf EndFunc While 1 Sleep (10) WEnd What I would like assistance with is how do I "Debug" this in order to see where/why it is failing.
I've reviewed https://www.autoitscript.com/wiki/FAQ#How_can_I_debug_my_script.3F but I am not entirely sure how to apply the information. If I could get a return on "Hey, this Func or This Line is where I died" , that would be awesome.
Any suggestions on how I can tackle this issue?
Thank you for your time!
checkNinja.bmp is " " around it now and it has the same result
i need your help and advice regarding the image search function.
I need to click an image on a web site. after using the image search function i am getting the following error, on the image search function
if $result="0" then return 0 if $result^ ERROR I am using the x64 configuration with the following files attached
thanks for helping..
ImageSearch 64 bit.rar
packaging bitmaps in exe
I am currently using a script that heavily relies on the imagesearch function at work. I am planning to share it with other workers but the trouble is the location of the bitmaps. Can I somehow package the bitmaps in the exe itself so the script is not dependent on the location of these bmp files?
Searching hbitmap in hbitmap with tolerancy
I want to search hbitmap in hbitmap. Yeah, there are some UDFs for that already.
I use this one: https://www.autoitscript.com/forum/topic/158264-bmpsearch-search-for-bitmap-within-bitmap-assembly-version/#comment-1275382 I'd like to ask you if you can help me to add 1 more parameter to this function: Shades/tolerancy like in library ImageSearch.au3 . I am playing with Autoit for cca 3-5 month so I don't have enough experiences to do that.
I would be very thankful for help.