TomTcom Posted November 16, 2012 Share Posted November 16, 2012 When you pull up the cmd prompt and ping a computer you see the results. I can't figure out the proper way to go about this to see the results in a window for AutoIT such as the ttl and millisecond time as it's happening. I have used some of the sample snippets on the site but I guess I would ultimately try to create my own network tool that has functions I want specifically and can return the results on screen. Should I be looking into the gui functions or is there a more simple "results" or "output" window from an inputbox? I hope I asked that correctly, given my noob status to scripting I'm not sure if I'm asking correctly. -Tom Link to comment Share on other sites More sharing options...
jdelaney Posted November 16, 2012 Share Posted November 16, 2012 (edited) I'm only aware of outputing results to a file: run ( @ComSpec & " /c ping google.com > C:testtesting.txt 2>&1" ) then you can read from the file: Pinging google.com [74.125.224.229] with 32 bytes of data: Reply from 74.125.224.229: bytes=32 time=8ms TTL=51 Reply from 74.125.224.229: bytes=32 time=7ms TTL=51 Reply from 74.125.224.229: bytes=32 time=7ms TTL=51 Reply from 74.125.224.229: bytes=32 time=7ms TTL=51 Ping statistics for 74.125.224.229: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 7ms, Maximum = 8ms, Average = 7ms Edited November 16, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
water Posted November 16, 2012 Share Posted November 16, 2012 Have a look at the opt_flags of function "Run". You can attach to StdOut and StdErr and access the output from AutoIt. Examples are in the help file. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
TomTcom Posted November 16, 2012 Author Share Posted November 16, 2012 I see what you are saying. Thanks for the response. It makes me wonder then if the gui functions would be better for my goal. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 16, 2012 Moderators Share Posted November 16, 2012 A GUI definitely makes it easier for you to present the output in a way that is easier for the user to read. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
TomTcom Posted November 16, 2012 Author Share Posted November 16, 2012 Have a look at the opt_flags of function "Run". You can attach to StdOut and StdErr and access the output from AutoIt. Examples are in the help file.Thanks, I came across those so I'll dig deeper on them. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now