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

Is it possible to run a program in Windows from ChaiScript? #609

Open
claudio-salvio opened this issue Jul 3, 2023 · 2 comments
Open

Is it possible to run a program in Windows from ChaiScript? #609

claudio-salvio opened this issue Jul 3, 2023 · 2 comments

Comments

@claudio-salvio
Copy link

Hello ChaiScripters !

I use ChaiScript from Ditto-CP in Windows.
I would find it very useful to be able to add to Ditto-CP a paste script that calls a program passing as parameter the content of the clipboard that Ditto-CP makes available in ChaiScript through a built-in variable called clip (for example: clip.GetAsciiString()).
I would like to know if there is a way to do this.

Best regards,
Claudio Salvio

@RobLoach
Copy link
Contributor

RobLoach commented Jul 3, 2023

If you make a ChaiDcript interface to something like system, you would be able to run external applications.

@claudio-salvio
Copy link
Author

Hello @RobLoach,

Thanks for your prompt reply.
Can you guide me on how to find an example?
I did several searches in Google (1, 2, etc.) but I didn't find any.

Unfortunately at the moment I lack the necessary knowledge of C++ to be able to act with your answer.
I am not much better in ChaiScript, where my experience is limited to the little that was necessary to learn to add some scripts in Ditto-CP.

Regards,
Claudio Salvio

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

No branches or pull requests

2 participants