insury Posted October 5, 2007 Share Posted October 5, 2007 How do I write an AutoIt script to select a folder (in this case, C:\TestFolderr) and right-click on it. I tried the following but it doesn't work. Thanks a lot for your help! DirCreate("C:\TestFolder") $search = FileFindFirstFile("TestFolder") $file1 = FileFindNextFile($search) Send("+{F10}") Link to comment Share on other sites More sharing options...
Nahuel Posted October 5, 2007 Share Posted October 5, 2007 I could never get this to work, but who knows DirCreate("TestFolder") ShellExecute("TestFolder","","","Properties") Link to comment Share on other sites More sharing options...
Siao Posted October 5, 2007 Share Posted October 5, 2007 $path = @ScriptDir ShellExecute("explorer.exe", "/n,/select," & $path) WinWaitActive("[CLASS:CabinetWClass]") Send("{APPSKEY}") "be smart, drink your wine" Link to comment Share on other sites More sharing options...
Nahuel Posted October 5, 2007 Share Posted October 5, 2007 $path = @ScriptDir ShellExecute("explorer.exe", "/n,/select," & $path) WinWaitActive("[CLASS:CabinetWClass]") Send("{APPSKEY}") sweet! Link to comment Share on other sites More sharing options...
insury Posted October 5, 2007 Author Share Posted October 5, 2007 $path = @ScriptDir ShellExecute("explorer.exe", "/n,/select," & $path) WinWaitActive("[CLASS:CabinetWClass]") Send("{APPSKEY}") Thanks Siao & Nahuel! I really appreciate your help! 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