Azu Posted September 2, 2006 Share Posted September 2, 2006 (edited) It's cool how AutoIt has a whole bunch of different functions and stuff already included by default! I'm wandering if there as an option, however, to make it so it includes the ones that the script will use? If there isn't, could someone make it? I think it could speed up compile times and we could start seeing 10KB AutoIt EXEs.. that could be fun, couldn't it? Edited September 2, 2006 by Azu Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 2, 2006 Moderators Share Posted September 2, 2006 (edited) It's cool how AutoIt has a whole bunch of different functions and stuff already included by default!I'm wandering if there as an option, however, to make it so it includes the ones that the script will use?If there isn't, could someone make it? I think it could speed up compile times and we could start seeing 10KB AutoIt EXEs.. that could be fun, couldn't it? That's not an "easy task" at all (Give it a try and you'll see what I mean)... I think someone was already working on it... I'll check the thread and see if that's what they working on.Edit:http://www.autoitscript.com/forum/index.ph...st&p=218660 Edited September 2, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Azu Posted September 2, 2006 Author Share Posted September 2, 2006 Thank you, this looks like ALMOST exactly what I'm looking for, except I was also wandering if there could be a way to do this, except instead of only doing it to the things you manually added with #include, if it could also do it to all of the stuff that is normally included by default even if it's not used. This could result in some compiled scripts being like 20 times smaller, and freeing up a lot of unused resources. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 2, 2006 Moderators Share Posted September 2, 2006 Thank you, this looks like ALMOST exactly what I'm looking for, except I was also wandering if there could be a way to do this, except instead of only doing it to the things you manually added with #include, if it could also do it to all of the stuff that is normally included by default even if it's not used. This could result in some compiled scripts being like 20 times smaller, and freeing up a lot of unused resources.I don't understand what your saying. If you wrote it, don't you know whether or not you used it? If your talking about only including the functions that you are using in the #includes, it goes a bit deeper than that, you'll also only want to include the Global Const's that each function/main script is using.You really have to think this out, what you would need to do.1. Get every function from the main script without the #includes.2. Get every Variable from the Main Script and from the #includes3. Compare the Function Names from the Main to the #include to see which you would want to extract.4. Make sure that those functions aren't using another function and if they are include those.5. Make sure that include isn't calling another include and call that one so you can etract the necessary Vars and Funcs6. Piece them all together (I know I missed something up above, but this was just to show you... what your asking for is no small task).I'd suggest getting started right away on writing it, it's definately not a road I personally feel like venturing in. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Azu Posted September 2, 2006 Author Share Posted September 2, 2006 (edited) Sorry I worded it wrong. I love what the program you linked does. For the #includes. I would like it to do the same to all the stuff that gets bundled into the EXE, also, though. Is there any way to do this? Edited September 2, 2006 by Azu Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 2, 2006 Moderators Share Posted September 2, 2006 Sorry I worded it wrong.I love what the program you linked does. For the #includes.I would like it to do the same to all the stuff that gets bundled into the EXE, also, though.Is there any way to do this?What are you talking about?... Please be specific... because I'm clueless. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
amanda089 Posted September 2, 2006 Share Posted September 2, 2006 I think Azu is talking about dynamically recompiling the stub to only include the builtin functions used in the compiled script. Link to comment Share on other sites More sharing options...
Azu Posted September 2, 2006 Author Share Posted September 2, 2006 I think Azu is talking about dynamically recompiling the stub to only include the builtin functions used in the compiled script.Yes I think that's it.. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 2, 2006 Moderators Share Posted September 2, 2006 I think Azu is talking about dynamically recompiling the stub to only include the builtin functions used in the compiled script.This is about to become a Valik Quote thread ... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
amanda089 Posted September 2, 2006 Share Posted September 2, 2006 lol. I'm just learning vb .net and even I know how difficult it is to do dynamic recompiling Link to comment Share on other sites More sharing options...
Azu Posted September 2, 2006 Author Share Posted September 2, 2006 So.. has anyone does it? I've tried searching for it but came up empty handed. Link to comment Share on other sites More sharing options...
amanda089 Posted September 2, 2006 Share Posted September 2, 2006 the most difficult way that I can think if, is having the locations and sizes for *every* function, cutting out the ones that aren't used, then rebasing (or whatever it is called), then going ahead and compiling the script... Side Effect: your compiled script can no longer be used as a stand along interpretor for any au3 files. Link to comment Share on other sites More sharing options...
Valik Posted September 3, 2006 Share Posted September 3, 2006 Not going to happen. Been asked before. Technical nightmare, not worth the effort. breaks /AutoIt3ExecuteScript and /AutoIt3ExecuteLine. I think that about covers it. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 3, 2006 Share Posted September 3, 2006 The easiest way is to switch language. Good luck with that. I can recommend Visual basic if you are familiar with AutoIt. C/C++ is a total nightmare. Lol ^^ github.com/jvanegmond 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