Page 1 of 1

how to debug problems with remote control?

Posted: 07 Mar 2024 21:14
by MBaas
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:
::$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);            
    }

Re: how to debug problems with remote control?

Posted: 07 Mar 2024 21:32
by highend
get() knows how to show the data that XY has received via WM_COPYDATA

You'd should look at the senders side if everything was working correctly, I've used remote control for at least 6 years with AHK + PB and it hasn't failed once

Re: how to debug problems with remote control?

Posted: 08 Mar 2024 06:30
by MBaas
Thanks - that's useful and reassuring! :tup:

Re: how to debug problems with remote control?

Posted: 12 Mar 2024 20:47
by MBaas
duh...that was more difficult than expected - because I had the right idea too late :oops:

My XY ran elevated - but the sending process wasn't elevated - so it couldn't talk to XY.....

Re: how to debug problems with remote control?

Posted: 12 Mar 2024 21:19
by highend
sometimes it works, sometimes it doesn't
So you always alternated between XY elevated / not elevated and you didn't recognise that pattern?

Re: how to debug problems with remote control?

Posted: 12 Mar 2024 21:22
by MBaas
eh...well...I did (finally) :oops: