Waiting for a connection with Sciter's view on pipe...
To enable inspector in your application, call either one of these in the code of your application:
SciterSetOption(NULL, SCITER_SET_DEBUG_MODE, TRUE); at the beginning of your main function. This will enable Inspector for any Sciter window/view, orSciterCreateWindow(..., ... | SW_ENABLE_DEBUG); - create Sciter window with SW_ENABLE_DEBUG flag.Shortcuts that are active in inspector-enabled view:
CTRL+SHIFT+I - connect current view to the Inspector;CTRL+SHIFT+{mouse click} on some DOM element - select the element for inpection (styles, attributes, etc.).To connect your application to the Inspector either run inspector before launching your application or call this:
import * as sys from "@sys";
import { launch, home, PLATFORM } from "@env";
async function launchInspector() {
const SUFFIX = { Windows: ".exe", OSX: ".app" };
const PREFIX = { Windows: "\\", OSX: "/../../../" };
let inspectorPath = home((PREFIX[PLATFORM] || "") + "inspector" + (SUFFIX[PLATFORM] || ""));
try {
await sys.fs.stat(inspectorPath);
launch(inspectorPath);
} catch (e) {
Window.modal(<alert>Cannot find {inspectorPath}</alert>);
}
}