Jump to content
Sign in to follow this  
bugzeeolboy

Unfinished program, need help.

Recommended Posts

bugzeeolboy

I need an autoit TCP expert help on this. I want to make a simple command sender and interpreter.

It's for a small prank program that works over IP and will not be used for much harm. It is just like the phantom USB random mouse mover and random key pusher, except the server goes in a do loop and

If TCPRecv($socket, 100) = "randomouse" Then
MouseMove(Random(0, @DesktopHeight), Random(0, @DesktopWidth))
EndIf

Now,

;If You("see") = $what-I-mean Then
;Explain("onForums", "how to do this?")
;EndIf

I did

$socket = TCPAccept(TCPListen(@IpAddress1, 2013))
. Will that work to return my socket ID?

What are socket IDs?

Why not just make a UDF to make TCP stuff simple?

Something like

BetterTCPRecv(port) (opens a socket on that port)

and returns a string sent by something like

BetterTCPSend(IP, port, "whatever")

on the client side?

Is there a UDF for that? (I'm pretty sure that UDFs are things that are used by #include, right?)

Share this post


Link to post
Share on other sites
Jos

It's for a small prank program that works over IP and will not be used for much harm

i have issues with this statement and whether or not i trust you, could be used for other purposes.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×