Jump to content
Sign in to follow this  

How to save the notepad file on desktop and also send that file to my email address

Recommended Posts

WinWaitActive("Notepad", "")


WinWaitActive("Save As", "")

Sleep (1000)

; Send the name we found was next in line

Send(@DesktopCommonDir & "abcd" & ".text")



Share this post

Link to post
Share on other sites


A1: there is a BACKSLASH required to separate path from file name:

@desktopcommondir & "abcd.txt"

A2: to send emails with attachments (for my needs almost always some log files) I use BLAT.EXE + function "fileinstall()" to get a local, temporary copy of blat.exe, that I use from my autoit scripts.

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post

Link to post
Share on other sites

You are maybe getting a bit complicated

There is no requirement of Notepad Automation

Create a txt file and send it as an attachment

For creating and writing in a file see FileOpen FileWrite

For sending the file as an attachment (you should have a email account) go here

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post

Link to post
Share on other sites

Couldnt have said it better myself.



"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.



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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...