Jump to content
Sign in to follow this  

Wanna send msg with TCP

Recommended Posts

Hey ive got those scripts here. What information would i have to change to make it possible to put this on a friends computer and be able to send msgbox's to him?

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$TCPC = TCPConnect(@IPAddress1, 403)

Global $Form1 = GUICreate("Form1", 292, 50, 192, 124)
Global $Input1 = GUICtrlCreateInput("Input1", 16, 16, 177, 21)
Global $Button1 = GUICtrlCreateButton("Button1", 200, 16, 73, 25)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    If $TCPC = -1 Then Exit
    If $nMsg = -3 Then Exit
    If $nMsg = $Button1 Then button1()

Func button1()
$Iread = GUICtrlRead($Input1)
TCPSend($TCPC, $Iread)


$TCPL = TCPListen(@IPAddress1, 403)

    $TCPA = TCPAccept($TCPL)
Until $TCPA <> -1

While 1
        $TCPR = TCPRecv($TCPA, 1000000)
    Until $TCPR <> ""

    MsgBox(0, "En besked", $TCPR)

Getting hang on the basic, still much to learn.If I take high class, taking high test im getting highscore right?

Share this post

Link to post
Share on other sites

Can you please rephrase the question. I'm don't quite understand what you're attempting.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects
Cisco FinesseGithubIRC UDFWindowEx UDF


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...