zaini Posted November 12, 2008 Posted November 12, 2008 I like to learn DLL Function..but i dont have any basic about C++. I only know Autoit function only.. the question is... How to read dll function? How to apply it to autoit UDF? Is there have any idea or website can i refer to... thanks
Andreik Posted November 12, 2008 Posted November 12, 2008 I like to learn DLL Function..but i dont have any basic about C++.I only know Autoit function only..the question is...How to read dll function?How to apply it to autoit UDF?Is there have any idea or website can i refer to...thanks Use DLL Export View to get names of functions from DLL, search on MSDN to see the parameters and then is all AutoIt (DllOpen,DllCall,DllClose).
monoceres Posted November 12, 2008 Posted November 12, 2008 (edited) Dll's are (simplified) collections of compiled functions. To know how to call the functions you need to get information from the author of the dll file. The only thing you can extract directly from the dll file is the names of the functions ( see Export viewer in my sig ).Most of the udf's on the forum that uses dlls are using dlls from microsoft so it is microsoft we need to get the info from.Here's an example of microsoft documentation which allows you to do a DllCall():http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspxAs you can see it's the Sleep function that is already present in autoit. It is however a good test function.When writing the DllCall you need to know 4 things, the name of the function, what the function returns, which dll it resides in and what parameters it takes.As you can see on the msdn page Sleep returns nothing (void), it resides in Kernel32.dll and it takes one parameter of the type "dword".So the DllCall() look like this:DllCall("Kernel32.dll","none","Sleep","dword",1000); Sleeps for 1000 msBest way to continue learning is to browse through msdn and implement simple functions.Good luck Edited November 14, 2008 by monoceres Broken link? PM me and I'll send you the file!
zaini Posted November 12, 2008 Author Posted November 12, 2008 Thanx there is much info i get today.. perhaps there is an example...
zaini Posted November 14, 2008 Author Posted November 14, 2008 Is there anyone can give me an example? i like to create dll function..
trancexx Posted November 14, 2008 Posted November 14, 2008 It's clear that you have no idea whatsoever what you are talking about. monoceres gave you an example. ♡♡♡ . eMyvnE
Richard Robertson Posted November 14, 2008 Posted November 14, 2008 He wants to make a dll function according to his last post. It sounds though like he is wanting to compile AutoIt to a dll, but there's a language issue either way.
zaini Posted November 15, 2008 Author Posted November 15, 2008 He wants to make a dll function according to his last post. It sounds though like he is wanting to compile AutoIt to a dll, but there's a language issue either way.Richard Robertson is right...i just want to know a simple example that somebody could attach it here by using autoit langguage to create DLL.. It sound hard but i like to learn it...hehe
AzKay Posted November 15, 2008 Posted November 15, 2008 You cant make a dll with autoit. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
zaini Posted November 15, 2008 Author Posted November 15, 2008 (edited) ooh...ok thanx for all idea and support... i really appreciate that.. Edited November 15, 2008 by zaini
trancexx Posted November 15, 2008 Posted November 15, 2008 You cant make a dll with autoit.This is something that I've heard (read) few times for the past couple of months. I'm having this feeling that one person wrote that somewhere on the forum and everyone is just repeating that after him\her.This is absolutely not true!What you should be saying is that AutoIt script cannot be compiled to dll, since execution of such script is relaying on AutoIt's executable (AutoIt being interpreted language).Other than that you can make dll with AutoIt with no trouble (at all). ♡♡♡ . eMyvnE
AzKay Posted November 15, 2008 Posted November 15, 2008 This is something that I've heard (read) few times for the past couple of months. I'm having this feeling that one person wrote that somewhere on the forum and everyone is just repeating that after him\her.This is absolutely not true!What you should be saying is that AutoIt script cannot be compiled to dll, since execution of such script is relaying on AutoIt's executable (AutoIt being interpreted language).Other than that you can make dll with AutoIt with no trouble (at all).Sure, Im just copying what the first person said.Which is where the whole, "Use the search button" thing comes into play.The people search, then they use what they found.So cant really blame us for copying what the original people said.Or something. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
trancexx Posted November 15, 2008 Posted November 15, 2008 Sure, Im just copying what the first person said.Which is where the whole, "Use the search button" thing comes into play.The people search, then they use what they found.So cant really blame us for copying what the original people said.Or something.Something.Thing is that if some fact, even if it's not true (context is very important) when repeated certain number of times becomes true thus changing perspective.Like the idea that earth is round?!? No way man! Earth is flat. ♡♡♡ . eMyvnE
Richard Robertson Posted November 15, 2008 Posted November 15, 2008 Well there's no point in worrying about it now. We just have to keep pointing out that AutoIt can't compile like that.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now