Jump to content
Sign in to follow this  
sethjale

ControlClick Coords

Recommended Posts

sethjale

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.

Share this post


Link to post
Share on other sites
somdcomputerguy

Change left to "left".


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
sethjale

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]")

Share this post


Link to post
Share on other sites
Necromorph

there you go "[CLASS:$var; INSTANCE:$var]"

ive been putting a

SLEEP($milsec) before my CONTROLCLICK, and it has been helping me.

GOOD LUCK!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.