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 - André Heldoorn

Pages: 1 ... 7 8 [9] 10 11 ... 53
121
Applications / Re: David's Doodles
« on: September 04, 2019, 12:23:53 am »
I don't have ArcaOS, but according to an useful dump of AOS files by Dave Yeo files like \sys\icons\BIGICONS\binocular_128px.png do exist indeed.

Is this documented, for example for developers!? I don't have a clue what the default size is, nor how it's used, nor how e.g. an installer can assign a PNG file to a WPPrograsm object.

122
Thanks for testing and reporting the behavior with UNC names.

I cannot test UNC names, but there should be 3 possibilities if an UNC is \\SERVER\2019\FILENAME.CMD:

1. API returns \\SERVER\2019\FILENAME.CMD, not being a fully qualified file name for an OS/2 object
2. API returns \\SERVER\2019\FILENAME.CMD, possibly a fully qualified file name for an OS/2 object
3. API returns P:\WAN\Accounting\2019\FILENAME.CMD, certainly a fully qualified file name for an OS/2 object
4. API's input is NUL, API returns \DEV\NUL

Since I cannot test (2), checking for a ":" as a second character is the-best-of-the-rest if the file has to be real. IOW, not a device pretending to be an existing file.

123
Programming / Re: DragText & STDIN
« on: September 03, 2019, 11:31:45 am »
Rather than making a simple task pointlessly complicated, ... try this (it may not work): open DT's notebook to Setup->Reenable. Look at the entry for 'e.exe', then create a new one for your app with the same checkboxes selected.
The assumed situation and solutions are more complicated, but you had to explain how something works. The answer is "no", which is fine.

I'm not going to ask for e.g. a hidden desktop directory-file used by DT, because it should work with all versions of DT. The desktop just is the place where the user is performing a simple task, and my starting point was an user instead of a task. If trying to avoid a minor issue is pointlessy complicated, then I may like to be pointlessly complicated.

IRL there's an alternative "Save as", which is one of the work-arounds I was hoping to avoid.

W.r.t. STDIN an user could expect that the dropped text becomes the "typed" input, albeit the UI components of DT rather clearly change to a text file icon instead of text being dropped.

There is no problem, and apparently there is no good way to make something even better. Less complicated.

124
On the T450s, sound is possible with Uniaud.sys using /A:1

Certainly good enough for the tips & tricks section, but perhaps not for a promotional video. Having to edit CONFIG.SYS and hope some hardware starts working, with several restrictions and reqiurements, will confirm memories of the 90s. In that case it may even be better to buy (use) specific old hardware and pretend it's a cheap solution. The general public will expect that "everything" works, including the sound of their rediscovered DOS game. If that game is mute, then DOSBox (for Windows) may be a better choice. We can explain that 2.4 GiB of RAM is enough for everybody and everything, but then you can expect a "creative" Bill Gates' 640 KiB online comment quite soon. Collecting comments of the 90s won't be goals of such a honest video, which may be too late by now. Hopefully not.

125
Thank you, that wasn't hard to apply.

Since failure is an option, I've taken care of UNCs by checking that the 2nd character is a ":". The API does understand specs like NUL, which expands to \DEV\NUL, so if an user with a network is lucky then e.g. \\SERVER\BMP\ECS24.BMP will be converted to O:\BMP\ECS24.BMP.

126
Programming / DragText & STDIN
« on: September 02, 2019, 10:57:37 pm »
If text is dropped and the drop target is an app, then it's possible that the file created by the app will be saved in the directory of DragText. Not in the directory of the source of the text or, for example, in the desktop directory (i.e. the homre of the WPS).

Not supporting files in the the DragText directory is not a perfect option, and using <WP_DESKTOP> if the path of the output file would be DragText's may surprise an user.

Are there other options to exclude DragText input, or to avoid the use of the DragText directory? The dropped DragText file has got rather specific EAs. If the dropped file is located in DragText's directory, and the EAs may be DragText's, then use the <WP_DESKTOP>?

Rexx sample code won't be a surprise. Save, and use DragText to drop text of e.g. a CMD.EXE window on top of the icon of the sample:

Code: [Select]
/* Drop text */

PARSE ARG filename

data=CharIn(filename,1,Stream(filename,'C','QUERY SIZE'))
CALL CharOut filename

output=Reverse(filename)
IF Pos('.',output,1)>0 THEN PARSE VAR output . '.' output
output=Reverse('4PM.'||output)

CALL CharOut output,data
CALL CharOut output

SAY 'Input:' filename
SAY 'Output:' output
CALL CharOut '','Press <ENTER> to delete the output file... '
PULL .
'@DEL' output '> NUL'

