de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 [SOLVED]Opening a file with a command line argument?
PostPosted: Tue Nov 24, 2015 9:03 pm 
Offline
Veteran
Hello again everybody.

Does anyone know if it is possible to open a file with sexscripts adding a command line argument?
I tried to use the useFile().

I tried to do the following

useFile("switch.bat -1")

but I receive an error.
No issues with

useFile("switch.bat")

but I need to pass the argument.
Any methods?


Last edited by cd228 on Tue Nov 24, 2015 10:25 pm, edited 1 time in total.

Top
 Profile Send private message 
 
 Re: Opening a file with a command line argument?
PostPosted: Tue Nov 24, 2015 10:25 pm 
Offline
Veteran
I figured it out:D.

You simply use java to open it.

I do the following, for opening a batch file named "switch" in the sexscripts directory:

Code:
def path = System.getProperty("user.dir");

Runtime.getRuntime().exec(path + "/switch.bat -1");


This code gets the path of the sexscripts.exe.
It the executes the program with the command line argument "-1".



Ps: I use it to control my Arduino over serial port.


Top
 Profile Send private message 
 
 Re: [SOLVED]Opening a file with a command line argument?
PostPosted: Wed Nov 25, 2015 7:04 pm 
Offline
Site Admin
User avatar
We searched also to have some serial port librairies inside SexScripts, but alas as it was a few years ago the solutions were not good enough.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.