how to debug problems with remote control?
Posted: 07 Mar 2024 21:14
I'm currently experimenting calling XY's via "Remote Control" from LibreAutomate to do clever things (like goto "xyz").
The calling program writes the command that it intends to send to the clipboard before sending - and these commands have always worked when I tried to execute them from address bar after a failed call. So I'm pretty sure that the sent code is correct.
An actual example is:
For additional thril it even shows its argument - sometimes it works, sometimes it doesn't.
I'm a bloody n00b in all of that - so are there common pitfalls or things one has to know? Is there a way to get additional info from XY? (I tried setting "
NB: I am aware there could be issues at both ends of the pipeline, so I will also be checking the LA-side of things. But I can imagine that you may want to see the sending code, so here it is (uses LA's internal functions and C#):
The calling program writes the command that it intends to send to the clipboard before sending - and these commands have always worked when I tried to execute them from address bar after a failed call. So I'm pretty sure that the sent code is correct.
An actual example is:
::$p = "c:\temp\";text $p;goto $p;For additional thril it even shows its argument - sometimes it works, sometimes it doesn't.
I'm a bloody n00b in all of that - so are there common pitfalls or things one has to know? Is there a way to get additional info from XY? (I tried setting "
logchange 5" before calling, but that did not give more info.)NB: I am aware there could be issues at both ends of the pipeline, so I will also be checking the LA-side of things. But I can imagine that you may want to see the sending code, so here it is (uses LA's internal functions and C#):
Code: Select all
void XYSend (string script) {
var w = wnd.findOrRun(of: "xyplorer.exe",run: () => run.it("xyplorer.exe"));
if (w.Is0) return;
WndCopyData.Send<char>(w, 0x00400001, script);
}