Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending scripts to XYplorer run scripts ? #1

Open
SheepDomination opened this issue Sep 14, 2018 · 13 comments
Open

Sending scripts to XYplorer run scripts ? #1

SheepDomination opened this issue Sep 14, 2018 · 13 comments

Comments

@SheepDomination
Copy link

I was wondering whether it can be added whereas, you can send the script to XYplorer > Scripting > Run Script and vise versa ?

@Otiel
Copy link
Owner

Otiel commented Sep 14, 2018

There may be a possibility since we can use the following command line to run a script:

"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed=Test.xys

That would require some testing to validate the behavior on XYplorer side.
I'm not fluent with VS code extensions authoring, so any help or PR would be appreciated.

What do you mean by "vice-versa" ?

@SheepDomination
Copy link
Author

What do you mean by PR ?

When I mentioned "vise-versa" I meant; not just sending the script from visual studio code to XYplorer > run script; also sending what code that is within the run script command back to visual studio code for further editing.
Rather then copying and pasting the code into XYplorer run script, you would trigger to send the script to XYplorer run script from within the visual studio code extension, then if you should so happen to edit the script within XYplorer run script you could send that back to the tab which you are working on the XYplorer script within visual studio code.

@Otiel
Copy link
Owner

Otiel commented Sep 16, 2018

PR = pull request.

Oh, my bad, I didn't understand what you meant. I thought you wanted to run a script directly from VS code.

What you're looking for (copy-pasting from one window to another window) falls out of VS code extensions scope. You should look for doing this using an automation software, like AutoHotkey or AutoIt.

@SheepDomination
Copy link
Author

I originally wanted to run a script directly from VSCode, not sure if that is possible ?

@Otiel
Copy link
Owner

Otiel commented Sep 23, 2018

I think it is, per what I wrote on my first comment, but the script will be automatically executed: it won't be sent to the "debug" window of XYplorer.

@Otiel Otiel reopened this Sep 23, 2018
@SheepDomination
Copy link
Author

One would always have to re-start XY and feed it the /feed=Test.xys flag for the script which you want XY to execute ?

@Otiel
Copy link
Owner

Otiel commented Sep 23, 2018

Not at all. The goal would be to create a VS code command that would execute this command line:

"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed=Test.xys

That would not restart XYplorer (see the Help file, chapter "Command Line Switches"); that would only execute the script in the existing XYplorer instance.

@SheepDomination
Copy link
Author

What VS code command would have to be executed, or is this command what you'd add to the extension ?

@Otiel
Copy link
Owner

Otiel commented Sep 25, 2018

is this command what you'd add to the extension ?

Correct.

@SheepDomination
Copy link
Author

is this command what you'd add to the extension ?

Correct.

I look forward to the update 👍

@SheepDomination
Copy link
Author

Any update and for code be sent to the debug window ?

@Otiel
Copy link
Owner

Otiel commented Mar 24, 2023

No sorry, I won't have time to work on this in the near future. 🙁

@SheepDomination
Copy link
Author

If you ever decide to start it up; this is the only feature request I'd like to see ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants