Build-in Functions

What is Build-in Functions

You can uses build-in Functions to do something in index.html file with javascript, for excample: run filename, make measure update.

Functions

run("path","param",showCmd);

run filename from javascript, for excample: open notepad

run("c:\\windows\\notepad.exe","",1);

cmd("cmdName","parma");

invoke command with param.

cmdName:

  • showMsg: cmd(‘showMsg’,'Hi, I am message!'); //alert a message

  • opacity: cmd('opacity',0.8); // change the widget opacity to 80%

  • loadwidget: cmd('loadwidget','NewWidget1'); //load the widget that the folderName is NewWidget1

  • measure name: cmd('weather1', 'update'); //make the weather1 measure update weather.

  • eject : Eject a USB drive or CDROM drive,e.g. cmd('eject','E'); //eject the E drive

Last updated