Jump to content
Macro Express Forums

How To Send Themouse To The Attachment Icon


bob733

Recommended Posts

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

Link to comment
Share on other sites

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\

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...