Jump to content

Recommended Posts

Posted

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

Posted

It is slow as hell (because of using files and command line).

Besides, it is pointless.

[Not using this account any more. Using "iShafayet" instead]

Posted (edited)

What do you mean by 'protecting' ?

watch this :blink:

http://satva.team-sl4.com/

I think it is useless.

It's your opinion... Edited by sl4y3r
Posted

you mean "Object not found!" error? That's what the page shows.

Sorry, had to work on my ftp

http://satva.team-sl4.com/

watch this

Posted

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.

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
  • Recently Browsing   0 members

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