Open/Close CD Tray

Post any examples or modules that you want to share here
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Open/Close CD Tray

Post by JB_AU »

**Note ; I only have a laptop to test this on :(

openclosetray.fsm
Fixed
(446 Bytes) Downloaded 1090 times
Last edited by JB_AU on Fri Nov 14, 2014 10:53 am, edited 1 time in total.
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Open/Close CD Tray

Post by nix »

Could we print mate?
&ty, I'll try it now

edit: it sort of works-
it does actually open my lappy's cd tray.
however this error is constant->

NameError: uninitialized constant CD Tray

It doesn't matter what state the bool is in, or whether it is triggered
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Re: Open/Close CD Tray

Post by JB_AU »

Could we print mate?


???
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Open/Close CD Tray

Post by nix »

just wondering if somehow you could print a string from FS on a printer?
I thought I'd ask because you have implemented this
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Re: Open/Close CD Tray

Post by JB_AU »

I used shellexecute which is very primitive & limited.
PRINT sometext.txt /D:com2

There is however
WORDPAD /PT sometxt.rtf ThisPrinter

Which completely does formatting but opens & closes wordpad :(

I am trying to pipe to winspool.drv so there is no limitation :roll: :shock:
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Open/Close CD Tray

Post by nix »

Interesting,
well done.
The potential market for business machines is huge
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Re: Open/Close CD Tray

Post by JB_AU »

The potential market for machine automation is astronomical 8-)
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Open/Close CD Tray

Post by nix »

Yep,
it's fixed as far as I can tell,
my door is manually closed.

I have a little experience with machine control-
Baldor servo and SEW PLCs

What I was getting at was accounting software-
could be a real winner if print enabled

--I will test it on a door that closes too in a minute on my desktop
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Open/Close CD Tray

Post by Walter Sommerfeld »

Hmm...

It doesn't matter what state the bool is in, or whether it is triggered

On my PC it always only opens the cd tray (if closed)
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Re: Open/Close CD Tray

Post by JB_AU »

It's supposed to eject the tray when clicked & close the tray when clicked.
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
Post Reply