Pakku Posted December 16, 2005 Share Posted December 16, 2005 hi, i have this script: Func restore($text) $obj = ObjGet("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore") $obj.CreateRestorePoint($text, 12, 100) EndFunc and i want to make a dll of it. can someone help me. how can i make a dll of this or could someone make a dll of it for me and post it on this topic. thanks, How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
seandisanti Posted December 16, 2005 Share Posted December 16, 2005 hi, i have this script: Func restore($text) $obj = ObjGet("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore") $obj.CreateRestorePoint($text, 12, 100) EndFunc and i want to make a dll of it. can someone help me. how can i make a dll of this or could someone make a dll of it for me and post it on this topic. thanks,why a dll? if it's just for use with autoit, UDF is a much easier way to go... Link to comment Share on other sites More sharing options...
Pakku Posted December 16, 2005 Author Share Posted December 16, 2005 what is a UDF? and i want a dll of it because i can use it in other programlanguages. How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2005 Share Posted December 16, 2005 (edited) what is a UDF? and i want a dll of it because i can use it in other programlanguages. UDF = User Defined FunctionYou could make an exe with autoit that takes command line arguments to what you want also Edited December 16, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs  Don't argue with an idiot; people watching may not be able to tell the difference.  Link to comment Share on other sites More sharing options...
seandisanti Posted December 16, 2005 Share Posted December 16, 2005 what is a UDF? and i want a dll of it because i can use it in other programlanguages.ok, i was just asking because if it was only going to be used by autoit scripts, a UDF is the way to go... Link to comment Share on other sites More sharing options...
Pakku Posted December 16, 2005 Author Share Posted December 16, 2005 oke so a UDF is a exe file and queit the same as a dll file, but you can only use UDF's in autoit. is this right? if so, how can i make a UDF of the script How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2005 Share Posted December 16, 2005 oke so a UDF is a exe file and queit the same as a dll file, but you can only use UDF's in autoit. is this right? if so, how can i make a UDF of the script an exe can contain code you want to use and it is not only available to autoit for example compile the following and call it with a command line expandcollapse popup If $CmdLine [0] > 0 Then For $x = 1 To $CmdLine [0] MsgBox(0, "test", $CmdLine [$x] Next EndIf [code=auto:0] SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options... seandisanti Posted December 16, 2005 seandisanti Active Members 2.9k Share Posted December 16, 2005 oke so a UDF is a exe file and queit the same as a dll file, but you can only use UDF's in autoit.is this right?if so, how can i make a UDF of the scriptactually a udf is usually left as an .au3 (or other extension, but still script) file, and then #include<>'d into other scripts, so that the functions contained therein can be accessed as if they were written into the code of the calling program. You can however turn a UDF into a standalone executable that takes command line parameters, and works with those. that could be called from any language via the language specific syntax for running executables w/ command line arguments. Link to comment Share on other sites More sharing options... Pakku Posted December 16, 2005 Pakku Active Members 178 Author Share Posted December 16, 2005 an exe can contain code you want to use and it is not only available to autoit for example compile the following and call it with a command line If $CmdLine [0] > 0 Then For $x = 1 To $CmdLine [0] MsgBox(0, "test", $CmdLine [$x] Next EndIfi put it in a script named test.au3 and i compiled it: test.exe but than what? a command line is trough DOS isn't it? what do i have to do? and actually a udf is usually left as an .au3 (or other extension, but still script) file, and then #include<>'d into other scripts, so that the functions contained therein can be accessed as if they were written into the code of the calling program. You can however turn a UDF into a standalone executable that takes command line parameters, and works with those. that could be called from any language via the language specific syntax for running executables w/ command line arguments. when i compile one of my scripts to a exe, how can i call them? How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
seandisanti Posted December 16, 2005 Share Posted December 16, 2005 i put it in a script named test.au3and i compiled it: test.exebut than what?a command line is trough DOS isn't it?what do i have to do?and when i compile one of my scripts to a exe, how can i call them?with autoit you'd call them with Run() Runwait(), with VB it's Shell(), etc etc and you run them like you would any other program that requires extra arguments....run("myscript.exe argument1 argument2 argument3") Link to comment Share on other sites More sharing options...
Pakku Posted December 16, 2005 Author Share Posted December 16, 2005 oke now i understand, thanks for all How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
seandisanti Posted December 16, 2005 Share Posted December 16, 2005 oke now i understand, thanks for allglad to help Link to comment Share on other sites More sharing options...
Recommended Posts
seandisanti
and you run them like you would any other program that requires extra arguments....
run("myscript.exe argument1 argument2 argument3")
Link to comment
Share on other sites
Pakku
oke now i understand, thanks for all
How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me
Link to comment
Share on other sites
seandisanti
Link to comment
Share on other sites