Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:50

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

Advertisement



Where to put .DLL

Discussion on Where to put .DLL within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 2
Received Thanks: 0
Where to put .DLL

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.
Bandannafied is offline  
Old 06/03/2014, 12:18   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
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).
alpines is offline  
Old 06/03/2014, 13:06   #3
 
elite*gold: 0
Join Date: Jun 2014
Posts: 2
Received Thanks: 0
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
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 -
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.
Bandannafied is offline  
Old 06/05/2014, 13:06   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
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
fear-x is offline  
Reply




All times are GMT +1. The time now is 02:51.


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.