Vicks Posted May 5, 2006 Share Posted May 5, 2006 (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 May 5, 2006 by Vicks [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 5, 2006 Share Posted May 5, 2006 you can probaly do something with the registry Link to comment Share on other sites More sharing options...
Vicks Posted May 5, 2006 Author Share Posted May 5, 2006 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] Link to comment Share on other sites More sharing options...
Lapo Posted May 5, 2006 Share Posted May 5, 2006 (edited) play with this :start runrundll32 shell32,OpenAs_RunDLL autoit :run("rundll32 shell32,OpenAs_RunDLL c:\test.txt")http://www.google.it/search?hl=it&q=rundll...on+Google&meta= Edited May 5, 2006 by Lapo Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2006 Share Posted May 5, 2006 maybe $file_name = FileGetShortName($file_name) Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE) 8) Link to comment Share on other sites More sharing options...
manmoncang Posted May 5, 2006 Share Posted May 5, 2006 (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 May 5, 2006 by manmoncang Link to comment Share on other sites More sharing options...
Uten Posted May 5, 2006 Share Posted May 5, 2006 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 pictureYour 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 Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Vicks Posted May 5, 2006 Author Share Posted May 5, 2006 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] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 5, 2006 Share Posted May 5, 2006 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. Link to comment Share on other sites More sharing options...
seandisanti Posted May 5, 2006 Share Posted May 5, 2006 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. Link to comment Share on other sites More sharing options...
Vicks Posted May 5, 2006 Author Share Posted May 5, 2006 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] Link to comment Share on other sites More sharing options...
seandisanti Posted May 8, 2006 Share Posted May 8, 2006 I have looked for your script can't find it, I even typed your name in the search can you please post me the linkhere you go Link to comment Share on other sites More sharing options...
Vicks Posted May 8, 2006 Author Share Posted May 8, 2006 really nice work [s]Autoit[/s] Link to comment Share on other sites More sharing options...
seandisanti Posted May 8, 2006 Share Posted May 8, 2006 really nice workthanks, never got around to adding more to it. lost interest. just wrote it up because i was bored and looking for something to do. Link to comment Share on other sites More sharing options...
Vicks Posted May 8, 2006 Author Share Posted May 8, 2006 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] Link to comment Share on other sites More sharing options...
seandisanti Posted May 8, 2006 Share Posted May 8, 2006 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, thanksthere are a couple of media players if i remember correctly in the scripts and scraps forum also. you may get some ideas there. 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