|
Author |
Topic: p5 autorun? (Read 1080 times) |
|
julijas
|
p5 autorun?
« on: Oct 26th, 2004, 12:23pm » |
|
Hi all, Is it possible to make an application (proce55ing project with serial interface) autorun when windows startup or user logs into windows? Thanks.
|
|
|
|
bsr
|
Re: p5 autorun?
« Reply #1 on: Oct 26th, 2004, 1:44pm » |
|
i'd like to know the answer to this as well, years ago at college i had an interactive director project at a gallery and i had to go in each morning and run it, it'd be nice if the gallery staff could turn it on without having to know anything about computers.
|
http://hippocamp.net
|
|
|
TomC
|
Re: p5 autorun?
« Reply #2 on: Oct 26th, 2004, 2:18pm » |
|
A quick hack on Windows is just to create a shortcut in the start up folder, set the working folder (possibly called "start in") to the applet's folder, and get it to run Code: javaw -cp [sketch_name].jar -ms128m -mx128m BApplet [sketch_name] |
| Change the -mx bit to give you more memory if you need it. There's lots of stuff on the board already about how to modify the applet jar file to run on double-click, and get stuff running full screen. Try technotes under miscellaneous: http://processing.org/reference/technotes/index.html
|
« Last Edit: Oct 26th, 2004, 2:21pm by TomC » |
|
|
|
|
fry
|
Re: p5 autorun?
« Reply #3 on: Oct 26th, 2004, 6:44pm » |
|
if you put that in a .bat file, and create a shortcut to the .bat file, windows will take care of making the .bat "start in" the same folder as the .bat, which can be useful so that you don't have to set the "start in" folder by hand. (this may also be what TomC meant, i'm not sure)
|
|
|
|
TomC
|
Re: p5 autorun?
« Reply #4 on: Oct 26th, 2004, 8:14pm » |
|
Nope, that's not what I meant, but it'll do
|
|
|
|
mKoser
|
Re: p5 autorun?
« Reply #5 on: Oct 28th, 2004, 10:47am » |
|
Quote:proce55ing project with serial interface |
| to my knowledge, you cannot make this work by launching a .bat file on windows startup... launching a .bat file requires a .jar file, which is compiled when exporting to web in processing ... and since serial doesn't work in a browser (and therefor won't work when exported as an applet) It seems to me that we need another route! I might be completely wrong here?... this method will work for standard processing projects, but not with serial. + m
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
TomC
|
Re: p5 autorun?
« Reply #6 on: Oct 28th, 2004, 11:07am » |
|
I don't have a serial project to test with, but as I understand it the serial functions are currently built into BApplet? So if you run the applet from the command line - which breaks it out of the Java sandbox - it should work. I think. Can you try it?
|
« Last Edit: Oct 28th, 2004, 11:07am by TomC » |
|
|
|
|
mKoser
|
Re: p5 autorun?
« Reply #7 on: Oct 28th, 2004, 5:51pm » |
|
Quote: I understand it the serial functions are currently built into BApplet |
| Hmmm.. sounds interesting. Unfortunatly I am in Denmark (teaching a processing workshop) right now, and I don't have any serial stuff with me. I'll give it a go once I get back home... if someone else tests this, please let us know, ok? Cheers, Mikkel
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
fry
|
Re: p5 autorun?
« Reply #8 on: Oct 28th, 2004, 6:33pm » |
|
you'll need to use the version of BApplet that's in pde.jar to make this work. also, you'll need win32com.dll somewhere in your path (or in the same dir as your run.bat) and to copy javax.comm.properties from "lib" into the lib folder of the java vm that will be running the app. (all this is easier in 70+)
|
|
|
|
|