Jump to content
Sign in to follow this  
Olish

Using DLLs instead of Func ... EndFunc

Recommended Posts

Olish

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
Zedna

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
Paulie

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
Olish

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
Nomad

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
Jos

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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
jvanegmond

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.