Jump to content

kishannepal

Members
  • Posts

    11
  • Joined

  • Last visited

kishannepal's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Have used the file handle for _FileWriteLog.....works welll....whereas format is concerned i ws able to make my log file readable with some use of CRLF. Couldnt ask anything more for my log file. THANks all of you
  2. I managed to get my script write the console messages in txt file, the only problem is the format...... After writing all the console write messages in the text file, the text file gets extremly clumsy....cant i retain the format in any way??
  3. thanks man, u mean to say my log file should be open all the time so that time taken for opening and closing the log file can be omitted.....let me try and i will get back to you
  4. thanks guys for ur reply.... i think i can combine both of ur ideas and solve my problem.. but my only concern is that the script generally runs for 10-15 hours daily.....this results in the huge amount of messages sent to my console, if i start writing in a log file along with each consolewrite my automation will get slowed down. Instead what m looking for is a way to copy everything in my console to a text file at the end of script at one go.....is there a way for this??
  5. hello guys, I was wondering if anyone could help me with a small task that i want to accomplish. while running my script, i use consolewrite to write many things on the autoit console window. What i want to do is find out a way to store this content smwhere in notepad for future reference. i think iniwrite can accomplish this but my console output has a lot of contents written on it which make the use of iniread very tedious. I will hv to substitute every consolewrite command. At the end of the script can i just store all the content of the console at a go??? Any help will be highly appreciated.
  6. Thanks orbs it worked ... TheSaint i knew it ws a simple problem thats the reason i didnt bother to put on the code. Still thanks for ur suggestion i will be as descriptive as possible in future.
  7. hello guys, since few days m havin trouble with iniread function of autoit, cant say a trouble actually its more like trying to find a way out . I hav a GUI window with input box for entering paths of the folder to run. I am writing the input file to an ini file and storing it for later use. Now the trouble is when m trying to read from ini m geting the path without double quote(note that my values a stored without quotes in ini). I want to store the file path to a variable but without double quotes the path is of no use to me. Can anyone help me with this problem?? Even concatenating quotes to the file path will do but howw???
  8. 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.
  9. 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...
  10. 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.
  11. 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.
×
×
  • Create New...