Hooch Posted July 28, 2004 Share Posted July 28, 2004 Select Case $MSG = $CMD_PAUSE OR $MSG = "cmdPause" EndSelect Some languages allow more than one argument on the case statement. From the help file it does't look like autoit does, but ya never know I am getting odd behaivor from my tests so I am thinking the "OR" is not going to work. Link to comment Share on other sites More sharing options...
Hooch Posted July 28, 2004 Author Share Posted July 28, 2004 Hmm my case responds correctly wether I do $msg = "string or $msg == "string" What I was trying to do there is : Case $msg = $var OR $msg = "string" See there are buttons in the main gui that are the same as the child, the child is an always on top "quick bar" so the two sets of buttons execute the same code. I just don't want to have to make 2 case statements for each set. I was hoping I could have one case cover both types of input, from the $button event in the main app or the text message sent via AutoItWinSetTitle. Link to comment Share on other sites More sharing options...
Valik Posted July 28, 2004 Share Posted July 28, 2004 You know... it would of been a hell of a lot quicker to just test this instead of ask it. Link to comment Share on other sites More sharing options...
Administrators Jon Posted July 28, 2004 Administrators Share Posted July 28, 2004 You know... it would of been a hell of a lot quicker to just test this instead of ask it.To be fair, he did say he'd read the helpfile and was getting strange results when testing it. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Hooch Posted July 28, 2004 Author Share Posted July 28, 2004 ya! Link to comment Share on other sites More sharing options...
Hooch Posted July 28, 2004 Author Share Posted July 28, 2004 I know I am asking some stupid questions, I try not to. I do search the help file and the forums prior to every question. I'm new but I am going to be around for long time I expect, give a newb a break Link to comment Share on other sites More sharing options...
Valik Posted July 28, 2004 Share Posted July 28, 2004 I didn't see his last sentence, I must of scrolled it off-screen when I looked at Larry's post. 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