laffo16 Posted August 27, 2007 Share Posted August 27, 2007 hello! ok In my program, i have a section of autoit code which will be free for the customer edit, but i want to place restrictions on the functions & varibles which they can use to stop them from gathering othre important information within the script. can this be done? suggestions anyone? Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 27, 2007 Share Posted August 27, 2007 hello! ok In my program, i have a section of autoit code which will be free for the customer edit, but i want to place restrictions on the functions & varibles which they can use to stop them from gathering othre important information within the script. can this be done? suggestions anyone?No. Put the user editable data in a separate place, i.e. and INI file or the registry. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
laffo16 Posted August 27, 2007 Author Share Posted August 27, 2007 ok thanks, why would this not be recommended? is it not possible? i have determined the only varibles and functions to allow would be: $playgroup $tocall $bb $findmypos $pot makebet() checkcall() fold() $firstact Link to comment Share on other sites More sharing options...
weaponx Posted August 27, 2007 Share Posted August 27, 2007 Why aren't you just providing a GUI that limits what the users can do? Link to comment Share on other sites More sharing options...
laffo16 Posted August 27, 2007 Author Share Posted August 27, 2007 to give the user more freedom on how they can use the varibles allowed, by allowing them to write their own conditional statements. Link to comment Share on other sites More sharing options...
dinodod Posted August 27, 2007 Share Posted August 27, 2007 Depending on what you are wanting, you can program those variables INTO your script so they are embedded in the code itself. INI and Reg keys are nice but easy to find and change. You *COULD* encrypt a file if you want to hold the variables outside.Or design your GUI NOT to show those particular variables so the user doesn't have any idea of them in the 1st place.ok thanks, why would this not be recommended? is it not possible? i have determined the only varibles and functions to allow would be:$playgroup$tocall$bb$findmypos$potmakebet()checkcall()fold()$firstact Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007 Link to comment Share on other sites More sharing options...
laffo16 Posted August 28, 2007 Author Share Posted August 28, 2007 i've managed to restrict the creation of new varibles, in the users script. I'm hoping this will be enough. My problem now is that i need the said "users-editable-code.au3" to be included into the main compiled script each time it runs. The same way it is done when you run an include in an au3 file before it is compiled. is this at all possible? or how else can you go around importing au3 code into a compiled exe? Link to comment Share on other sites More sharing options...
laffo16 Posted August 28, 2007 Author Share Posted August 28, 2007 suggestions anyone? is this possible? if it isnt please let me know Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 28, 2007 Moderators Share Posted August 28, 2007 /AutoIt3ExecuteScript 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...
laffo16 Posted August 29, 2007 Author Share Posted August 29, 2007 readup on /AutoIt3ExecuteScript, thanks for the suggestion but its not really what i need. executing the users script seperatly brings me a hole lot of other problems. I have pretty much given up on this search. i see no way of reading an *.au3 file and including its code into my pre-compiled exe.... such as... main.exe - >> main program.... main program.... $code = fileread(editable.au3) execute $code or include "editable.au3" main program.... main program.... end main.exe << so when editable.au3 is changed, the main.exe does not need re-compiling with the update. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 29, 2007 Moderators Share Posted August 29, 2007 (edited) readup on /AutoIt3ExecuteScript, thanks for the suggestion but its not really what i need.executing the users script seperatly brings me a hole lot of other problems. I have prettymuch given up on this search. i see no way of reading an *.au3 file and including its codeinto my pre-compiled exe.... such as...main.exe - >>main program....main program....$code = fileread(editable.au3)execute $code or include "editable.au3"main program....main program....end main.exe <<so when editable.au3 is changed, the main.exe does not need re-compiling with the update.You're either going to have to "re-compile" it, or learn about injection... either way, it seems way more trouble than it's worth.Edit:Reading your list above... you say "Execute code or #inlude editable.au3"I'm curious why /AutoIt3ExecuteScript won't work now?1. Read Changes2. Write File with changes3. Execute new .au3 as a child process4. Close parent if necessary5. Now new child is parent. Edited August 29, 2007 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...
laffo16 Posted August 29, 2007 Author Share Posted August 29, 2007 i'm going to give it a shot SmOke_N, i think it just took a little time for the concept to settle in 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