Page 1 of 1

Run Script from Command Line

Posted: 22 Jul 2011 02:49
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

Re: Run Script from Command Line

Posted: 22 Jul 2011 12:19
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

Re: Run Script from Command Line

Posted: 22 Jul 2011 13:30
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?

Re: Run Script from Command Line

Posted: 22 Jul 2011 13:36
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)

Re: Run Script from Command Line

Posted: 22 Jul 2011 13:39
by admin
:)

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