Drew Posted August 27, 2008 Posted August 27, 2008 Omg , I had this working earlier and I don't know when or why , but I removed it from my code. All I'm trying to do is get it setup to where $class ( my variable ) will produce the ClassNameNN of whatever window in active at the time. I could have sworn this is what I was using earlier to test this: $Class = ControlGetFocus("[active]") But for whatever reason when I use something such as a MsgBox to ensure that its reading the class , it's not working. I KNOW I had this working earlier.... Could someone tell me where I'm wrong in that little code , or show me a different way of getting the ControlRef# for me to use in a ControlClick? Please and Thank you very much , *Drew
Andreik Posted August 27, 2008 Posted August 27, 2008 Omg , I had this working earlier and I don't know when or why , but I removed it from my code. All I'm trying to do is get it setup to where $class ( my variable ) will produce the ClassNameNN of whatever window in active at the time. I could have sworn this is what I was using earlier to test this: $Class = ControlGetFocus("[active]") But for whatever reason when I use something such as a MsgBox to ensure that its reading the class , it's not working. I KNOW I had this working earlier.... Could someone tell me where I'm wrong in that little code , or show me a different way of getting the ControlRef# for me to use in a ControlClick? Please and Thank you very much , *Drew Look here maybe helps you.
rasim Posted August 27, 2008 Posted August 27, 2008 DrewYou forgot switch to advanced modeOpt("WinTitleMatchMode", 4)
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