Daydreamer067 Posted September 28, 2021 Posted September 28, 2021 Hi I have this code : send("^c") sleep(500) $clip = ClipGet() $name = filereadline($file,1) If $clip = $name Then The strings are the same $clip = alienhunter et $name=alienhunter If I do the tests = == or stringinstr they don't match. Aynone knows why ?
HurleyShanabarger Posted September 28, 2021 Posted September 28, 2021 ConsoleWrite(StringToBinary($clip) & @CRLF) ConsoleWrite(StringToBinary($name) & @CRLF) Are both binary string the same?
Daydreamer067 Posted September 28, 2021 Author Posted September 28, 2021 What do you mean by binary ?
Musashi Posted September 28, 2021 Posted September 28, 2021 53 minutes ago, Daydreamer067 said: What do you mean by binary ? It is possible that one of the strings contains non-printable characters. Just check what @HurleyShanabarger suggested. HurleyShanabarger 1 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Developers Jos Posted September 28, 2021 Developers Posted September 28, 2021 4 hours ago, Daydreamer067 said: alienhunter Meaning this is for a game? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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