Vindicator209 Posted November 23, 2007 Share Posted November 23, 2007 Well, in command "ping & address" will return a hostname for a website, how can I achieve this? Ping in autoit returns the roundtrip time... Thanks [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
martin Posted November 23, 2007 Share Posted November 23, 2007 Well, in command "ping & address" will return a hostname for a website, how can I achieve this? Ping in autoit returns the roundtrip time... Thanks I don't know how you get the host name returned so I hope you can tell me how to do that. This method is not the best but maybe it does what you want. RunWait(@ComSpec & " /c " & "ping www.google.com > res.txt") $text = fileread("res.txt") msgbox(0,"ans=",$text) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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