Oh, wonderful, thanks!
I'm trying with:
Code:
document.getElementsByClassName("statusBarConnectionDiv").onclick=function(){
var invertedState = (ConnectionState.connectionOnOff ? 0 : 1);
nativeBridge.setIntLipcProperty("com.lab126.cmd", "wirelessEnable", invertedState);
};
But don't know where place the code exactly in the script for make it work (PS the forum puts a space that breaks "connection" word, don't know why)