Jump to content

running multiple autoit commands from commandline


Recommended Posts

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?

Link to comment
Share on other sites

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 ...
 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...