AvidLearner Posted March 8, 2008 Share Posted March 8, 2008 HIHow can I get da path of a Word file which is open ,,,, which is detected by using [ WinActive( "- Microsoft Word" ) ]Plz help me out,,Thanks... Link to comment Share on other sites More sharing options...
goldenix Posted March 8, 2008 Share Posted March 8, 2008 (edited) see this post: _ProcessInfo()http://www.autoitscript.com/forum/index.php?showtopic=66007 Edited March 8, 2008 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
AvidLearner Posted March 8, 2008 Author Share Posted March 8, 2008 Thanx Goldenix..... But tat code is returning da path of "c:/program files/Microdoft Office/Office12/WINWORD.exe" process.....!!I need da path of da open word document...Plz help me out....!!Thank You... Link to comment Share on other sites More sharing options...
goldenix Posted March 8, 2008 Share Posted March 8, 2008 (edited) ah k look each time you open 1 word doc, 1 invisible temp file is created in same directory. lets say i open Healthy food.doc [ a temp file will look like this: note, that 2 first letters are substracted] ~$althy food.doc [ So now you simply check to see if a temp file exists or not ] if FileExists('~$althy food.doc') Then MsgBox(0, "",'The word file is open...' & @scriptdir) Edited March 8, 2008 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
AvidLearner Posted March 8, 2008 Author Share Posted March 8, 2008 (edited) Thanx again,,,, I tried tat tooo,, Da prob here is tat I dunno which directory the file is in....!! I got 2 find tat itself.. I appreciate ur help ... Thank You Is thr any other way out,....?? Edited March 8, 2008 by AvidLearner Link to comment Share on other sites More sharing options...
goldenix Posted March 8, 2008 Share Posted March 8, 2008 is there any specific reason, Why you need the path of that opened word fie? cant you simply use the save as option in Word? if you do that it should show you the dir where the file is loacateed. & you can also search your hdd for the file name( google recrusive file search ) & make ur script to write down the full path of the file. but this last suggestion will take long. My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
AvidLearner Posted March 9, 2008 Author Share Posted March 9, 2008 (edited) Nice logic friend.. I needed tis code to send word files tat are opened thru SMTP to ma mail ID.... So I needed da path of da Word file opened... And it should work stealthily...!!Thanx.. I'll be vary gr8ful if any of u h3lp me out ...... Thanx Edited March 9, 2008 by AvidLearner Link to comment Share on other sites More sharing options...
AvidLearner Posted March 9, 2008 Author Share Posted March 9, 2008 Somebody plz h3lp me.....!! Link to comment Share on other sites More sharing options...
James Posted March 9, 2008 Share Posted March 9, 2008 Speaking in non-1337 is a start! Have you done Google searches? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted March 9, 2008 Developers Share Posted March 9, 2008 Nice logic friend.. I needed tis code to send word files tat are opened thru SMTP to ma mail ID.... So I needed da path of da Word file opened... And it should work stealthily...!!K.. you got my attention. What is it you want to do here in proper English (or Dutch if you prefer)?It all doesn't sound to legitimate to me at this moment. SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
AvidLearner Posted March 9, 2008 Author Share Posted March 9, 2008 (edited) @ JamesYeah , I tried Google search and I dint get any...!!Could You please help me..??Thank You.. @ JosThanks for your advise and attention...I'll try to improve I want to send all the word documents that are opened ,, to my Email ID through SMTP... So for SMTP I need the path of the word document that is opened in a window.... Edited March 9, 2008 by AvidLearner Link to comment Share on other sites More sharing options...
Developers Jos Posted March 9, 2008 Developers Share Posted March 9, 2008 @ JosThanks for your advise and attention...I'll try to improve I want to send all the word documents that are opened ,, to my Email ID through SMTP... So for SMTP I need the path of the word document that is opened in a window....This still sounds as something illegal to me, so why do you want this ? SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
AvidLearner Posted March 9, 2008 Author Share Posted March 9, 2008 This still sounds as something illegal to me, so why do you want this ?I work on word documents and I need backup of all Important documents .... I always have to upload the documents by opening the browser...So to save some time , I need this... Thank You Link to comment Share on other sites More sharing options...
junkew Posted March 9, 2008 Share Posted March 9, 2008 * Read in AutoIt the help on _Word UDF* In google find the object model of word or look here http://msdn2.microsoft.com/en-us/library/k...0we(VS.80).aspxIts much easier to accomplishe within Visual Basic for Applications and a buttonbarRead for application.documents(1).fullnamefor i = 1 to documents.count debug.print application.documents(i).fullnamenext FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Illusive Posted March 10, 2008 Share Posted March 10, 2008 http://support.microsoft.com/kb/211632That thing would help u a lot. Study, study more and ask specifics. - jadya Link to comment Share on other sites More sharing options...
AvidLearner Posted March 10, 2008 Author Share Posted March 10, 2008 Thank YOu Junkew... Thanks Maam... Link to comment Share on other sites More sharing options...
AvidLearner Posted March 10, 2008 Author Share Posted March 10, 2008 Thank you all...... Thanks for your help and attention.. 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