sethjale Posted February 20, 2010 Posted February 20, 2010 I'm trying to set up some scripts using Airfoil. The ID# changes every time the program is restarted or a new Airfoil Speaker is detected and added. So I'm trying to use ControlClick Coords instead of the ID but I'm not too sure the proper syntax for the script. I've read a few postings and there only ever seems to be scripts that don't work that are posted, not the working ones. I've tried using this: ControlClick("Airfoil", "", "CLASS:WindowsForms10.window.8.app.0.e4c6c4", left, 1, 18, 8) but I just get Error parsing function call. Any help very appreciated.
somdcomputerguy Posted February 20, 2010 Posted February 20, 2010 Change left to "left". - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
sethjale Posted February 20, 2010 Author Posted February 20, 2010 Thank you very much. That did stop giving the error. But than I noticed Coordinates won't work since the coordinates for the first button is the exact same as the 'X' Close button and both use same Class name. So I'm just using class name with instance instead: ControlClick("Airfoil", "skinnedButton1", "[CLASS:WindowsForms10.window.8.app.0.e4c6c4; INSTANCE:8]")
Necromorph Posted February 20, 2010 Posted February 20, 2010 there you go "[CLASS:$var; INSTANCE:$var]" ive been putting a SLEEP($milsec) before my CONTROLCLICK, and it has been helping me. GOOD LUCK!
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