Orca Posted September 21, 2004 Share Posted September 21, 2004 All i can see as correct is #include "filepath.au3" but if you leave a file as a au3 extenssion people can open and read your src, making stealing and inserting bad/evil code simple, so can i include .exe files? or is there another more secure file type that cannot be opened or viewed that i can use in #include? - [G]oat | Kurusuki I AM ORCA!! A VERY POWERFUL WHALE!!! Link to comment Share on other sites More sharing options...
jpm Posted September 21, 2004 Share Posted September 21, 2004 All i can see as correct is #include "filepath.au3" but if you leave a file as a au3 extenssion people can open and read your src, making stealing and inserting bad/evil code simple, so can i include .exe files? or is there another more secure file type that cannot be opened or viewed that i can use in #include? - [G]oat | Kurusuki <{POST_SNAPBACK}>If you compile your script you will protect the script code and the include files too because the include files will be in the compiled script. I think that protect you. Link to comment Share on other sites More sharing options...
this-is-me Posted September 21, 2004 Share Posted September 21, 2004 (edited) You dont #inlcude exe files. You Fileinstall them. Also, #include more or less adds the code in the inluded file to the top of the currently running script. It is not saved anywhere on the hard drive when a compiled script is run. Edited September 21, 2004 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Valik Posted September 21, 2004 Share Posted September 21, 2004 You dont #inlcude exe files. You Fileinstall them. Also, #include more or less adds the code in the inluded file to the top of the currently running script. It is not saved anywhere on the hard drive when a compiled script is run. <{POST_SNAPBACK}>Minor correction. #include inserts the text beginning at the point that particular #include was found. ; Include.au3 MsgBox(4096, "", "Insides #include'd file") ; Main.au3 MsgBox(4096, "", "Inside main script") #include "Include.au3" Result: Two message boxes, the first coming from inside main, the other from the include'd file. Link to comment Share on other sites More sharing options...
Orca Posted September 22, 2004 Author Share Posted September 22, 2004 no what im trying to do is make my script cleaner, instead of having each function (which will constantly expand) in the main program file, ive split it up so i can see ONLY what i have to while adding new sections of code. kinda like a library... BUT i dont want people being able to open up the .au3 file and steal all my fancy pants functions and coding ive done (which actually is kinda complicated and annoying to have to create on ur own) im just trying to protect my own work, i know what #include does btw, it works just as include() does in php... also i was asking for files other than exe that would be secure to import rather than au3 or other easily viewable file types... i was already fairly sure .exe files wouldnt include nicly I AM ORCA!! A VERY POWERFUL WHALE!!! Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted September 22, 2004 Share Posted September 22, 2004 Might I just add a little thing? Even if you do compile, sure, it helps protect code, but the code can still be seen/found easily. With a decompiler. So, if your MAIN problem is that you don't want people to see the code, then you should just get over it And also, why would you want to hide it? I mean, if it's a good script, wouldn't you want to share it with other people to help them understand scripting better? Just a thought... Link to comment Share on other sites More sharing options...
nobby Posted September 22, 2004 Share Posted September 22, 2004 If you use a static repository, compile each function into its own exe, then run them from the main script.As per protecting your code, it is possible to add a passphrase to the compiling process or even an option to prevent decompiling.Check the very excellent work by JdeB at http://www.autoitscript.com/fileman/users/jdeb/jdeb_autoit_stuff.htmand also this forumCompileau3.exe Updated, Scripts & Scraps Forum CheersNobby Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted September 22, 2004 Share Posted September 22, 2004 Although it isn't 100% protected, to stop people from decompiling your executables, just use the nodecompile command option from Aut2Exe.exe. If you want the ability to decompile but you don't want others to have this ability... ass a passphrase instead of the nodecompile switch. It's all in the documentation. I hope this helps! *** Matt @ MPCS Link to comment Share on other sites More sharing options...
emmanuel Posted September 22, 2004 Share Posted September 22, 2004 just to help clarify, if you use a #include then compile the script to exe, you do not need to redistribute the referenced #include files. As far as the compiled exe is concerned, they no longer exist, nor need to. "I'm not even supposed to be here today!" -Dante (Hicks) 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