Jump to content
Sign in to follow this  
hackndoes

running multiple autoit commands from commandline

Recommended Posts

hackndoes

Hi,

I wan't to run multiple autoit commands from commandline that will run in the same instance like in a script, for instance

to set window title find by partial title 'Opt('WinTitleMatchMode',2)'

and then operate on the window ('WinClose('title')')

i don't want to do it from a script rather something like this:

autoIt3.exe /ErrorStdOut /AutoIt3ExecuteLine "Opt('WinTitleMatchMode',2)& WinSetState('title','', @SW_MAXIMIZE)"

how can this be achieved?

Share this post


Link to post
Share on other sites
hackndoes

don't understand what you are trying to say?

I want the same thread to execute two commands one after the other in the context of the same process\thread.

don't want the two actions to execute in parallel.

Share this post


Link to post
Share on other sites
MvGulik

Seems to me the option /AutoIt3ExecuteLine is pretty clear about the line part.

To run code that can't be merged into a single code line you need to dump it in a (temporary) script file and run that.

Threading: +?


"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites
hackndoes

I still don't understand the threading part.

I didn't ask for it to work with the flag ExecuteLine rather some other configuration that does that, if exists.

I understand from what you are saying that it doesn't exist.

thanks.

the temp script file might be a crucked yet appropriate solution for my need.

Share this post


Link to post
Share on other sites
Ascend4nt

"C:\Program Files\AutoIt3\AutoIt3.exe" /ErrorStdOut /AutoIt3ExecuteLine "Local $i=Opt('WinTitleMatchMode',2),$s=WinSetState('WindowTitle','', @SW_MAXIMIZE)"

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  

×