tiny Posted December 31, 2006 Posted December 31, 2006 Hi, I'm trying to write an AutoIt Script which should use an Explorer Context Menu entry. For example: File.xyz --> Shift+F10 --> Context Menu appears --------Entries ------- Open Explore Search ... Test Now I wanne check if Test exists at target computer. And if it is useable it sould be selected and started. Can anybody help me? Thanks.
PaulIA Posted January 1, 2007 Posted January 1, 2007 Hi,I'm trying to write an AutoIt Script which should use an Explorer Context Menu entry.For example:File.xyz --> Shift+F10 --> Context Menu appears--------Entries -------OpenExploreSearch...TestNow I wanne check if Test exists at target computer. And if it is useable it sould be selected and started.Can anybody help me? Thanks.Check out the demos in Auto3Lib regarding the handling of popup menus. If you get stuck, post a small example of what you're trying to do in the Auto3Lib thread (Examples forum) and I'll try to help you out. Auto3Lib: A library of over 1200 functions for AutoIt
ptrex Posted January 1, 2007 Posted January 1, 2007 @Tiny Maybe this can help you get going. $objShell = ObjCreate("Shell.Application") $objFolder = $objShell.Namespace("C:\_\Apps\AutoIT3") $objFolderItem = $objFolder.ParseName("Test.au3") $colVerbs = $objFolderItem.Verbs For $objVerb in $colVerbs MsgBox(0,"",$objVerb()) Next Enjoy !! ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
tiny Posted January 8, 2007 Author Posted January 8, 2007 @ptrex Cool, that's working great. But I have two additional Problems. First the entry is inside the context menu, but it is greyed out. Can I check if the item is valid? And second question. Is there an Option to select and run the item if it's valid? Thanks for your help.
ptrex Posted January 9, 2007 Posted January 9, 2007 @Tiny This is the command to activate it. $objFolderItem.InvokeVerb("YourNameHere") ;Activates command from the context menu If it is grayed out it will not run. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
tiny Posted January 11, 2007 Author Posted January 11, 2007 @Tiny This is the command to activate it. $objFolderItem.InvokeVerb("YourNameHere") ;Activates command from the context menu If it is grayed out it will not run. regards ptrex Thank you again, that works. I had build a loop whitch tries to start the extension tree times. If the option is greyed out I stop the execution.
Dougiefresh Posted June 29, 2008 Posted June 29, 2008 Wow! I didn't think that it could be done.... Frankly, I began wondering!
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