Patrick1963 Posted June 11, 2014 Posted June 11, 2014 (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 June 11, 2014 by Patrick1963
Danyfirex Posted June 11, 2014 Posted June 11, 2014 If You've selected the file use: Send("{LSHIFT}+{F10}") Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Patrick1963 Posted June 11, 2014 Author Posted June 11, 2014 If You've selected the file use: Send("{LSHIFT}+{F10}") Saludos Thnx!
Patrick1963 Posted June 12, 2014 Author Posted June 12, 2014 (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 June 12, 2014 by Patrick1963
KaFu Posted June 12, 2014 Posted June 12, 2014 Using mouse coordinates and send() is always the least reliable solution. You might want to take a look at this excellent post by Ascend4nt: OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now