Run Script from Command Line

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Yogui
Posts: 19
Joined: 21 Jul 2011 14:44

Run Script from Command Line

Post by Yogui »

Hi!

I started using xyplorer a few weeks ago, I'm loving it.

I would like to integrate xyplorer with other tools I use via command line.

Scripts can do everything I need (selectItems, Goto, Get("SelectedItemsPathNames") etc)

Can I Run a Script from Command Line to a single already running instance?

I tried to run a script Sel1 this way on a shortcut:

Code: Select all

"...FullPathTo\XYplorer.exe" /script=Sel1
but that also browses to Mycomputer and then executes script Sel1 which only contains the text "sel 1" to select the 1st item in the list.

I suppose this may be a good feature for other uses as well.

Any ideas? Thanks in advance
Thanks, Yogui

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Run Script from Command Line

Post by admin »

Hi and welcome,
Yogui wrote:Can I Run a Script from Command Line to a single already running instance?
No, not possible. I might add it in future.

Don

Yogui
Posts: 19
Joined: 21 Jul 2011 14:44

Re: Run Script from Command Line

Post by Yogui »

Bad one! :cry:

I suppose, there is no send/postmessage or DLL call or any other option?

Please...Please...Please...Please...Please...Please...Please... :P

I suppose you already have the code is executed after a Script is loaded from a file (Scripting>Load Script file in the menu)

Please...Please...Please...Please...Please...Please...Please... :P

If need to play with the scripts by the GUI Address Bar, I got 2 questions:

1) Is the Address Bar always "Edit10" control Name?

2) After entering ::load "Sel1" in the Address Bar is there a command to set the text back to the current Path?
Thanks, Yogui

Yogui
Posts: 19
Joined: 21 Jul 2011 14:44

Re: Run Script from Command Line

Post by Yogui »

Don, to put it in other words 8)

"Run Script from Command Line" will enable external automation for XYplorer

Not only for programmers but for any user by shortcuts and schedule tasks in windows :wink:

(yes, I also want the feature badly for my autohotkey automation scripts)
Thanks, Yogui

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Run Script from Command Line

Post by admin »

:)

You know, I got a couple of other things to do. Maybe later...

Post Reply