bob733 Posted November 3, 2006 Report Share Posted November 3, 2006 I am using ME3 and Outlook but I want to know how to send the mouse to the Attachment ICON (the paper clip icon) in Outook mail? thanks in advance. Quote Link to comment Share on other sites More sharing options...
kevin Posted November 3, 2006 Report Share Posted November 3, 2006 This works on my computer. You will probably have to adjust the X and Y coordinates in the Mouse Move Window command. If Window Title "Message - Microsoft" is running If Not Window Title " Message - Microsoft" on top Activate Window: "Message - Microsoft" End If Mouse Move Window 142, 116 Mouse Left Button Click End If Generally it is better to use keystrokes instead of mouse movements when possible. This is because several things, including the size of the window and the placement of toolbars can change the X and Y coordinates and thus break the macro. This macro does the same thing but uses keystrokes instead: If Window Title "Message - Microsoft" is running If Not Window Title " Message - Microsoft" on top Activate Window: "Message - Microsoft" End If Text Type: <ALT>il End If Quote Link to comment Share on other sites More sharing options...
bob733 Posted November 3, 2006 Author Report Share Posted November 3, 2006 ahhh... that works great but it gets to the default directory. I tried changing directorys to the one where I want to get the attachment from but cant do it. is three a specific command (after tghe alt il) that will point me to a different directory? Quote Link to comment Share on other sites More sharing options...
jason Posted November 3, 2006 Report Share Posted November 3, 2006 You can try using the Change Directory/Folder command before clicking on the attachment button. Your other option would be to have the macro tab to the File Name field and type in the directory path and press enter. Quote Link to comment Share on other sites More sharing options...
kevin Posted November 3, 2006 Report Share Posted November 3, 2006 When the 'Insert File' dialog appears the cursor is in the 'File name:' field. To have your macro choose a specific file, Text Type the entire path, like this: Text Type: e:\temp\test.csv If you want to open the dialog to a specific directory then have your macro Text Type the path to that directory, like this: Text Type: e:\temp\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.