Jump to content

Recommended Posts

Posted

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=
TCPStartup()
$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)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

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

TCPStartup()

$TCPL = TCPListen(@IPAddress1, 403)

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

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

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...