Jump to content

Recommended Posts

Posted

I have been teaching myself AutoIt scripting for a while now and everytime I come up with a project I am amazed at what I am able to accomplish with it. However, I seem to have run into a brick wall.

I have a template Excel file that I would like to be able paste into any explorer window without having to navigate to the template to start the copy. I figured the easiest way to accomplish this would be to have a script that copies the template source path to the clipboard, then I can just CTRL-V and the file will copy.

The only AutoIt command that I can find for manipulating the clipboard is ClipPut, but that only enters text into it. Is there a way to manipulate the clipboard as previously described? Or is there a simpler way whether it involves AutoIt or not?

Posted

Welcome to AutoIt and the forum!

Why not just use FileCopy?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

@tinman_72, welcome to AutoIt and to the forum.

i second @water, except that you need your script to determine the path displayed in Windows Explorer before you can call FileCopy.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

WinPose - simultaneous fluent move and resize

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

Magic Math - a math puzzle

Demos:

Title Bar Menu - click the window title to pop-up a menu

 

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
×
×
  • Create New...