Sign in to follow this  
Followers 0
Olish

Using DLLs instead of Func ... EndFunc

8 posts in this topic

Hello everybody,

is compiling AutoIt functions in a DLL instead of using AutoIt Scripts for calling them possible ?

And does DllCall wait while using the DLL function is finished or can I launch several "DllCall" in the same time ?

Thanks for your help.

Olivier, from France.


Olivier, from France.Free Wake On LAN script

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

is compiling AutoIt functions in a DLL instead of using AutoIt Scripts for calling them possible ?

NO this is not possible (compile AU3 to DLL)

EDIT: but look at A3X feature maybe it's what you can use instead

Edited by Zedna

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hello everybody,

is compiling AutoIt functions in a DLL instead of using AutoIt Scripts for calling them possible ?

And does DllCall wait while using the DLL function is finished or can I launch several "DllCall" in the same time ?

Thanks for your help.

Olivier, from France.

If i'm understanding correctly, he wants to use dllcalls like #include :D

Don't know how you'd make it work

Edited by Paulie

Share this post


Link to post
Share on other sites

If i'm understanding correctly, he wants to use dllcalls like #include :D

Don't know how you'd make it work

No what I want to do is :

DllCall("myDLL", "myfunction"...)

instead of :

#include "myfunctions.au3"
...
myfunc()

Olivier, from France.Free Wake On LAN script

Share this post


Link to post
Share on other sites

No what I want to do is :

DllCall("myDLL", "myfunction"...)

instead of :

#include "myfunctions.au3"
...
myfunc()
It's possible, but you'd have to write the dll in another language. So I don't really see the point in doing that, unless you have a very specific case in which AutoIt is either too slow to accomplish your goals (like a recent project of mine), or AutoIt simply isn't capable of performing the required task.

Nomad :D


Share this post


Link to post
Share on other sites

No what I want to do is :

DllCall("myDLL", "myfunction"...)

instead of :

#include "myfunctions.au3"
...
myfunc()
The question remains why you want to do this ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yeah, sure it is. Write the DLL in C or whatever programming language you like. Compile it, then use a AutoIt's DLL call to that function. I've used it a little for testing. I was going to implement it into my 3D library because the Math's stress AutoIt a lot. But i haven't so i can't really send any examples.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0