Page 2 of 2

Re: How to execute a command?

Posted: 01 Feb 2021 10:31
by highend
Copy "this text" via CTRL+C

Execute this from the address bar and show the result:

Code: Select all

$cmd = "#117;"; load $cmd, , "s"; text "S: <selitem><crlf 2>C:<crlf>" . gettoken(readfile(<selitem>), 3, <crlf>, , 1);

Re: How to execute a command?

Posted: 01 Feb 2021 10:45
by MBaas
A made a little modification:

Code: Select all

$cmd = "#117;"; load $cmd, , "s"; text "CLP: <clipboard><crlf 2>S: <selitem><crlf 2>C:<crlf>" . gettoken(readfile(<selitem>), 3, <crlf>, , 1);

Code: Select all

CLP: this text

S: C:\devt\ucmd.dcfg

C:
{ Startup: {

     LX: "⎕SE.UCMD 2⎕NQ'.' 'GetEnvironment' 'UCMD'"
I think this demonstrates my point: #117; did not change the clipboard!

Re: How to execute a command?

Posted: 01 Feb 2021 11:10
by highend

Code: Select all

$cmd = "::#117;"; load $cmd, , "s";
That doesn't work either?

And all commands aren't working in a fresh instance?

Then I'm out of ideas because $cmd = "#117;"; load $cmd, , "s"; works fine here...

Re: How to execute a command?

Posted: 01 Feb 2021 11:20
by MBaas
That works! :party:

But still $cmd = "#117;"; load $cmd, , "s"; is not doing it - even in a fresh instance.

Re: How to execute a command?

Posted: 01 Feb 2021 11:43
by highend
Is this set to 0 in your normal XYplorer.ini?
ScriptSmartDetect=0

Re: How to execute a command?

Posted: 01 Feb 2021 11:52
by MBaas
I have this:

Code: Select all

; Tweak: set to 1 to detect script in AB without ::
ScriptSmartDetect=1