Daydreamer067 Posted September 28, 2021 Share 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 ? Link to comment Share on other sites More sharing options...
HurleyShanabarger Posted September 28, 2021 Share Posted September 28, 2021 ConsoleWrite(StringToBinary($clip) & @CRLF) ConsoleWrite(StringToBinary($name) & @CRLF) Are both binary string the same? Link to comment Share on other sites More sharing options...
Daydreamer067 Posted September 28, 2021 Author Share Posted September 28, 2021 What do you mean by binary ? Link to comment Share on other sites More sharing options...
Musashi Posted September 28, 2021 Share 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." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 28, 2021 Developers Share 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. 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