Jump to content

Runmenu: click context menu items from the command line


Recommended Posts

I wrote a nice big script to open Abbyy FineReader, get the 'open' dialog, type the filename etc. etc... because FineReader didn't come with command line options. Then while re-writing the script I realised there was a context menu item which did a lot of the work my script did. I searched the registry but couldn't find anything I could replicate with AutoIt and when searching Google, I found Runmenu.

It allows me to use any function in the context menu from the command line.

I just replaced 70 lines (inc. blanks and comments) with 2 lines (1 comment!):

; Runmenu is a 3rd party utility to run context menu items from the command line.
run("c:\ssc\runmenu.exe " & chr(34) & "/exec:ABBYY FineReader 9.0\Convert Into Microsoft Word Document" &chr(34) & " " & $pdfFolder & $pdfName)

http://www.eluent.com/runmenu.htm

I hope this helps you guys.

>and a quick q. When stating how many lines of code there are, does one include blanks and comments?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...