Sign in to follow this  
Followers 0
PMGSI

Click on a file in the current window

3 posts in this topic

Hi there

New user here - just wondered if someone could tell me if this is possible please:

What I'm after is to be able to simulate what happens when you click on a file in a windows explorer window to highlight the file. In other words I pass the file name 'file 3.txt' to a script and get this result:

sample%20file%20list_zpsofvyg1qr.jpg

I then intend want to go on and prompt for a rename by the user, which I assume I can do by simply using Send to pass an F2 keypress.

Thanks in advance for any guidance.

Share this post


Link to post
Share on other sites



@PMGSI, welcome to AutoIt and to the forum!

yes that is possible. however...

in general, you'll find that when you want to automate tasks, you would prefer doing it "behind the scene" rather then automating a GUI, which is prone to issues. how bout using InputBox() for asking the user for the new name, and FileMove() for the rename operation itself?

Share this post


Link to post
Share on other sites

Hi orbs

Thanks for your quick reply.

I was hoping to do it behind the scenes as you say, so don't want a GUI. I'll check out Filemove.

 

Cheers

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