Where to put .DLL

06/03/2014 09:24 Bandannafied#1
I've started playing around with AutoIt and am making an automated Login script that works with League of legends for personal use.

I want to use _ImageSearch() to help with selecting the 'Accept button' during queu but it is a UDF with a .dll file.

I have downloaded the UDF and .dll. I've googled and read that the UDG should go in my scripts directory or in the main /Include directory in Program files, but I am unsure where the .dll file goes.

The rest of my script is working as I want, but will stop if I call _ImageSearch(), and I can only assume this is because It is not accessing the .dll.

Also, I have tried the .dll & UDF in the same directory as my script as well as many other places. I am now out of ideas.


thank you for your help.

Also - I am wanting to use ImageSearch library instead of regular pixel search because pixel search has problems detecting the proper button since the color is similar to the background and the 'Accept" Text is only 1-2 pixels wide and not true white.
06/03/2014 12:18 alpines#2
Both (UDF and DLL) belong in the script folder.
You have to include the udf via
Code:
#include "ImageSearch.au3"
and not with <>.
The name of the dll has to be ImageSearchDLL.dll I think (the name is in the UDF).
06/03/2014 13:06 Bandannafied#3
I had tried it already. I've googled and looked at youtube off and on all day about it and have tried pretty much all the various suggestions that could be found.
I'm still messing around with it, and will have to retry what you suggest, but I figured out a work around for my script for now.

Instead of doing an _Image search() for the accept button, I realized I could just use the built in PixelGetColor() for a point right around here
[Only registered and activated users can see links. Click Here To Register...] and store to some $Color1

and then run a Do/Until loop that makes another PixelgetColor() store the same point into some $Color2 and then compare $Color1 and Color2
The loop will continue until the variable are not equal which happens here - [Only registered and activated users can see links. Click Here To Register...]
when the accept button pops up.

And when they are no longer equal, its a simple mouse move and click to press the button.



This way is really reliant on resolution and client position though, because it deals with that particular point to compare colors.
06/05/2014 13:06 fear-x#4
you will rely on client position/resolution with ImageSearch AND Pixeling...

if you look at autoit help files...
Opt("PixelCoordMode", 1) ;1=absolute, 0=relative, 2=client

you need to read help file more if you are making bots :)


and still pixel detection will fail botting... you need to use memory