The following button code will work if the buyCallback function is in my script:
drawTextPixel(300, 25, " Buy @URL=EFS:buyCallback", Color.teal , Color.white, Text.BUTTON | Text.RELATIVETOLEFT | Text.RELATIVETOTOP, "courier new", 12, 0);
" Buy @URL=EFS:buyCallback"As mentioned above, this works when the function is copied into my script.
" Buy @URL=EFS:LibEFSAT.buyCallback" Error Message: Failed to call 'LibEFSAT.buyCallback': function is not defined.
" Buy @URL=LibEFSAT.buyCallback" Browser opens
" Buy @URL=LibEFSAT.buyCallback()" Nothing happens
var LibEFSAT = addLibrary("EFSATLib.efsLib"); // I have this as a global variable, so the call below
drawTextPixel(300, 25, " Buy @URL=EFS:buyCallback", Color.teal , Color.white, Text.BUTTON | Text.RELATIVETOLEFT | Text.RELATIVETOTOP, "courier new", 12, 0);
" Buy @URL=EFS:buyCallback"As mentioned above, this works when the function is copied into my script.
" Buy @URL=EFS:LibEFSAT.buyCallback" Error Message: Failed to call 'LibEFSAT.buyCallback': function is not defined.
" Buy @URL=LibEFSAT.buyCallback" Browser opens
" Buy @URL=LibEFSAT.buyCallback()" Nothing happens
var LibEFSAT = addLibrary("EFSATLib.efsLib"); // I have this as a global variable, so the call below
works when called somewhere in main,
LibEFSAT.buyCallback();
Comment