Jump to content
Sign in to follow this  
laffo16

Sending Parameter with exe run "autoit.exe /option1"

Recommended Posts

laffo16

Hi everyone!

I wish to add the ability to launch a specific part of code from my script if the parameter is detected, is this possible?

example:

from windows --

run "autoit.exe /option1"

; --

; script begins

#includes....

if $I_GET[$option1] = TRUE then

run some stuff

exit

endif

#main code...

; --

Share this post


Link to post
Share on other sites
Andreik

Look in help file about ShellExecute.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
laffo16

still dont understand how this can work with my example, how do i know in my code if a run parameter has been set?

Share this post


Link to post
Share on other sites
Andreik

still dont understand how this can work with my example, how do i know in my code if a run parameter has been set?

Sorry, I misunderstand, maybe $CmdLine is what you want.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
laffo16

i think this is what im looking, thanks andreik

Edited by laffo16

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.