Coder_Noob Posted November 2, 2005 Share Posted November 2, 2005 (edited) So im making a program for easy emailing (personal use) and i've made a program in VB that stores the information in a .doc file, now i want to use autoit to read these files and send them in an email, now i know how to do the email part, all i need is the read part. first I thought openfile, but i dont konow how to get data from that file. Edited November 2, 2005 by Coder_Noob Avatar made on Gmod for HL2 by me!Name on Gmod: Oclops Link to comment Share on other sites More sharing options...
BigDod Posted November 2, 2005 Share Posted November 2, 2005 So im making a program for easy emailing (personal use) and i've made a program in VB that stores the information in a .doc file, now i want to use autoit to read these files and send them in an email, now i know how to do the email part, all i need is the read part. first I thought openfile, but i dont konow how to get data from that file.This might help. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
DaleHohm Posted November 2, 2005 Share Posted November 2, 2005 You really need to think about whether Microsoft Word is where you want to store data taht you want to read into a program... if there isn't some compelling reason to have it there, you can make your life a lot easier if you move it to a .txt file instead (i.e. something you maintain in Notepad). A .txt file you can manipulate with FileOpen, File Read and a host of string commands in AutoIt.If the data needs to stay in Word you'll need to invest time in more complicated approaches... like using COM in the latest AutoIt betas or perhaps automating Word to save out a .txt file just prior to you needing the data. MailMerge functions in Word could also be useful depending on your circumstances.Easiest approach is to NOT store the data in Word if you can avoid -- it's just the wrong tool for this type of application.DaleSo im making a program for easy emailing (personal use) and i've made a program in VB that stores the information in a .doc file, now i want to use autoit to read these files and send them in an email, now i know how to do the email part, all i need is the read part. first I thought openfile, but i dont konow how to get data from that file. Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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