EXIT

127
Is there an API which converts any valid file specification of an user to a fully qualified path. Like, assuming all are valid and the current working directory in C:\OS2:

FOO.BAR
\FOO.BAR
.\FOO.BAR
.\BITMAP\..\FOO.BAR
..\FOO.BAR
\\SERVER\OS2\FOO.BAR
C:FOO.BAR
C:\OS2\FOO.BAR

You can assume that the file FOO.BAR was created successfully earlier, by using fopen(). So if \\SERVER\OS2\FOO.BAR will never work, then you can skip that one. A Win*() API requires a fully qualified path, but an user could have entered anything that'll work with fopen(). So all I may know is "FOO.BAR".

Or do I have to check if there'a a "\". If so, "CHDIR" to it and query that current drive and directory?

128
Applications / Re: David's Doodles
« on: September 01, 2019, 07:40:43 pm »
PhotoMesa icon files, based on the embedded, original 64x64 PHOTOMESA-LOGO.GIF source file:

129
Storage / Re: How to Format a Hard Drive
« on: September 01, 2019, 12:46:07 pm »
I seem to remember that it prevents chkdsk c: /F:3 from finding anything.

Not finding anything, including but not limited to the drive itself and errors!? :P

ISTR it's documented somewhere, takes quite long, and it prevents /F:3 from reporting (and repairing) an innocent error once. Testing should be simple: format a HPFS-drive without /L and execute CHKDSK x: /F:3. I cannot find the documentation quickly (HELP xxx, xxx /?).

My OS installer may be the documentation we'e talking about, because then the setting is an option (checkbox?) which comes down to a fast or slow format. I tend to use the slow setting, which seems to be a "full" format. About 20 minutes for a 2 GiB HPFS partition.

130
Applications / Re: David's Doodles
« on: September 01, 2019, 12:33:12 pm »
I revised the qbrows to look better with a dark background. I revised the astyle giving it a bigger 40x40 icon.  Modified the Omega png 80x80 some. Modied the 40x40 and 32x32 icons in the omega icon.

Excellent; I actually wanted to mention a white background. Such a background shouldn't be required. I did delete the "shadow" of the planet, because often such a shadow doesn't look that good. I did consider to change the usual blue planet by appending the "tail" of a Q, but I think an unexpected Q-shaped may look weird.

Perhaps I should have changed the color of the Omega icon, because e.g. folders are yellow too.

W.r.t your archive there were still 2 files without an *.ICO extension. "DIR *. /s" should find those files with a missing dot.

At the moment text2pdf, of my "text2pdf (drop target)", is "under construction". To OS/2'ify it, including possibly using a part of a rather basic PDF-icon of a Windows 3.x-distribution of about the same original package. Our lazy ports are iconless Unix utilities, and tend to use STDIN and STDOUT.

131
Applications / Re: David's Doodles
« on: August 31, 2019, 09:54:44 am »
QBrows (QBROWS.EXE)

Omega (OMEGA.EXE)

"Solved". OS/2 icon file for QBrows, based on original source file LOADED.PNG.

"Solved". 80x80 PNG file and OS/2 icon file for Omega, based on a character.

132
Cheesy, but TOP 10'ish click bait (TOP 10 classic DOS games, TOP 10 best apps, TOP 10 productive tips & tricks, TOP 10 Windows 3.xx apps, ...).

133
Applications / Re: David's Doodles
« on: August 30, 2019, 02:11:24 am »
Artistic Style (ASTYLE.EXE)

"Solved". The attached file AStyle.ICO file is based on original, simple 32x32 and 16x16 icon files of Artistic Style (Automatic Indentation Filter for C , C++ , Java Source Codes). Sizes 40x40 and 20x20 share the same images, but with a transparent border.

134
Applications / Re: David's Doodles
« on: August 29, 2019, 02:00:38 pm »
FWIW: the "About"-dialog of QVV shows both the credits of the assumed source of the image and the full image. The image "Green Woman", by Valentina Kallias. I've used the original icon file, so there won't be a need to repeat those credits and the permission. I've used the icon; not the original copyrighted image. Users of QVV may have it installed anyway.

135
Applications / Re: David's Doodles
« on: August 29, 2019, 12:23:25 pm »
128x128 days-section copied, adjusted 128x128 image resized to 80x80, 128x128 days-section pasted on top of that 80x80 image.

This won't work with 40x40, because then the red bit would become too large to be able to almost recognize the days. Too... many... details.

And a "fun fact": none of my WPS-installed ported apps with "PNG" in the name of the app have an original PNG icon.

Pages: 1 ... 7 8 [9] 10 11 ... 53