Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ddan

Pages: 1 ... 9 10 [11] 12
151
Rexx / Re: APMT test program grabs frame in KMP
« on: 2008.06.09, 14:49:44 »
Yes, KMPFS refers to KMP.EXE, "K Movie Player", as in the first code. That's
my file selector front-end. The frame grabbing works as is, though. It's other
problems that I'm wrestling with.

Here's the file name which produces the above listing shift (with > dir /w):
05 Eirini Merkouri - Mazi De Kanoyme Kai Xwria De Mporoyme (Tzini Magiko).mp3
Delete the spaces either side of the dash, and it lists normally. This is
reproducible on my system by pasting the above name to create a new file in a
new directory with "copy con" and a few garbage characters. It also garbaged
the VIO title with characters of "Welcome to the City" above, which was not
even in the new directory. SO I'm certain this somehow overflows a buffer. --
And if not clear, it only occurs with the "/w" switch.

BUT there's another file having space-dash-space, which doesn't cause the
problem, so I got rid of "05" and put back the spaces:
Eirini Merkouri - Mazi De Kanoyme Kai Xwria De Mporoyme (Tzini Magiko).mp3
and no problem. Conclusion, must have leading #s and " - ". Hmm. I'll rewrite
my renamer with this in mind, perhaps even to scan and fix the entire drive.
Interested whether anyone can -- well, I'm sure that you CAN reproduce the
effect, this has plagued me from W4 on -- so actually I'm curious whether
anyone WILL try it and go "Hmm..."

NOW BACK TO THE REXX PROGRAM EXITING. Put a delay right before "exit" and it
waits out, but then is exactly as if typed the "exit" on the command line. On
the other hand, running from an icon with "Close Window on exit" checked OFF
in Properties does show the "Completed" message and wait for click on close.
Hmmmmmmm...

152
Rexx / Re: APMT test program grabs frame in KMP
« on: 2008.06.09, 02:40:49 »
Oh, forgot, it's also possible, likely even, related to multiple dots in a file name. In my day, we didn't allow that. Nor spaces. I've written a rename in REXX to convert them pesky foreign characters to low ASCII, besides chop out annoying parts, but it needs more work for special cases. Found that FTPServer127 chokes on high ASCII.

153
Rexx / Re: APMT test program grabs frame in KMP
« on: 2008.06.09, 02:13:10 »
Yes, there is a hint in POPUPLOG.OS2, in the fact that there isn't any.

