I have a need to input search criteria into an existing explorer window after opening it.
What I have so far:
1. Prompt the user for the input string
2. Opened the explorer window to a specified location (put back to simple location for this example)
3. Reposition the explorer window (eventually will open several so positioning will be critical for cross-reference)
What I need next is to "send" the input from item #1 above into the search field at the top rt corner of the explorer window (OS: Win7 Pro if that makes a difference).
Code:
$path1 = "C:\Users" ;=============================================================================== $sMsg = "Please type in your" & @CRLF $sMsg &= "search requirements below?" Local $searchText = InputBox("Please provide input", $sMsg) ;Windows Explorer will open $path1 Run('explorer.exe /n, ' & $path1) Sleep(1000) WinMove("Users", "", 600, 250, 1500, 800)
Basic Window info:
Title: Users
Class: CabinetWClass
Basic Control Info:
Class: DirectUIHWND
Instance: 1
ClassnameNN:DirectUIHWND1
Advanced Mode: [CLASS:DirectUIHWND; INSTANCE:1]