Well, im making my first bot and the only trouble im having is that when i copy the data i receive from ethereal, it contains quote marks and vb6 thinks its the end of the string. How would i fix this problem, or avoid it..
Use a StrToHex Function to obtain the hexidecimal values (or use them since ethereal shows them) and use a winsock1.send HexToStr("AA AA AA AA") replace AA's with the data you want to send!
lol thx ;D
If you want to make a string with the data
hello"world"wtf, use this.
Dim S as String
S = "hello" & Chr(34) & "world" & Chr(34) & "wtf"
Quote from: Joe on February 21, 2006, 09:03 PM
If you want to make a string with the data hello"world"wtf, use this.
Dim S as String
S = "hello" & Chr(34) & "world" & Chr(34) & "wtf"
Isn't it also possible as:
S = "hello""world""wtf"
?
I think so, but I'm not sure about that rule. =/
Quote from: Joe on February 22, 2006, 06:59 AM
I think so, but I'm not sure about that rule. =/
I'm pretty sure that does work and is how it's supposed to be done.
Tested it in a MsgBox, works fine. I've always used chr(34) myself, though.