Jump to content
Sign in to follow this  
MiMac

Passing parameters to my script

Recommended Posts

MiMac

Hey all,

I'm a new user of AutoIt so sorry for my question.

I want to make an executable script (script.exe) and to run this script with parameters.

What have i to do in my script to do that?

an exemple:

A script (script.exe) which waits the activation of Internet Explorer to connect to an internet site (the adress is the parameter)

To run the executable, i type the command line: script.exe www.google.fr

and it connects to google.

Is it possible to do that with AutoIt (i think so)? and how can i do?

Thanks for your response and sorry for my poor english.

MiMac.

Share this post


Link to post
Share on other sites
MiMac

Hey all,

I'm a new user of AutoIt so sorry for my question.

I want to make an executable script (script.exe) and to run this script with parameters.

What have i to do in my script to do that?

an exemple:

A script (script.exe) which waits the activation of Internet Explorer to connect to an internet site (the adress is the parameter)

To run the executable, i type the command line: script.exe www.google.fr

and it connects to google.

Is it possible to do that with AutoIt (i think so)? and how can i do?

Thanks for your response and sorry for my poor english.

MiMac.

It's OK i have the answer.

Share this post


Link to post
Share on other sites
herewasplato

Welcome to the forum.

Open the AutoIt helpfile.

Go to the index tab.

Type in Command Line Parameters.

Post back if you have trouble using that info....


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Monamo

Hey all,

I'm a new user of AutoIt so sorry for my question.

I want to make an executable script (script.exe) and to run this script with parameters.

What have i to do in my script to do that?

an exemple:

A script (script.exe) which waits the activation of Internet Explorer to connect to an internet site (the adress is the parameter)

To run the executable, i type the command line: script.exe www.google.fr

and it connects to google.

Is it possible to do that with AutoIt (i think so)? and how can i do?

Thanks for your response and sorry for my poor english.

MiMac.

In the help file, search for $CmdLine

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.