FlamingMacro Posted August 9, 2010 Share Posted August 9, 2010 Hello, everyone! I am a bit new to the Forums, but I have a little bit of experience with AutoIt3. I have a small problem. I cannot figure out how I can add dots to the middle of a string randomly. (The dots shouldn't be next to eachother) Example: before: Pickle after: Pi.ckle or P.ickle or Pi.ck.le, etc etc. It would be nice if you tell me how this is done Thanks, FlamingMacro Link to comment Share on other sites More sharing options...
Tomb Posted August 9, 2010 Share Posted August 9, 2010 #Include <String.au3> $Input = InputBox("Add Random Dots to String!!", "Enter a string") If $Input <> "" Then $Length = StringLen($Input) $Random = Random(1, $Length, 1) $Result = _StringInsert($Input, ".", $Random) MsgBox(0, "", $Result) Else MsgBox(0, "", "Invalid String") EndIf Link to comment Share on other sites More sharing options...
FlamingMacro Posted August 9, 2010 Author Share Posted August 9, 2010 (edited) Thanks a lot! Edited August 9, 2010 by FlamingMacro 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