-
Notifications
You must be signed in to change notification settings - Fork 355
Recorder: Test Run
Raimund Hocke edited this page Apr 17, 2023
·
1 revision
if (arg.startsWith("rec")) {
//region recording
Device.checkAccessibility();
if(!MouseDevice.isUseable() || !ScreenDevice.isUseable()) {
Commons.terminate(999, "Mouse and/or Screen not useable");
}
// we are running in API context
Commons.setStartClass(Sikulix.class);
// AppDataPath as SikulixAppData in Project/API
File path = Commons.setAppDataPath(Commons.getStartArg(APPDATA));
Commons.setTempFolder(new File(path, "Temp"));
// delete previous recordings
Recorder.INSTANCE.resetRecordingDirectory();
SX.popup("ok to start recording");
Recorder.INSTANCE.startRecording();
SX.popup("ok to stop recording");
Recorder.INSTANCE.finishRecording();
Commons.terminate();
//endregion
}