billthecreator Posted February 6, 2009 Share Posted February 6, 2009 How can i find out who is in my network? And possibly set them in an array. [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
BrettF Posted February 6, 2009 Share Posted February 6, 2009 More explanation is needed... Computer names? IPs? Define who... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
billthecreator Posted February 6, 2009 Author Share Posted February 6, 2009 Just names.... i just want to know how many people are on, and maybe network speed. [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
BrettF Posted February 7, 2009 Share Posted February 7, 2009 Try this: expandcollapse popup#Include <Array.au3> #include <iNet.au3> TCPStartup() Global $aComputers[255][2] Global $count = 0 Global $IP = @IPAddress1 $minIP = 100;192.168.0.100 is the lowest IP i have $maxIP = 110;192.168.0.110 is the highest IP i will have, so no need to go higher/lower If $IP = "127.0.0.1" Then MsgBox(0, "Error", "It appears no connection is availible. Now exiting...") Exit EndIf $aIP = StringSplit($IP, ".") If $aIP[0] <> 4 Then MsgBox(0, "", "Invailid IP (Possibly using IPv6), Now exiting...") Exit EndIf $pre = $aIP[1] & "." & $aIP[2] & "." & $aIP[3] & "." For $i = $minIP to $maxIP $pingIP = $pre & $i TrayTip ("", "Now Pinging... " & $pingIP, 10) $ping = Ping ($pingIP, 75) If $ping Then $name = _TCPIpToName ($pingIP) If @error Then $name = -1 & "(error = " & @error & ")" $count += 1 $aComputers[$count][0] = $pingIP $aComputers[$count][1] = $name EndIf Next MsgBox (0, "", $count & " computers found!") ReDim $aComputers[$count + 1][2] $aComputers[0][0] = $count _ArrayDisplay ($aComputers) TCPShutdown ( ) Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
billthecreator Posted February 7, 2009 Author Share Posted February 7, 2009 Thats something like i want, but i turned up that there wasnt any. Maybe this will clarify: The computers in the Network folder shows like 40+ computers. i want that in a list. [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Authenticity Posted February 7, 2009 Share Posted February 7, 2009 If there is already associated name with each machine it's all in the registry under the key (for Windows XP): HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions Just use RegEnumKey to enumerate them all. Link to comment Share on other sites More sharing options...
billthecreator Posted February 7, 2009 Author Share Posted February 7, 2009 I have vista.... [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Authenticity Posted February 7, 2009 Share Posted February 7, 2009 So use the search as I did. I've search for a known name of one of our machines in the network, probably there is a parallel key in Vista. If no, there is always the good WMI object to retrieve some Windows properties of your machine account. 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