Sign in to follow this  
Followers 0
laffo16

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

5 posts in this topic

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



Look in help file about ShellExecute.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

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

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

#5 ·  Posted (edited)

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  
Followers 0