Jump to content

What makes DLL open the window (Open With ...)


 Share

Recommended Posts

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)

WinXP.jpg


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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

WinXP-quem.jpg

Link to comment
Share on other sites

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 :sweating:

Edited by odaylton
Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...