command line options

105 views
Skip to first unread message

John

unread,
Jun 9, 2009, 3:17:15 PM6/9/09
to hoekey
Hey everyone. Found Hoekey about a year ago and have been using it
since. Have figured everything else out, other than something new
I've come across: I can't figure out how to pass a command line option
to Hoekey. I am playing around with Iron Portable (think Google
Chrome Browser) and need to enable the user script support. In order
to do this, I need to run:

ironportable.exe --enable-user-scripts

I have tried the following:
"ironportable.exe --enable-user-scripts" (which obviously gives me an
error)
"ironportable.exe" "--enable-user-scripts" (this starts iron portable,
but the command line switch was not passed to the program)
no quotation marks at all (same as previous: browser starts, but user
script support isn't)

I'm stumped on how to do this. I also tried making a windows shortcut
with the command switch in there, but Hoekey doesn't run windows
shortcuts.

I'm thinking it has to do with the dashes, but I didn't see anything
in the documentation on dashes being an issue.

Any help would be greatly appreciated. Oh, and in case you were going
to mention it, yes, I know I need to have the relative path to iron
portable, but this was just for demonstration. (like I said, I've got
this working for a lot of different apps already)

Thanks!

MyNick

unread,
Jun 10, 2009, 7:16:32 PM6/10/09
to hoekey
Using Hoekey 1.16 it does run shortcuts (links). e.g. in my hoekey.ini
file I have:

^@z=Run|"C:\Documents and Settings\MyNick\Application Data\Microsoft
\Internet Explorer\NewToolBar\Base\zTree.lnk"||2 ; <CTRL><ALT>-
Z zTree

and it launches the shortcut for me whenever I press ctrl-alt-z.

Regarding parameters, this is what worked for me note the quotes &
double-dashes

^@y=Run|"echo2.exe" --version ||2 ; <CTRL><ALT>-
Y Test
as well as
^@y=Run|"echo2.exe" "--version"||2 ; <CTRL><ALT>-
Y Test

so double-dashes are supported fine and any quoting of parms done
should keep the command and the parms in *separate* quoted blocks.

Have fun!

John

unread,
Jun 12, 2009, 8:37:31 AM6/12/09
to hoekey
Great Success! I have Hoekey on two PCs...for some reason I didn't
upgrade Hoekey to 1.16 on the machine I'm trying to run the shortcuts
on. I got everything working perfectly now...thanks for the help!
Reply all
Reply to author
Forward
0 new messages