I have very little knowledge about programming overall (I have done a C programming course, but, it doesn't seem to help much with autoit!).I'm currently working on an autoit script to play a simpel game of hangman (please, don't ask why
1.Guess certain letters
2.Input the text into a string. The text inputted has the following format:
_ _ _ _ _ L _ _ _ W _ _ _ _ _ _ _ _ _ _ S _ _ _
So, each letter that has not been guessed us represented by a "_", a space between words is signified by a " ". Now, so far, I have managed to use the function to break the string down into:
***** L *** W *** ***** ** S * **
This was done by replacing "_ " with a "*"
As you can see, this causes a probelm because if there is a letter in the place, you end up with a space between that letter and the next *.
I want to use the find and replace function again, but this time, with a wild card, so that if the script finds "[letter] *", it replaces it wilth "[that same letter]*"
Perhaps if I could say that if it finds " *" and then looks before the " " and sees that it is a letter it does the replacement, but otherwise, i'm not really sure how to do it.
I don't even mind changing the initial replacement.
Please help
Thanks guys!





