WannaBeGut Posted September 28, 2015 Share Posted September 28, 2015 Hello! This is my first Thread / Post here, I hope I'am in the right section.. ._.Alright, thats my problem: I made a little script which sends the amount of bytes you want it to ($bytestosend). I've gotten this far: $bytes = GUICtrlRead($bytestosend) $ibytes = ($bytes*a) $ierror = 0 $socket = TCPConnect($host, $iport) $TCPSend = TCPSend($socket, $ibytes)As you can see I tried to multiply $bytes with "a", (let's say $bytes = 12) I would like the result to be "aaaaaaaaaaaa", but you cant multiply numbers with letters, (12*a=0). I hope someone can figure it out! .__.Excuse my bad English and thank you in advance! Link to comment Share on other sites More sharing options...
jguinch Posted September 28, 2015 Share Posted September 28, 2015 (edited) _StringRepeat ?Edit :On just this :Local $s = "a" Local $sNewString For $i = 1 To 12 $sNewString &= $s Next ConsoleWrite($sNewString) Edited September 28, 2015 by jguinch WannaBeGut 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
WannaBeGut Posted September 28, 2015 Author Share Posted September 28, 2015 _StringRepeat ?Edit :On just this :Local $s = "a" Local $sNewString For $i = 1 To 12 $sNewString &= $s Next ConsoleWrite($sNewString) Thanks! Link to comment Share on other sites More sharing options...
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