Maarten002 Posted April 29, 2013 Share Posted April 29, 2013 I'm writing a script that i want to put in the contextual menu of the finder. I was already able to put the compiled script in the contextual menu (HKEY_CLASS_ROOT/*/shell/...). The thing I'm missing is how to get the name of the file/files that i right clicked on. Anyone an idea? Thanks Link to comment Share on other sites More sharing options...
mikell Posted April 29, 2013 Share Posted April 29, 2013 First compile this script, name it "myscript.exe" and put it in C: GuiCreate("", 500, 50, -1, 30) GuiCtrlCreateInput($CmdLine[1], 10, 10, 480, 20) GuisetState() While GuiGetMsg()<>-3 Wend Then build your registry key : HKEY_CLASSES_ROOT*shellmyscriptcommand with this value : C:myscript.exe "%1" Link to comment Share on other sites More sharing options...
Maarten002 Posted April 30, 2013 Author Share Posted April 30, 2013 Oops, i forgot the "%1" at the end of the path , that was why my script was giving a lot of strange errors (in line 400 and something while my script only had 5 lines...). Thanks a lot, very appreciated! Link to comment Share on other sites More sharing options...
KaFu Posted April 30, 2013 Share Posted April 30, 2013 I guess the reason for that is that you have includes und the final script in fact has 400+ lines. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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