Jump to content

AutoIt DLL


sl4y3r
 Share

Recommended Posts

Hey,

a lot of noobs thought, it is possible to create DLLs in AutoIt. Already!

Functions

create DLL

call DLL

get the return of your DLL

Fake DLL structure

#include <DLL.au3>
;you can not run this file
;this is a fake dll!
 
_DLL_StartUp()
 
 
Func _MsgBox($vID,$vTitle,$vText)
    Dim $iMsgBox
    $iMsgBox = MsgBox($vID,$vTitle,$vText)
    _DLL_Return($iMsgBox)
EndFunc
 
Func _ToolTip($vTitle,$vText)
    Dim $iToolTip
    ToolTip($vText,1,1,$vTitle)
    Sleep(1000*5)
    _DLL_Return($iToolTip)
EndFunc
 
Func _Calculate($Var1,$Var2)
    _DLL_Return($Var1+$Var2)
EndFunc

call fake dll and get the return

#include <DLL.au3>
 
$MsgBox1 = _DLL_Call("mydll.exe","_MsgBox;64;titel;text goes here...")
MsgBox(1,"Return",$MsgBox1)
 
$MsgBox2 = _DLL_Call("mydll.exe","_MsgBox;1;titel;another msgbox ")
MsgBox(1,"Return",$MsgBox2)
 
_DLL_Call("mydll.exe","_ToolTip;titel;wow a tooltip :O")
 
MsgBox(1,"","As you see... everything works fine... now lets calculate with a fake dll call " & @CRLF & "5+3=?")
 
MsgBox(1,"","5+3=" & @CRLF & _DLL_Call("mydll.exe","_Calculate;5;3"))

Download

AutoIt DLL.zip

Link to comment
Share on other sites

Hi sl4y3r

I struggling to understand what this is for, or what it does, could you provide an explanation at all?

I'm even more confused as to its relationship to software armouring.

I'd appreciate a bit of clarity if you have the time.

Thanks.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

This is honestly very silly. You're forcing a DLL syntax as command lines to a precompied application and using files for return values. This has so many shortcomings, it's not even funny. You can't return pointers since the app is never loaded into memory anywhere. You can't return arrays, you can't return structures. You can't PASS pointers, arrays, or structures as arguments. And you had to use _RunDOS() instead of a simple RunWait(@compec...)?

It's a novel idea, but don't advertise it as any sort of DLL. In fact this is like using AutoIt blindfolded, with one hand, on a Chinese keyboard. Find another direction for this project, somehow make it useful, or just delete this thread... Sorry to be harsh, but this doesn't qualify as an 'example' of anything.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...