Quote:
Originally Posted by Aeris
Do you think guys that it would be easy, for example, with a similar approach, turn the wifi tray icon into a switch for the wifi off/on property? Inejcting some javascript as in this case... or javascript can't launch lipc commands?
|
It's possible to access LIPC from pillow app and it's possible to handle tap (as a standard click event) with JavaScript. So overall answer is yes.
This code executed in context of default_status_bar should work as a wireless switch.
Code:
var invertedState = (ConnectionState.connectionOnOff ? 0 : 1);
nativeBridge.setIntLipcProperty("com.lab126.cmd", "wirelessEnable", invertedState);