Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#127730 - 24/11/2002 18:32 Http Remotes
suomi35
enthusiast

Registered: 16/02/2002
Posts: 290
Loc: Denver, CO
I have decided to release some http remotes, written in vb, to you guys.

These apps are not perfect by any means, but they do work.

Most of my coding troubles came when trying to figure out how to get information from the player. I wanted to import /proc/empeg_screen.png into the remote, but it is a nonstandard format for .png, so visual basic would not recognize it as such. (I even tried using the browser control element from in the remote. This worked, but used well over 30% of system resources, so no go!)

I eventually gave up on /proc/empeg_screen.png and ended up just parsing /proc/empeg_notify for track info. It polls the player about every second and is very easy on system resources.

I hope you guys will find these useful. Feel free to modify them in any way. If somebody can get the empeg display into one I'd be really interested in seeing it. I'd also like to see a remote like this done in Java...Jemplode has a very nice Grab Empeg Screen function that could be incorporated.

Have fun,
-Jason
_________________________
-Jason

Top
#127731 - 24/11/2002 18:51 Re: Http Remotes [Re: suomi35]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
Run-time error '339':

Component 'CSWSK32.OCX' or one of it's dependencies not correctly registered: a file is missing or invalid

Tried running the 3rd one on my laptop running XP Pro.
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#127732 - 24/11/2002 19:47 Re: Http Remotes [Re: leftyfb]
suomi35
enthusiast

Registered: 16/02/2002
Posts: 290
Loc: Denver, CO
Well, I have only tested em on w2kpro...
_________________________
-Jason

Top
#127733 - 24/11/2002 19:50 Re: Http Remotes [Re: suomi35]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
I just tried it on a freshly built win2k pro and got the same error.
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#127734 - 24/11/2002 20:05 Re: Http Remotes [Re: leftyfb]
trs24
old hand

Registered: 20/03/2002
Posts: 729
Loc: Palo Alto, CA
just tried it on my W2K Server and worked like a champ. Nice motes suomi!
_________________________
- trs

Top
#127735 - 24/11/2002 20:10 Re: Http Remotes [Re: leftyfb]
suomi35
enthusiast

Registered: 16/02/2002
Posts: 290
Loc: Denver, CO
You either do not have CSWSK32.OCX or it is not registered properly.

Open up Windows Explorer and search for the file CSWSK32.OCX
It should be in either:
C:\Windows\system\
or
C:\Winnt\system32\

If you don't find it you'll need to get it off the web and put it in one of the aforementioned locations.

Then:

Goto Start Menu - Run - then type in:
regsvr32 c:\windows\system\CSWSK32.OCX
or
regsvr32 c:\winnt\system\CSWSK32.OCX
_________________________
-Jason

Top
#127736 - 24/11/2002 20:54 Re: Http Remotes [Re: suomi35]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
That seemed to have worked, but out of curiousity, where did that ocx file come from? It's not installed from a fresh copy of XP or win2k.
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#127737 - 24/11/2002 21:16 Re: Http Remotes [Re: leftyfb]
suomi35
enthusiast

Registered: 16/02/2002
Posts: 290
Loc: Denver, CO
It's a toolkit called SocketTools for VB.
You can get CSWSK32.OCX here (82K).
Sorry for the confusion, if these apps were meant for endusers I'd have that file packaged in an installer.
_________________________
-Jason

Top
#127738 - 25/11/2002 20:24 Re: Http Remotes [Re: suomi35]
trs24
old hand

Registered: 20/03/2002
Posts: 729
Loc: Palo Alto, CA
After trying to run it on my XP box I had to install the ocx file as well... not a prob once it was in the appropriate folder though!

I had attempted something very similar with RealBasic on the mac - and ran into the same problem displaying the empeg screen. With RB I could only figure out how to implement the display through an http socket through which the png was downloaded and displayed every second or so. But it too took up A LOT of system resources and wasn't really practical...

So if anyone is able to tackle this issue from another angle I also would appreciate the info!

Thanks!

.::trs
_________________________
- trs

Top
#127739 - 25/11/2002 20:28 Re: Http Remotes [Re: trs24]
V99
member

Registered: 12/01/2002
Posts: 192
Loc: Phoenix, AZ
I'm working on it for my Palm using VNC.. For simple remote display/control you can just use any old VNC Client to connect to the Empeg and get the standard Empeg UI.

Top