NovKit Posted January 16, 2022 Posted January 16, 2022 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
NovKit Posted January 16, 2022 Author Posted January 16, 2022 I am new and didn't make this post correctly I am sorry
Solution Danp2 Posted January 16, 2022 Solution Posted January 16, 2022 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
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