Sign in to follow this  
Followers 0
Vicks

Open With?

16 posts in this topic

#1 ·  Posted (edited)

hi, I was wondering with autoit is there away to,(Right Click) on any file such as exe,ini,bat, anything and goto the properties and instead of browsing for the script you want it to open your program with, could I make it in the other programs column, or maybe even the recommended. I know I might of confussed people so ill upload a picture. sorry for the bad picture

Edited by Vicks

[s]Autoit[/s]

Share this post


Link to post
Share on other sites



you can probaly do something with the registry :)

Share this post


Link to post
Share on other sites

thank you, I have thought about that but, im not to sure how to do it, I have started this 3 days ago, and I don't really like messing with regwrites, they can be bad if you don't know what your doing :)


[s]Autoit[/s]

Share this post


Link to post
Share on other sites

maybe

$file_name = FileGetShortName($file_name)
    Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

maybe

$file_name = FileGetShortName($file_name)
    Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE)

8)

When i use this code, the problem is, my start menu did not want to hide. It still appear. Do you know why?

Can you explain what is mean every syntax in Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE)

tq

Edited by manmoncang

Share this post


Link to post
Share on other sites

hi, I was wondering with autoit is there away to,(Right Click) on any file such as exe,ini,bat, anything and goto the properties and instead of browsing for the script you want it to open your program with, could I make it in the other programs column, or maybe even the recommended. I know I might of confussed people so ill upload a picture. sorry for the bad picture

Your right I'm a bit confused :)

If you want a menu item to appear (A item called "my script") when you right click on a file, then you will have to add registry stuff. That is the M$ way. You should seach for "Context menu" or somthing similar. There are some samples in the forum.

You could aslo add a default handler for a file type. Search for +shell +command +open (or run).

Happy hunting :(

Share this post


Link to post
Share on other sites

maybe

$file_name = FileGetShortName($file_name)
    Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE)

8)

I have tryed yours but, not sure how to get this going so I add this to my script, and rename to same name as my program such as *cool*, and I get a error

$cool = FileGetShortName($cool)

Run(@ComSpec & " /c Start " & $cool, "", @SW_HIDE)


[s]Autoit[/s]

Share this post


Link to post
Share on other sites

i think he wants to change what an extension is opened with, Example instead of notepad opening a .txt when you double click it but instead Wordpad would open it.

Share this post


Link to post
Share on other sites

#10 ·  Posted

i made a script called 'right click' a while back, it is in scripts and scraps. it is a gui that will let you change file associations for the context menu of any extension on your computer. the code should show you how to do what you wish.


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#11 ·  Posted

I have looked for your script can't find it, I even typed your name in the search can you please post me the link


[s]Autoit[/s]

Share this post


Link to post
Share on other sites

#12 ·  Posted

I have looked for your script can't find it, I even typed your name in the search can you please post me the link

here you go

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#13 ·  Posted

really nice work


[s]Autoit[/s]

Share this post


Link to post
Share on other sites

#14 ·  Posted

really nice work

thanks, never got around to adding more to it. lost interest. just wrote it up because i was bored and looking for something to do.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#15 ·  Posted

thanks, never got around to adding more to it. lost interest. just wrote it up because i was bored and looking for something to do.

well i want my script to open up all media files, such as .wmp , .mp3, winamp, but i don't know how to do tihs, but ill mess with your great script and find away, thanks


[s]Autoit[/s]

Share this post


Link to post
Share on other sites

#16 ·  Posted

well i want my script to open up all media files, such as .wmp , .mp3, winamp, but i don't know how to do tihs, but ill mess with your great script and find away, thanks

there are a couple of media players if i remember correctly in the scripts and scraps forum also. you may get some ideas there.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0