Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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

Posted

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.

Posted

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

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
×
×
  • Create New...