Dugle Posted April 27, 2017 Share Posted April 27, 2017 I've figure out how to select different items in the list using the index number, but the list isn't always the same from computer to computer. Is it possible to select by name? This is what I have so far but isn't ideal to automate this process. #include <MsgBoxConstants.au3> #include <GUIListView.au3> Opt("WinTitleMatchMode", 4) run("explorer.exe shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966} -Microsoft.DefaultPrograms\pageDefaultProgram") sleep(2500) $hWnd = ControlGetHandle("Set Default Programs","","SysListView321") ;select 1st item in the list (regardless of what it is) _GUICtrlListView_SetItemSelected($hWnd, 0) ;select 2nd item in the list (regardless of what it is) _GUICtrlListView_SetItemSelected($hWnd, 1) Link to comment Share on other sites More sharing options...
Subz Posted April 28, 2017 Share Posted April 28, 2017 (edited) Is this for Windows 7, 8 or Windows 10? Edited April 28, 2017 by Subz Link to comment Share on other sites More sharing options...
argumentum Posted April 28, 2017 Share Posted April 28, 2017 (edited) ; run("explorer.exe shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966} -Microsoft.DefaultPrograms\pageDefaultProgram") ShellExecute("shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966}") Done. Next question, ... Edited April 28, 2017 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 28, 2017 Moderators Share Posted April 28, 2017 6 hours ago, argumentum said: Done. Next question, ... You seem to have missed the point of the OP's question. He is looking for a way to bring up the default programs list, and then select specific ones by text rather than index. argumentum 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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