GoldFishCrackers Posted January 18, 2009 Share Posted January 18, 2009 I need to transfer this to a .dll Func GetUUID() $Cereal = DriveGetSerial(@HomeDrive) $Computer = @ComputerName $UUID = StringTrimLeft(StringToBinary(_nCrypt($Cereal & "ÿ" & $Computer, @UserName)), 2) Return $UUID EndFunc Func SendUUID($UUID) $Ret = StringSplit(_nCrypt(BinaryToString("0x" & $UUID), @UserName), "ÿ") If @error Then Return -1;Invalid UUID If $Ret[1] == DriveGetSerial(@HomeDrive) And $Ret[2] == @ComputerName Then Return 1 Return 0 EndFunc The _nCrypt can be any .dll cryptography. It just needs to be encrypted! Link to comment Share on other sites More sharing options...
monoceres Posted January 18, 2009 Share Posted January 18, 2009 Well learn a language that compiles into dll's then, or was there a question in there? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
GoldFishCrackers Posted January 18, 2009 Author Share Posted January 18, 2009 Well learn a language that compiles into dll's then, or was there a question in there?Can you change it to a .dll for me? Link to comment Share on other sites More sharing options...
NerdFencer Posted January 19, 2009 Share Posted January 19, 2009 Most likely you could just make your script accept command line parameters, than have the program in need of the functions call the compiled script with the correct command line parameters. Search command line in the help documentation for AutoIt to see how to handle command line parameters. Looking at what functions you are trying to use though, I would recommend learning how to do them in C++, as they aren't very complex. _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
GoldFishCrackers Posted January 19, 2009 Author Share Posted January 19, 2009 Most likely you could just make your script accept command line parameters, than have the program in need of the functions call the compiled script with the correct command line parameters.Search command line in the help documentation for AutoIt to see how to handle command line parameters.Looking at what functions you are trying to use though, I would recommend learning how to do them in C++, as they aren't very complex.That may work yes, but I want to use this .dll in a C++ program I am writing. Link to comment Share on other sites More sharing options...
martin Posted January 19, 2009 Share Posted January 19, 2009 That may work yes, but I want to use this .dll in a C++ program I am writing.Does that mean we should understand your real question to be "How do I write a dll in C++?"? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
GoldFishCrackers Posted January 19, 2009 Author Share Posted January 19, 2009 Does that mean we should understand your real question to be "How do I write a dll in C++?"?Yeah! Link to comment Share on other sites More sharing options...
Developers Jos Posted January 19, 2009 Developers Share Posted January 19, 2009 continue here http://www.autoitscript.com/forum/index.ph...iew=getlastpost SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts