Jump to content
Sign in to follow this  
nyke0

Save/burn a string into a compiled script?

Recommended Posts

nyke0

It's hard to explain, but I will try. After compiling a script I will run it, and with the first run it will create a string, like a key. The script shall keep this string for ever, but it's should'nt be saved in a txt file or somewhere, only in the exe. Is taht possible?

Share this post


Link to post
Share on other sites
computergroove

Why do you need to do this? I suppose you could make sure that autoit was installed and you could make your script copy your entire code with the new variable and recompile your code to a new exe and then delete the old one. It's very messy and unnecessary. Just use a  text file.

Edited by computergroove

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
nyke0

I know that way, thanks. But I asking for a hard save without to recompile for just 1 string.

Edited by nyke0

Share this post


Link to post
Share on other sites
computergroove

Once the exe has been compiled it no longer gets written to. The answer is no.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
MikahS

Absolutely not :(


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
jchd

Adding a resource could work but probably not while the .EXE is running. Another very different (naïve) possibility to attach a licence or something like that is to store it in an ADS (Alternate Data Stream) "under" the .EXE but it only works with NTFS.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites
jchd

AVs frown on that.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites
jguinch

Even if we can store an information into the exe file, copying the file on a different computer will copy the key to.
So if you need to prevent the exe file copy (with the embedded key), then you will have to store the key outside the exe, or work with an unique computer ID (GUID).

JCHD suggestion seems to be a good way. :)

Edited by jguinch

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×