Sign in to follow this  
Followers 0
theguy0000

Autoitx

4 posts in this topic

How is AutoItX used? can it create working callable DLLs? how do you do that? define DLL functions, return values, etc. to compile into a DLL and actually use with DllCall ( ) ?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



How is AutoItX used? can it create working callable DLLs? how do you do that? define DLL functions, return values, etc. to compile into a DLL and actually use with DllCall ( ) ?

Taken of the help file of AutoItX:

AutoItX is a DLL version of AutoIt v3 that provides a subset of the features of AutoIt via an ActiveX/COM and DLL interface. This means that you can add AutoIt-like features to your favourite scripting and programming languages, e.g. VB, VBScript, Delphi, C, C++, Kixtart, and most other languages that support the use of DLLs.

Don't confuse the use of functions in AutoItV3 (DllCall, DllStructCreate. . . ) with the use of the AutoItX Dll. They are different things.

Share this post


Link to post
Share on other sites

Example of a basic C++ Dll

#include "stdafx.h"
#include <iostream>

#ifdef _MANAGED
#pragma managed(push, off)
#endif

//This is where we define the externaly accessible function
extern "C" __declspec(dllexport)int add(int num1, int num2)
{
     int ret;
     ret = num1+num2;
     return ret;
}
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    return TRUE;
}

#ifdef _MANAGED
#pragma managed(pop)
#endif

Then you can DLLCall it with

DllCall("./SomeDll.dll", "int","add","int",44,"int",55)

Not sure if I understood your question completely, but I hope this helps.

~cdkid


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post


Link to post
Share on other sites

elgabionline answered my question. thanks.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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