Jump to content
Sign in to follow this  
Sulfurino

Sending the stored information in a variable to a txt document without FileWrite

Recommended Posts

Sulfurino

As the title say, i have an variable that i want to store inside a txt document without having to open the txt document.

How is this done? Clearly FileWrite will not work since it relies on having to open the txt document.

 

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

To change the content of a file you have to open it. Full stop.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Sulfurino

Welcome to AutoIt and the forum!

To change the content of a file you have to open it. Full stop.

 

Then how can games write to files without you see the file flashing before you? like if i change my resolution to 800x600 that information is being written to txt document without me seeing it

Share this post


Link to post
Share on other sites
water

What you see flashing is an editor or something similar. FileWrite directly writes the specified data to the file without displaying anything on the screen.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Sulfurino

What you see flashing is an editor or something similar. FileWrite directly writes the specified data to the file without displaying anything on the screen.

 

My bad, i was confused by the name of the function FileOpen i thought it would literally open the file and display its content before you. But it seems to be completly running in the background is that true/false?

Share this post


Link to post
Share on other sites
water

True


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×