SublimePorte Posted July 26, 2010 Share Posted July 26, 2010 This isn't necessarily Autoit specific, but I want to implement it in Autoit, so I need to know if it's feasible. I have created an entry in the context menu in windows explorer, to run my autoit script on various files and folders. But I'd like to create several actions, so I want them in a sub-menu of the context menu. Is there any easy way to do this? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 26, 2010 Moderators Share Posted July 26, 2010 Unless you're going to write a dll and store your GUID properly withing the registry, or hack the shell dll. You're going to probably have to learn how to hook the windows listview and add your data to current context menu that popups. I don't see it being "terribly" hard, but certainly not something I'm in the mood to dig into at the moment myself. Some things I'd probably look for my hook procedure would be: WM_UNINITMENUPOPUP WM_INITMENUPOPUP WM_LBUTTONUP WM_RBUTTONUP WM_EXITMENULOOP WM_MENUSELECT Good luck. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
SublimePorte Posted July 27, 2010 Author Share Posted July 27, 2010 Thanks, seems a bit of overkill just to have a cascading menu. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 27, 2010 Moderators Share Posted July 27, 2010 Thanks, seems a bit of overkill just to have a cascading menu.Sorry, I guess I missed the part where you knew how to do it. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
SublimePorte Posted July 28, 2010 Author Share Posted July 28, 2010 No you missed the bit where I indicated I'm not going to waste more than a few lines of code on implementing a menu that's not a must-have. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2010 Moderators Share Posted July 28, 2010 Hmm, the callback wouldn't be but a few lines of code. Anyway, it is a hassle if it's not important IMO. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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