sl4y3r Posted July 5, 2010 Share Posted July 5, 2010 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 More sharing options...
Shafayat Posted July 5, 2010 Share Posted July 5, 2010 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] Link to comment Share on other sites More sharing options...
FinalVersion Posted July 5, 2010 Share Posted July 5, 2010 What's the point of this? [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
sl4y3r Posted July 6, 2010 Author Share Posted July 6, 2010 You can exclude the functions in external files... --> better overview protect the "dll code" etc. greetz sl4y3r Link to comment Share on other sites More sharing options...
Shafayat Posted July 6, 2010 Share Posted July 6, 2010 What do you mean by 'protecting' ? [Not using this account any more. Using "iShafayet" instead] Link to comment Share on other sites More sharing options...
ErikE83 Posted July 6, 2010 Share Posted July 6, 2010 I think it is useless. Link to comment Share on other sites More sharing options...
sl4y3r Posted July 7, 2010 Author Share Posted July 7, 2010 (edited) What do you mean by 'protecting' ?watch this http://satva.team-sl4.com/I think it is useless.It's your opinion... Edited July 7, 2010 by sl4y3r Link to comment Share on other sites More sharing options...
Shafayat Posted July 7, 2010 Share Posted July 7, 2010 you mean "Object not found!" error? That's what the page shows. [Not using this account any more. Using "iShafayet" instead] Link to comment Share on other sites More sharing options...
sl4y3r Posted July 7, 2010 Author Share Posted July 7, 2010 you mean "Object not found!" error? That's what the page shows.Sorry, had to work on my ftphttp://satva.team-sl4.com/watch this Link to comment Share on other sites More sharing options...
JohnOne Posted July 7, 2010 Share Posted July 7, 2010 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 More sharing options...
AdmiralAlkex Posted July 7, 2010 Share Posted July 7, 2010 Sorry, had to work on my ftphttp://satva.team-sl4.com/watch thisAnd why are your site a direct copy of Mobius one? (first link in about me) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
wraithdu Posted July 7, 2010 Share Posted July 7, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now