Sign in to follow this  
Followers 0
AvidLearner

H3lp me plz....! [ REg Microsoft Word ]

17 posts in this topic

HI

How 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... :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

see this post: _ProcessInfo()

http://www.autoitscript.com/forum/index.php?showtopic=66007

Edited 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]

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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]

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by AvidLearner

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by AvidLearner

Share this post


Link to post
Share on other sites

Somebody plz h3lp me.....!! :)

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

@ James

Yeah , I tried Google search and I dint get any...!!

Could You please help me..??

Thank You.. :)

@ Jos

Thanks 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 by AvidLearner

Share this post


Link to post
Share on other sites

@ Jos

Thanks 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 ?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

* 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).aspx

Its much easier to accomplishe within Visual Basic for Applications and a buttonbar

Read for application.documents(1).fullname

for i = 1 to documents.count

debug.print application.documents(i).fullname

next

Share this post


Link to post
Share on other sites

Thank YOu Junkew... :)

Thanks Maam... ;)

Share this post


Link to post
Share on other sites

Thank you all...... Thanks for your help and attention.. :)

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  
Followers 0