mikezwet2 Posted December 30, 2004 Share Posted December 30, 2004 Hi, Is it possible to open a directory, so the windows opens? I want to combinate it with clipget, Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
SlimShady Posted December 30, 2004 Share Posted December 30, 2004 $Folder = ClipGet() Run('explorer "' & $Folder & '"') Link to comment Share on other sites More sharing options...
ezzetabi Posted December 30, 2004 Share Posted December 30, 2004 Or $Folder = ClipGet() Run('explorer /e,"' & $Folder & '"') Link to comment Share on other sites More sharing options...
mikezwet2 Posted December 31, 2004 Author Share Posted December 31, 2004 (edited) $Folder = ClipGet() Run('explorer "' & $Folder & '"')<{POST_SNAPBACK}>This works fine, is folder in this case a sort of varible?The window opens in the background, i want to add "@SW_MAXIMIZE" but don't know how in this script because the run line is different as in manual.....Note #1: the window must be on top, alle files in folder must be selected en opened, thats the reason why it has to be on topNote #2: the title of the windows i never the same, so i can't call it with winactivate Edited December 31, 2004 by mikezwet2 Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
mikezwet2 Posted December 31, 2004 Author Share Posted December 31, 2004 (edited) This works fine, is folder in this case a sort of varible?The window opens in the background, i want to add "@SW_MAXIMIZE" but don't know how in this script because the run line is different as in manual.....Note #1: the window must be on top, alle files in folder must be selected en opened, thats the reason why it has to be on topNote #2: the title of the windows i never the same, so i can't call it with winactivate<{POST_SNAPBACK}>I found out:$Folder = ClipGet() Run('explorer "' & $Folder & '"') sleep(400) WinSetState($Folder, "", @SW_MAXIMIZE) sleep(400) Send ("^a")No i want to close this window, i tried with winclose($folder) but doens't work...... Edited December 31, 2004 by mikezwet2 Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
ezzetabi Posted December 31, 2004 Share Posted December 31, 2004 If you need opening all files it is MUCH better using FileFindFirstFile and FileFindNextFile and the ShellExecute DllCall. Link to comment Share on other sites More sharing options...
mikezwet2 Posted January 1, 2005 Author Share Posted January 1, 2005 If you need opening all files it is MUCH better using FileFindFirstFile and FileFindNextFile and the ShellExecute DllCall.<{POST_SNAPBACK}>Alright, i will look at that.I want to close this window, i tried with winclose($folder) but doens't work...... Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
ezzetabi Posted January 1, 2005 Share Posted January 1, 2005 I tried $Folder = ClipGet() Run('explorer /e,"' & $Folder & '"') Sleep(5000) WinClose($folder) and it worked fine. Maybe you have not the full path shown in the title bar? Check your options. Link to comment Share on other sites More sharing options...
SlimShady Posted January 1, 2005 Share Posted January 1, 2005 He wants to "open a directory" not "select a directory". 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