NovKit 1 Posted January 16 Share Posted January 16 I'm trying to find out why this returns Restart when the input is anything except shutdown. it can be Google or Chrome or Google Chrome or even something random but still returns Restart. If the input is shutdown it runs shutdown normally. The Help.au3 Link to post Share on other sites
NovKit 1 Posted January 16 Author Share Posted January 16 I am new and didn't make this post correctly I am sorry Link to post Share on other sites
Solution Danp2 1,218 Posted January 16 Solution Share Posted January 16 Quote ElseIf $c == "reboot" or "restart" Then This isn't doing what you think. You would need something like this -- ElseIf $c == "reboot" or $c == "restart" Then The same goes for your Google Chrome comparison. Also, be aware that == is case sensitive, so "reboot" would match but "Reboot" would not. WebDriver UDF [GH&S] Latest version Wiki FAQs Link to post Share on other sites
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