The VIO windows just disappear, whether from the above REXX code or a perfectly ordinary dir listing. Doubt that they're related. I've been attributing the latter to some bug in the video driver (though I've seen it with various, and am using SNAP 3.18).

I've been expecting to run across some mention of this, which I first noticed with plain W4. Am I the only only who still uses the command line? -- Well, believe file names with foreign characters... er, non-English, high-ASCII characters is necessary, but never been able to trace it to one (have a bunch).

Here's a screen capture of an ordinary >dir listing that show, er, an anomaly, probably related:
Directory of C:\fav

[.]
  [..]
    03. Kelly Kelekidou - Gluka Gluka Glukia Mou.mp3
      03. Tamta - Ftais (Faraway).mp3
        05. Eirini Merkouri - Mazi De Kanoyme Kai Xwria De Mporoyme (Tzini Magik
o).mp3    08_hooverphonic-no_more_sweet_music.mp3
            09-player_and_remady_-_nord_electro_(original_mix).mp3
              110-wax_taylor_feat_charlotte_savary-our_dance.mp3
                Amy Diamond - Welcome To The City.mp3
                  Balkan Beat Box AdirAdirim.mp3
                    Diego Modena & JeanPhilippe Audin Song from Ocarina.mp3
                      Gala - Faraway (Radio Edit).mp3
                        Gypsy Reggae.mp3
                          Murray Head - One Night In Bangkok.MP3

You'll note the lines move over by a space. Hmm, huh? And part of a file name gets stuck in the window title and never goes away.

154
Rexx / Re: APMT test program grabs frame in KMP
« on: 2008.06.08, 17:40:55 »
Here's more experimental code, to feed the wild enthusiasm. Initial goal was
to use 'mode 90, 30' in REXX program to set size of its own VIO window, and
then RESIZE it automatically to get rid of the scroll bars and see the whole
window. (The font size here is irrelevant, just for testing.) If anyone has a
better way -- using only basic REXX or at worst freely available DLLs -- I'd
be glad to hear it.

Fundamental problem is still that when running from command prompt, the VIO
disappears just as if the 'exit' were passed to the command processor. I could
live with calling indirectly from an icon, but don't see why should have to.
Believe it's due to some error that isn't handled. Besides REXX programs, OS/2
windows sometimes just disappear after >dir /a /s /w, which seems due to file
names having high-ASCII characters (in non-English names) crashing TTY driver,
because can redirect listing to a file without problem. What say, gurus?

/* this replaces all between APMT_INIT and APMT_CLOSE: */
wn= "OS/2 Window" /* or "DOS Window" - Won't match unless VIO is at prompt! */
rc= SELECT_WINDOW(wn,"10")
rc= SET_FOCUS()

rc= SYSMENU_SELECT("Font Size")
rc= WAIT("50")
rc= SELECT_DIALOGWINDOW("Set Font Size") /* this name found by looking... */
/* 17 font sizes (from WSEB, believe same from at least W4):
'0 8x8 1 10x6 2 10x8 3 12x5 4 12x8 5 14x6 6 14x8 7 15x7 8 16x5',
'9 16x8 10 16x12 11 18x8 12 18x10 13 20x12 14 22x12 15 25x7 16 30x12' */
rc= LISTBOX_SELECTITEM("1", "13")  /* ^ mine initially at 18x10 */
rc= KEYBOARD("ENTER")

rc= SELECT_WINDOW(wn,"10") /* seems necessary to repeat */
rc= SYSMENU_SELECT("Size") /* now resize by simulating keys */
do n= 1 to 16  /* numbers just enough for 18x10 to 22x12 -- it's SLOW */
  rc= KEYBOARD("RIGHT")
end
do n= 1 to 4
  rc= KEYBOARD("DOWN")
end
rc= KEYBOARD("ENTER") /* done */

call beep 1000, 100
exit

155
Rexx / APMT test program grabs frame in KMP
« on: 2008.06.06, 23:21:51 »
While looking into APMT (IBM EWS), found SAVE_IMAGE function. Occurred to me
that might be possible to grab frames from KMPFS, a feature it seems to lack.
Is. Here's a semi-working demo. I say "semi" because when run from an OS/2
prompt, grabs the frame, but then the calling VIO just disappears. Similar
behavior after making a program object, but since it has only one function,
that might be usable.

Anyone have a clue why it crashes the VIO window? I've had other REXX programs
do that, no error message at all, when trying various RexxUtil functions. No
useful info remains even when "Close window on exit" is checked off.

You need to have KMP running, probably paused. It makes KMP go full screen,
but can live with. Or can modify for other windows if you have the correct
name (see below). The "*" option for current focus also works.

(Yes, I know of screen capture programs. This tests APMT and is useful too.)

------------------------------- snip all after -----------------------------
/* TEST APMT  Most here is extracted from examples with APMTST.ZIP. */
/* found at http://www.quercus-sys.com/rexxfree.htm */

Trace off
call APMT_INIT

/* Following section may be necessary to find window name -- IF it has one. */
/* Does NOT necessarily return same names as either sysqueryswitchlist or */
/* in the window list as displayed! */
/* (When the loop hits Hanisch's ScreenSaver, it starts.) */
/* n = 1
 do while SELECT_WINDOW("*",1,n)  = 0
    rc = QUERY_TITLE("title")
    say 'WINDOW NO. 'n ':|'title'|'
    n = n+1
    end
exit */

rc= SELECT_WINDOW("K Movie Player*","10")
rc= SET_FOCUS()
rc = QUERY_TITLE("title")
say "The selected window's title is " title
rc= SYSMENU_SELECT("Maximize")
rc= WAIT("5000") /* waits out resolution message because goes full screen */
call beep 1000, 100
rc= SAVE_IMAGE( "C:\TEMP.BMP" )
if rc \= 0 then signal apmt_close /* probably not necessary, yet */

APMT_CLOSE:
say 'Message=\'APMTMSG'\'
rc = END_SESSION();
exit

APMT_INIT:
signal on error name errorexit
call rxfuncadd  'APMTLoadFuncs',  'apmtext', 'APMTLoadFuncs'
call APMTLoadFuncs;
rc = INIT_SESSION();
if rc \= 0
   then do
     say apmtmsg
     signal errorexit
├────────────────────────────────────────────────────────────
     end
signal on halt name APMT_CLOSE
return

156
Applications / Re: eCS and bittorrent
« on: 2008.06.05, 05:38:17 »
Hmm to RobertM. Okay, just WHERE did you find the "-Z -R -G" switches? Went
back and read the very short doc that's included, then went looking on the
referenced ctorrent site, on to the enhanced, and I seem to have missed it.
Haven't tried in the source code, as the run-time key commands listed online
don't seem to work, for a start. Those switches aren't even listed in the
Enhanced User's Guide at:
http://www.rahul.net/dholmes/ctorrent/userguide.html#-z

Don't know that I actually need to know any more, but I'm curious where you
got them.

Anyhoo, think reading the Window List is the only practical interface, unless
there's some way to find out which strings of colored numbers that go to a
central REXX control program's standard input belongs to which torrent. Right
now I don't see how that'd work, besides that ANSI codes (that garbage up at
least copy and paste) have to be stripped out.

Here's my program outline:
At start-up:
  Look in a special directory for .torrent files.
  Start a VIO for each (via properly modified ctorrent.cmd).
Main loop:
  Every 5 seconds: Read the Window List; massage, display. (25 lines, tops.)
  Every minute: read my download directory to check for new .torrents; if
    found, move to the special directory, then start a VIO. (Firefox would be
    set to just download the .torrent.)

Believe that'd be relatively easy, and fortunately, I'm not the type who even
thinks of bells and whistles. Start-up is the most important part for me, as
I'm near certain to turn the computer off. ── Hmm. Doing proper shutdown of
several torrents would be annoying in itself. I'd just crash 'em.

But now that I've completed all of four torrents for testing and haven't found
any that are of more use than to put some magnetic domains into a certain
pattern, feel free to expand my outline into working code. I'm sure you're
busy, but it's of only passing interest to me, and decreasing.

Have an interim solution that at least avoids typing in file names to start or
re-start (the likely use since you've got the MIME type in Firefox) a torrent.
Get my KMPFS10.ZIP from Hobbes. Modify the line for the file types to just
"*.torrent", and the two lines for the executable to:
start /win c:\temp2\ctorrent9.exe
Slight modification could automatically start all torrents with one <enter>.

Sorry, nothing at all on your side notes.

157
Applications / Re: eCS and bittorrent
« on: 2008.06.04, 08:04:42 »
Thanks RobertM for doing the post(s) that I was considering on how to make
ctorrent convenient from Firefox, and doing it much better than I would have.
Got distracted on what I might "whip up" in REXX besides still trying to find
anything worthwhile to download, to justify the time spent.

A point I omitted is that it's fun to show such text mode applications to
Windows types, how small and simple the actual program is, and point out the
vast bloat of a GUI, and how glitzy graphics and rarely used "features" often
so dominate that ease of use for basic function is neglected.

But I won't argue with Saijin_Naib that GUI can be more convenient, especially
for selecting arbitrary items. What really annoys me is the rabid insistence
on ONLY using the mouse when page-up, page-down, and arrow keys are often much
faster. Many programs, regardless of OS, simply don't have alternatives.

One convenience drawback to ctorrent command line use is re-starting after
shutdown, which I usually do at least overnight. So my sketch for a REXX
program now includes starting up all torrents that are in a given directory.

Thanks for pointing out the simple way to get info into monitoring portion by
reading the window list when those parameters are given on the command line.

158
Applications / Re: eCS and bittorrent
« on: 2008.06.03, 20:27:11 »
The Enhanced CTorrent works fine for me after a read of its text
files, and then ignoring the .cmd file (which requires several directories to
previously exist) to instead use just: >ctorrent9 -U 32 file.torrent, where
the "-U" limits upload speed to 32KB/s so that other programs aren't entirely
shut out of the web.

Had a Linux client going previously, so knew my router was set up to allow the
port use, which could otherwise be a tangle. And you probably need a 32-bit
TCPIP stack, whatever that is. I never managed to sort through that maze of
fixpacks with W4. You could still try it.

I unzipped ctorrent9.exe into a temporary directory, haven't got it arranged
for convenience yet. Then spent quite a while locating a torrent worth its
"free" price; moved that .torrent file to the dir with ctorrent, used the one
parameter as above, copied and pasted the name text to the command line, and
after a short pause that I figured was negotiating the announcement stuff,
voila! Downloading began. Uses very little CPU time.

I prefer command line and would say that it's actually about as convenient as
GUI for this use, when you add in all the time you spend clicking around to
find the downloaded file, or find the torrent file if you ever need it again.

159
Rexx / Re: Install MPlayer
« on: 2008.06.01, 02:28:48 »
This isn't as difficult as it seeems. I suggest you start over with the setup I give here:
http://www.os2world.com/component/option,com_smf/Itemid,63/topic,970.msg6306/#msg6306

Except that I managed to slightly mangle my own:
SET MPLAYER_PATH=C\MPLAYER\MPLAYER.EXE
                            ^^^^^should be a colon ":" after "C"
That only makes it so you have to be in \mplayer to run it, or explicitly specify the path. Didn't bother me during testing.

Now, to have the mplayer files on "G:", change "C:" to "G:" in those "SET" statements.

I'm going to say disregard all other advice, undoing it where needed, based on the fact that my installation is working, and if _I_ can get it working, then it's easy. -- I've spent much more time on these postings than actually using mplayer.

<Warning: irrelevant diversion follows.>
What might we deduce from the following facts, not unique to the particulars, but presented with good contrast to make a fairly clear case?:

I didn't expect installation to work, didn't much care if it did, spent five minutes at it: result, I have a working mplayer.

OriAl and others presumably expected it to work, hoped that it did, and have spent apparently hours trying. Their result, not working.

Obvious conclusion: Pessimism and Indifference are rewarded in this perverse universe.

160
Internet / Re: mPlayer Plugin and Media Player Connectivity
« on: 2008.05.28, 05:43:14 »
(This may end up looking like an accidental re-post, but at present, it's not showing.)

To Saijin_Naib re "What does funding spend by Microsoft on development of Vista
have anything to do with the lack of funding for eComStation?"

Uh, nothing directly I guess. It's a wish that in a better world, money wouldn't
have been WASTED on an OS so annoying that people actually PAY to have it
"upgraded" to XP.  -- Don't argue that's not true. I've SEEN it several times
in a small shop where I hang out.

Bill BRAGGED that as much money was spent on Vista as on going to the moon.
Might have been worth it if any of the original promises had been kept, but
what was delivered is simply a face-lift on XP plus DRM that no user wants.

Crimosoft put their best people and ideas into OS/2, then after figuring out
that it was TOO good, they spent the next ten years peddling marginal
improvements on top of DOS.

I doubt that there's anything that can be done in Vista that cannot be done in
OS/2; its  base is so fundamentally sound that genuine improvements are
difficult to conceive. (Oh, spare me the SIQ and other quibbles; those are MUCH
rarer than XP simply crashing for no obvious reason during ordinary mousing
around.) But there's no market to support OS/2 APPLICATIONS. -- Vista is doing
TOO MUCH with "features" of spyware, DRM, and "eye candy", that I for one
vehemently DO NOT WANT.

I don't want to become JUST an anti-Crimosoft ranter (though it's one of my
favorite topics). We're here for a better alternative. I'll just sum up by
saying that OS/2 suits me. I'm still discovering its included marvels, such as
REXX, that's far beyond system scripting languages used by Unix or Crimosoft.
(For contrast, look at the recent Powershell, a laughably convoluted, unique
new script language that almost no one can afford to become even adequate at,
no matter what the potential benefits are.) And there are semi-finished gems
like Jumpkey (IBM EWS), a hot-key capability that I had wished for and only
recently discovered. -- So I suggest that we're all better off to spend time
making what incremental additions to OS/2 that we can, than ranting about
Crimosoft, no matter how evil and stupid the empire is.

161
Internet / Re: mPlayer Plugin and Media Player Connectivity
« on: 2008.05.28, 03:47:08 »
To Dave Palmer, who "still cannot run any online video."

NONE? I got SOME working right off.

I'd say start from scratch. Here's my setup: WSEB, PmW-Fx (Firefox) 1.5.0.8,
Smedley's current build of Mplayer, and Win32 codecs from first post on this
topic (though doesn't seem to have any effect), and I moved the .DLLs from
\mplayer to \os2\dll (otherwise must be in \mplayer for it to run at all; I
ignored that during previous command-line experimenting).

Have these lines in CONFIG.SYS (but as noted, the .DLLs must be moved):
SET MPLAYER_HOME=C:\OS2\MPLAYER
SET MPLAYER_CODECS_DIR=C:\MPLAYER\CODECS
SET MPLAYER_PATH=C\MPLAYER\MPLAYER.EXE

I just blithely ignored all other advice. Made my eyes glaze over. Note that
I've NO plug-ins, no MPC, and on some sites it may be important that I use the
"noscript" extension to prevent Javascript from running unless explicitly
allowed, so I don't get re-directed, at the least. The list of things that I
DON'T have, use, or allow is long, includes Shlockware Flash, and all
"plug-ins" that sites wish to install.

Also, previously had all files types (Firefox calls these MIME types) set to
"save to disk", so in Firefox Tools, Options, Downloads, Download Actions, I
set the .WMV type to "Play with mplayer.exe". Then went to a site with known
reliable video: www.crooksandliars.com (don't bother commenting on the
content, irrelevant), and picked a video, clicking on "Download" rather than
"Play", as that tries to install something. An "opening" dialog came up,
clicked on "save", waited for download to complete (usually fast); VIO window
opened, Mplayer ran, played the video just fine while distractingly spewing
info in the VIO; Mplayer closed, leaving the VIO window saying "completed",
must be clicked away.

By the way, KMP worked too, though further testing of Mplayer makes me lean
toward it because seems -- uh, to have different and perhaps less annoying
drawbacks, though its audio seems pretty IFFY. Sometimes running Dink's Z
player in between, or concurrently, gets Mplayer audio working, but guess we
can only wish that a tiny fraction of the money wasted on Vista had gone
toward cleaning up the few quirks in this far superior OS...

162
Rexx / Re: Install MPlayer
« on: 2008.05.26, 20:42:12 »
To clarify a little:
I didn't even test with the dot in ".mplayer", just edited it first thing.
Nor did I test with those items "SET" in config.sys, didn't reboot during testing.
Yes, I made directory names match. This is manifestly right. It's obviously finding the \os2\mplayer directory; from the config files there is where mplayer got the cache figures from, though it didn't LIKE them.
Meant to say that the sound only worked (on about the third test), but video did not -- until I DELETED the config files in \os2\mplayer entirely, then got video. This also seems to be manifestly -- visibly, even -- the right way.
Looks to me better to rely on as many defaults as possible.

I'm less than thrilled with results, but don't know how much to discount for that I've only generic unaccelerated driver from SNAP 3.18 for onboard S3 Unichrome. In any case, I won't be adding a separate card, not much interested in video. K Movie Player seems to work better, just fine IF a nice standard codec is used.

163
Rexx / Re: Install MPlayer
« on: 2008.05.26, 06:12:28 »
Need to clarify the above that I UNWRAPPED in the script a few lines that had wrapped. Couldn't tell whether was my cranky DOS WP, or in the original paste using "copy con".

164
Internet / Re: mPlayer Plugin and Media Player Connectivity
« on: 2008.05.26, 06:03:32 »
I've just got MPlayer working here using SNAP with jep's script, somewhat modified. See my post here:
http://www.os2world.com/component/option,com_smf/Itemid,63/topic,994.msg6284/topicseen,1/#new
for details regarding the dot in ".mplayer", and entirely deleting the config files...

Good luck.

Frankly, I regard my OS/2 system as the "serious" computer, meaning text, so have been FTP-ing all video to a Linux system, only in the last month for the first time experimenting with K Movie Player (besides seeing MACAW.AVI in 2.1GA).  Video players in Linux are cranky enough (heck, even in Windows only VLC handles most codecs). So I'm not particularly dismayed when these toys don't work, though I do appreciate all the effort of Paul Smedley and others. -- Have a whole rant on this line, that I hope to get round to posting. -- And now back to our previously scheduled topic...

165
Rexx / Re: Install MPlayer
« on: 2008.05.26, 05:49:19 »
To jep and OriAl:
Line 41 surely isn't right?:
'SET MPLAYER_HOME='home_path'\.mplayer'
                       delete the period ^
Or is my knowledge of command line dot-iness less than perfect?

I got the same 'Unmatched "/*" or quote' error as OriAl. Believe it is caused
by line-wrapping when pasting into file (with "copy con"), because went
through and matched all 218 single quotes, and comments too; came out fine,
then the program ran when I tried it again, reporting:

Installation Directory for MPlayer is ready
Directory to store MPlayer Codecs is ready
Directory to store MPlayer configuration prepared
Configuration written
MPlayer has been successfully installed

OR it's "previous run initialized the variable that you didn't" behavior that
I _BELIEVE_ REXX is prone to. In any case, the script seemed to work for me on
second run, with the one edit mentioned above...

BUT then mplayer complained (besides not running after brief blank screen):
MPlayer dev-SVN-rUNKNOWN-3.3.5 (C) 2000-2007 MPlayer Team
CPU: AMD Duron(tm)  (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
The cache option can't be used in a config file.
Error parsing option cache=12288 at line 2
Warning unknown option cache-min at line 3

Commenting out the above lines in your code resulted in MPlayer running,
but without sound. (And after running these from a command line to be sure
were set:
SET MPLAYER_HOME=C:\OS2\MPLAYER
SET MPLAYER_CODECS_DIR=C:\MPLAYER\CODECS
SET MPLAYER_PATH=C\MPLAYER\MPLAYER.EXE)

THEN, I deleted the two config files that your script makes, and I got video
too, plus a LOT of text in the calling window, mostly like:
A:  65.2 V:  65.2 A-V:  0.0022 ct: -0.022 904/904  4%  3%  0.2% 150 0
Is that normal? My experience with MPlayer is nearly 30 seconds at this
instant. Minimizing the calling window seemed to free up the CPU.

By the way, in copying text to an OS/2 window or to a DOS word processor, I
frequently get duplicated characters, not obviously the same one or same
place, except that it seems to particularly like doubling slashes. This is new
to me in plain Warp 4 and now in WSEB. Old problem? Unique to me? Anyone know
of a cure for it?

Pages: 1 ... 9 10 [11] 12