I am assuming I am missing something obvious (and I am a total newb, this is my first skin.
Any ideas advice kindly appreciated
Last edited by balala on April 20th, 2022, 5:09 pm, edited 1 time in total.
Reason:Please use <code> tags whenever are posting codes. It's the </> button.
sad_story wrote: ↑April 20th, 2022, 4:51 pm
Been having troubles figuring out how to mousclick to run a vbs script located C:\Extra-Customization\connectForce.vbs
You probably should have to try to use a RunCommand plugin measure. Add the following measure to your code:
You can replace the State=Hide with State=Show is you want not to have hidden the window.
Now replace the LeftMouseDownAction option of your [AIRPODS Connect] meter with the following one: LeftMouseDownAction=[!CommandMeasure "MeasureRun" "Run"].
Additional notes:
Recommend not to use LeftMouseDownAction, but LeftMouseUpAction. You can find out why in the Note here.
Even if not forbidden, is not a good idea either to use spaces in names of section, on variables and so on. Usually this doesn't create problems, however you have to be extremely careful to quote the space-containing names in bangs. Sooner or latter this will lead a skin not to work properly. So, another recommendation is to replace the [AIRPODS Connect] meter name with [AIRPODSConnect] (or anything else with no spaces).