AAM Posted January 23, 2013 Share Posted January 23, 2013 WinWaitActive("Notepad", "") Send("!s") WinWaitActive("Save As", "") Sleep (1000) ; Send the name we found was next in line Send(@DesktopCommonDir & "abcd" & ".text") Sleep(1000) Send("!s") Link to comment Share on other sites More sharing options...
rudi Posted January 25, 2013 Share Posted January 25, 2013 Hi.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! Link to comment Share on other sites More sharing options...
PhoenixXL Posted January 26, 2013 Share Posted January 26, 2013 You are maybe getting a bit complicatedThere is no requirement of Notepad AutomationCreate a txt file and send it as an attachmentFor creating and writing in a file see FileOpen FileWriteFor 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. Link to comment Share on other sites More sharing options...
Draygoes Posted January 26, 2013 Share Posted January 26, 2013 Couldnt have said it better myself. Spoiler "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. 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