Rossi46 Posted February 7, 2019 Posted February 7, 2019 Hello, I am new user in Autoit ,I want know how can i select the required file from the "E-drive"as shown in picture if class name and handle of window changes every time when i open that folder ,I was using simple mouse click command but it doesn't provide me the required results. i want to open file from E-drive and check that the correct file is opened up or not. Please help.
careca Posted February 7, 2019 Posted February 7, 2019 You can add more than one parameter to check a window, even the size can be used, so if you add multiple ones, that are constant, it will find the correct window. In Window Titles and Text (Advanced): e.g. Wait for the 2nd instance of a window with title "My Window" and classname "My Class" WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "") Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Nine Posted February 7, 2019 Posted February 7, 2019 Seems to me that the title of the window is pretty standard and fix. So a basic $hWnd = WinWaitActive ("Open","",10) ; wait 10 secs till the window appears if not $hWnd then Exit Msgbox (0,"","Error couldn't find window") should work. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
careca Posted February 7, 2019 Posted February 7, 2019 And there's the regex that could be made to match the first part of the class, up to ".exe", I think from there on, is where it changes. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Rossi46 Posted February 9, 2019 Author Posted February 9, 2019 On 2/7/2019 at 6:10 PM, Nine said: Seems to me that the title of the window is pretty standard and fix. So a basic $hWnd = WinWaitActive ("Open","",10) ; wait 10 secs till the window appears if not $hWnd then Exit Msgbox (0,"","Error couldn't find window") should work. Thanks for help dude,but I want to access E drive from that window so please help me regarding that'
Rossi46 Posted February 9, 2019 Author Posted February 9, 2019 On 2/7/2019 at 1:57 PM, careca said: On 2/7/2019 at 1:57 PM, careca said: hey i want to access E drive from that window .
careca Posted February 9, 2019 Posted February 9, 2019 Can you get the control for the input path and the open button? If so, you can then just paste the path for the file you want and then press open. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Rossi46 Posted February 9, 2019 Author Posted February 9, 2019 41 minutes ago, careca said: Can you get the control for the input path and the open button? If so, you can then just paste the path for the file you want and then press open. In that window I have access to window title only ,even though when i click on E-drive title ,handle ,class never changes and using autoit windows info tool when i checked for control of window It shows nothing
LarsJ Posted February 9, 2019 Posted February 9, 2019 Many new applications cannot be automated with classic code. You need UI Automation code that has been Microsoft's automation platform in the last 15 years. Read Using UI Automation Code in AutoIt. Then use one of the spy tools to check if UIA-code can identify the controls in the window. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
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