odaylton Posted October 31, 2016 Posted October 31, 2016 Text translated from Portuguese by google - please apologize for any errors Hello I would like to know how to open the window below The image is in Portuguese (my win XP) It is usually opened by the user through the Explorer 1) right mouse button 2) Open with ... 3) Choose Program ... 4) This window lets you choose a program from the list or use the browse button. So I want this I want the user to choose a program from the list of installed programs on the machine. Please, if there is a simpler way to get the list of installed programs in Windows favor of me a clue ... Thanks in advance
Anoop Posted October 31, 2016 Posted October 31, 2016 You can double click the script to open. If the script is running instead of opening in the editor, there was a setting which needs to be selected during the installation. You can check this tutorial AutoIt Download and Installation for details. Please check 6th step.
LarsJ Posted October 31, 2016 Posted October 31, 2016 odaylton, If you want to open the "Open with" dialog box, you can do it with the following command in a "Command Prompt": Rundll32 Shell32.dll,OpenAs_RunDLL Filename.ext You must translate it into something that can be executed in AutoIt. It should not be that difficult. 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
odaylton Posted November 1, 2016 Author Posted November 1, 2016 9 hours ago, Anoop said: You can double click the script to open. If the script is running instead of opening in the editor, there was a setting which needs to be selected during the installation. You can check this tutorial AutoIt Download and Installation for details. Please check 6th step. Oops ... is not on the installation but on opening this window (rundll32.exe)
odaylton Posted November 1, 2016 Author Posted November 1, 2016 (edited) 10 hours ago, LarsJ said: odaylton , Se você deseja abrir o "Abrir com" caixa de diálogo, você pode fazê-lo com o seguinte comando em um "Prompt de comando": Rundll32 Shell32.dll, OpenAs_RunDLL Filename.ext Você deve traduzi-lo em algo que pode ser executado em AutoIt. Não deve ser tão difícil. after searching I think I'm on the wrong track. I do not want to open the window as follows the script below: _OpenWith(FileOpenDialog("","","All Files (*.*)")) Func _OpenWith($file) If FileExists($file) Then Return DllCall("shell32.dll","hwnd","OpenAs_RunDLL","hwnd",0,"str","","str",$file, "int", 0) EndFunc In fact I would like the User open a window containing a list of the installed program in Windows. to choose I would get the Path of the program. will be that you'd have a sujestão Edited November 1, 2016 by odaylton
odaylton Posted November 26, 2016 Author Posted November 26, 2016 (edited) Translated by Google. Sorry for any mistakes. Finally found what I wanted I did another post to stay clearer for everyone Edited November 26, 2016 by odaylton
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