Sign in to follow this  
Followers 0
Julius Ramos

TCPStartup ( ) get an error

9 posts in this topic

i try to use TCPStartup() but i got an error , and here's an error return when i runt he program

ERROR: TCPStartup() [built-in] called with wrong number of args.

TCPStartup ( )

~~~~~~~~~~~~~^

i use beta v3.1.1.91 (beta)


-----------------------------------------------------------BSECE, MCPAIM: juliusrmsYM: jivy_21@yahoo.comMSN: juliusLramos@hotmail.comMobile #: (Globe): +639167031989Web: http://www.trendmicro.com

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If you are using SciTe please use Alt + F5 to run it as beta otherwise make sure you have toggled the beta in

Start Menu ---> Programs ---> AutoIt v3 ---> Beta ---> Toggle AU3 Beta

Please repost if this works or not.

AutoIt Smith

Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

im now using Alt + F5 to use the beta but still i got an error.


-----------------------------------------------------------BSECE, MCPAIM: juliusrmsYM: jivy_21@yahoo.comMSN: juliusLramos@hotmail.comMobile #: (Globe): +639167031989Web: http://www.trendmicro.com

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

TCPStartup() should not have any spaces in it.

TCPStartup()

You should be running the BETA with SciTe Updated as of the download page.

http://www.autoitscript.com/autoit3/scite/downloads.php

Make sure your definition files are up to date and switched to Beta .91

AutoIt Smith

P.S. Try my TCP Made Easy functions and see if you get the same error when NOT running from SciTe :

http://www.autoitscript.com/forum/index.ph...topic=18738&hl=

Example

TCPStartUp()
$MainSocket = TCPListen(@IpAddress1, 100)
While 1
   $ConnectedSocket = TCPAccept($MainSocket)
   If $ConnectedSocket <> -1 Then
      $Data = TCPRecv($ConnectedSocket)
      If $Data <> '' Then MsgBox(0, "Data Recieved", $Data)
   EndIf
WEnd
Func OnAutoItExit()
   TCPCloseSocket($ConnectedSocket)
   TCPCloseSocket($MainSocket)
   TCPShutdown()
EndFunc
Edited by AutoIt Smith

Share this post


Link to post
Share on other sites

its now working.

Thank you very much for your quick response.

cheers


-----------------------------------------------------------BSECE, MCPAIM: juliusrmsYM: jivy_21@yahoo.comMSN: juliusLramos@hotmail.comMobile #: (Globe): +639167031989Web: http://www.trendmicro.com

Share this post


Link to post
Share on other sites

Just a small precision.

TCPStartup ( )

works with beta and blank, So the problem was certainly not using the beta

Share this post


Link to post
Share on other sites

Agreed.

Share this post


Link to post
Share on other sites

it just only the scite not updated. when i update the scite then it works fine.


-----------------------------------------------------------BSECE, MCPAIM: juliusrmsYM: jivy_21@yahoo.comMSN: juliusLramos@hotmail.comMobile #: (Globe): +639167031989Web: http://www.trendmicro.com

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0