Jump to content

AUTOIT running in background


Recommended Posts

I have been using autoit for testing my network server...the purpose is to send some numerics from a console window developed in visual studio and check if it is received in another window....i m able to do it by winactivate and send function already but what i want to do is to send the commands without activating the console window such that my test is running in background and m still able to use my system for other works.

hav searched for such concept but didnt come across a possible solution...seems like controlsend does the required job but while automating m still unable to write in the console window. i hav been trying to do this since a week now....please if anyone can help me, plz do.....thanks in advance.

Link to comment
Share on other sites

Check out the AutoIt Window Info tool and see what type of control(s) the console uses.  You may be able to use ControlSend functions to interact with it.

Link to comment
Share on other sites

Thanks  guys for replying .....the thing is when i use autoit win info tool and see the controls for my window console it doesnt return anything in control tag.....its all blank.....

Hello Richard.... launching a process using run(is that what u mean here?) is enough??? i already do that, i can winactivate the console and send the numerics but i want to do the same thing without even seeing the console so that i can use my desktop without hampering my automation?? And i didnt quite understand what u mean by redirect the standard input and output.

Edited by kishannepal
Link to comment
Share on other sites

Check out the StdoutRead and StdinWrite functions in the help file.

http://www.autoitscript.com/autoit3/docs/functions/StdinWrite.htm

That is what RichRob is referring to I believe.

 

edit:
This really belongs in the General Help forum, not Dev Chat
Someone moved it, thanks

Edited by spudw2k
Link to comment
Share on other sites

Local $handle = Run("D:mycoderndmpoc_client.exe","", @SW_show, $STDIN_CHILD + $STDOUT_CHILD)

StdinWrite($handle, "1")

i m trying to run the above snippet...it is the part of code which i wanna modify for running in minimized condition. First of all m not able to write on my console and secondly  my console is designed with Visual studio so i have some text written in the console which one can see immediatly after launching the EXE. BUt while running this way m not even able to see text in my console...

Link to comment
Share on other sites

I was afraid of that when you mentioned it was made in VS.

So just to be sure...when you used the AuInfo tool did you drag the crosshair over the applicatiion? Did it highlight any regions of it?

Not insinuating anything here.

edit: Was it VS.NET by chance? That's a whole other monster to tackle of which my support stops here. I NO know me some .NET automation.

Edited by spudw2k
Link to comment
Share on other sites

Even i ws wondering if VS has anything to with the complexity m facing. 

with info tool, I dont think it highlight any region. the background of the console is black so its actually difficult to say if it highlights anything. The info tool returns title, class, size, style,handle and  position, in the window sub menu whereas the control sub menu is blank. The result of the info tool is sth similar to what one will obtain when the cross hair is dragged to CMD.exe  

And thanks for ur quick replies....i really apreciate ur help.

Edited by kishannepal
Link to comment
Share on other sites

Strange...in that case I would've thought the StdInwrite funcs would've worked.  Hard to say without seeing the program. I gotta run, flight to catch.  I'll tune in later but hopefully someone else can help.

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