Sign in to follow this  
Followers 0
ezzetabi

Adding Command Line Parameter To Au3 Files...

12 posts in this topic

Often I need starting program with unusual command line parameter, so I love the small tweak Execparm, that you can download here:

http://www.mainsoft.fr/freeware_en.htm

Freeware, of course.

Unluckly it do not let you add parameter to au3 files if you do not fix the registry.

So if you want (and you should) have a right click option like Execute with parameters you have to install Execparm and import this .reg

REGEDIT4

[HKEY_CLASSES_ROOT\AutoIt3Script\ShellEx\ContextMenuHandlers\ExecContextMenu]
@="{B005017D-B7DD-11CF-BB51-0000B465A4FF}"

Share this post


Link to post
Share on other sites



i suppose that can easily be done through a script.

Share this post


Link to post
Share on other sites

A scrip that install ExecParm and set it to work also in Autoit? Seems a good idea.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

u can do it all without execparm by just using autoit! what does it take? just use inputbox and ask params and then launch the target by parsing the params!

(i've not used execparm but if this is all it does then its not needed)

Edited by rathore

Share this post


Link to post
Share on other sites

ohohoh... yes. you are right! I dislike the {F2} read control text approch but still it is easy to do... I started using execparm so long ago that I am so tied to it that I forgot that you can actually make without it... Oh well..ò

Share this post


Link to post
Share on other sites

u don't need F2!! u can get file path in the first cmd line param. (while running with context menu)

Share this post


Link to post
Share on other sites

Really?!? Do you mean that if I start a script from the context menu CmdLine[1] will be the full path?

Thats a great news! It opens new worlds! Thanks, Thanks!

Share this post


Link to post
Share on other sites

Are you talking about the path to the script? @ScriptDir already provides that information...

Share this post


Link to post
Share on other sites

We are speaking of a totally different thing, I am sorry.

Share this post


Link to post
Share on other sites

it works!...right?

Share this post


Link to post
Share on other sites

It does...

In command key you have to set autoit.exe script.au3 "%1"

and it works :D

with this is a joke make a script to avoid the use of Execparm

Share this post


Link to post
Share on other sites

compile the script for even easier usage.

Share this post


Link to post
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
Sign in to follow this  
Followers 0