Sign in to follow this  
Followers 0
Patrick1963

Get position of a selected file in the (file) explorer

5 posts in this topic

#1 ·  Posted (edited)

Hello Guys,

I wrote a script that will select a file in the windows (file) explorer and now i need the script to right click on that file. The position of the file changes so i need to find a way to tell the mouse-cursor where it has to move to..

I experimented with getposition/controlclick but can't find the right way to do it..

Any tips?

 

Edited by Patrick1963

Share this post


Link to post
Share on other sites



If You've selected the file use:

Send("{LSHIFT}+{F10}")

Saludos


 

venezuela.png Would you like to say thank to Danyfirex using a warmy way?  offer me a cup of coffee... coffee.png

autoit_scripter_blue_userbar.png

       AutoIt...

 

 

Share this post


Link to post
Share on other sites

If You've selected the file use:

Send("{LSHIFT}+{F10}")

Saludos

 

Thnx!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well,

Send("{LSHIFT}+{F10}") works fine in the file explorer, but not in the file explorer i use.
 
Anybody know how to get the (changing) coordinates of a selected file so i can send the mouse pointer to that place?
Edited by Patrick1963

Share this post


Link to post
Share on other sites

Using mouse coordinates and send() is always the least reliable solution. You might want to take a look at this excellent post by Ascend4nt:

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