Jump to content
Sign in to follow this  
Rskm

access files copied

Recommended Posts

Hi, i have copied a file to memory using CTRL+C. now, i wish to copy this file to a folder which is user input. How do i access the file in the memory? Basically, what i expect the script to do is as follows.

1. i perform single click on a file on file in a particular folder, say 'new_folder'

2. when i run the autoit script, it activates the 'new_folder' and then performs CTRL+C, which will by default copy the file to memory as i have clicked it before running the script

3. in the next step, this file should be copied to a different location.

appreciate any idea on this.

Share this post


Link to post
Share on other sites

Hi,  to use filecopy(),  i should have the file name. I am going to implement this to outlook,  where i click the email in the outlook(wont open it as i do a single click)  perform ctrl+c to copy it to memory,  then run the script to save this email to a user specified location...  thanks

Share this post


Link to post
Share on other sites

thanks FrancescoDiMuro on that guidance.  i am not an expert with Autoit.. Is this UDF set of purpose built commands for specific application ? is it that i should download it from above link to get those commands work in my script ? thanks again

Share this post


Link to post
Share on other sites

@Rskm
That UDF is used to interact with Outlook, as the name suggests, and you can do almost whatever you want.

You can create email, read email, send email, move email, and many (really many!) other things.
To get started with the UDF, download it from here, where you can find both the UDF and some examples :)


Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

Hello Francesco, I find a script/example from the outlook pdf which looks like close to what i need...its _OL_ItemSave..   But i cannot really follow the meaning of the $oOL. How do i inform the script that the mail to save is the one that i just clicked with mouse in my outlook window... thansk for your support again.

Share this post


Link to post
Share on other sites

i type the following in my script.

Global $oOutlook = _OL_Open()
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended)
Global $Result = _OL_TestEnvironmentCreate($oOutlook)
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF - Manage Test Environment", "Error creating the test environment. @error = " & @error)

 

i get second error msg (ie; manage test env). the error msg reads <quote> Error creating the test environment. @error=509 </unquote>...  have copied the library to 'include'......any guidance is appreciated.. i

 

Edited by Rskm
correction

Share this post


Link to post
Share on other sites

ok, i solved it without UDF.. i just have to give a 'F12' while on outlook, this will open the save box and rest is straight forward. thanks 

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