hijolin Posted February 7, 2007 Posted February 7, 2007 host=inputbox("IP:") port=inputbox("port:") Set socket=WScript.CreateObject("MSWinsock.Winsock","winsock_") socket.Protocol=0 socket.RemotePort=port socket.RemoteHost=host socket.connect for a=1 to 30 WScript.sleep 10 next msgbox("port "&socket.remoteport&" close!") socket.close WScript.quit Sub winsock_connect() msgbox("port "&socket.remoteport&" open!") socket.close WScript.quit end sub
nobbe Posted February 7, 2007 Posted February 7, 2007 hi if noone helps you its because noone understood your question what you really want.. i can only guess too : try to search in forum for the tcpip codes of autoit..
ChrisL Posted February 7, 2007 Posted February 7, 2007 I guess this is what it translates to, but I can't get it to do anything on my laptop $host=inputbox("Enter IP","IP:") $port=inputbox("EnterPort","port:") Local $socket=Objcreate("MSWinsock.Winsock","winsock_") $socket.Protocol=0 $socket.RemotePort=$port $socket.RemoteHost=$host $socket.connect for $a=1 to 30 sleep (10) next msgbox(0,"","port " & $socket.remoteport & " close!") $socket.close ;WScript.quit Func winsock_connect() msgbox(0,"","port " & $socket.remoteport & " open!") $socket.close ;WScript.quit EndFunc [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
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