lionelsiu Posted August 9, 2013 Share Posted August 9, 2013 Is it possible to write a script to select an item in the Folder View? For example,given in the screenshot below, I want to select (perform a single left click) on folder named "system32". Thank you! Link to comment Share on other sites More sharing options...
orbs Posted August 9, 2013 Share Posted August 9, 2013 AutoIt offers much more powerful methods to handle filesystem objects then simulating mouse clicks and keystrokes in the GUI. what are you trying to do, that forces you into using the GUI? 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 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 Link to comment Share on other sites More sharing options...
water Posted August 9, 2013 Share Posted August 9, 2013 Have a look at functions FileSelectFolder and FileOpenDialog. 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 Link to comment Share on other sites More sharing options...
lionelsiu Posted August 12, 2013 Author Share Posted August 12, 2013 Thanks for the replies. However, I am still confusing.. this file dialog is popped up from an application. The functions mentioned are from AutoIt side, how is it possible to pass the selected items into my application? Link to comment Share on other sites More sharing options...
Solution orbs Posted August 12, 2013 Solution Share Posted August 12, 2013 (edited) ok, if you are forced to using this dialog popped by your app, then follow this route: step 1: use the AutoIt Window Info tool (Start > Programs > AutoIt3) to determine the Control ID of: the element presenting the list of folders & files - or - the InputBox where you can type the file name step 2: use ControlSend() to pass to this Control ID the folder/file name you want to use. (if it's in the list, then the focus will go to the folder as you type. you can try it manually). step 3: Send("{ENTER}") you know, if you give us a little background on what you are doing and why, we may better understand your issue, and suggest more suitable solutions. but hey, feel free to stop us from helping you anytime :-) Edited August 12, 2013 by orbs lionelsiu 1 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 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 Link to comment Share on other sites More sharing options...
lionelsiu Posted August 13, 2013 Author Share Posted August 13, 2013 Thank you for your detailed answer, It helped me solving the problem. =] Link to comment Share on other sites More sharing options...
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