Index of /lib/soft/win32

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   - Go Up
[   ]increment.exe 2026-07-09 07:20 8.5KWindows Executable
[   ]Typewriter.exe 2026-07-19 17:37 15KWindows Executable

Increment

Prints large incrementing numbers every run

Command summary:

increment [<number>] [<filename>] [/q]
<number>
A number to jump to. It will override the default (1) and the value in the file.
<filename>
A name of the file that stores a current number. Defaults to 'increment'.
/q
Skip waiting for a key to be pressed. Should be useful when you wan to watch numbers go off.

Rollover = 4š294š967š295;

This console application increments numbers every time it is run. The first time it is run, it creates a file that will keep track of numbers and starts from 1. Afterwards every subsequent run it'll read a number from the file and increment it writing it back.

If necessary, you can pass a number that you need to start from. It'll jump to the number specified. You can also override a file used to keep track of numbers. It can be useful if you need to keep track of multiple incrementing numbers. If you however need to start from 1 again, you'll have to delete the file with a number to be reset.

What are those numbers? It can be that serial number of a video that you do every day. It can a number of a yet another customer that you ought to record. You can run it in a looped batch script that'd wait for each time you press any key until it increments a number again. You can run it in a looped batch script that doesn't wait until you press a key -- just watch the number go up! Windows NT won't actually write to disk every single time a number is incremented.

Typewriter

This program was created as I kind of way to practice the C programming language and try to make something out of the Win32 API as well. Microsoft Visual C++ 4.0 uses the best help system Microsoft ever made, and provides complete reference material that's searchable in all kinds of ways such as by topic. And the API is already providing tools for about everything you can think of. Of course it has its flaws, we can't at all strive for perfection, but out of what was present here I wrote a program that uses Win32 console services to allow you to type anywhere on your very own exclusive buffer, and better yet with colour.

Here are the controls.

Move around the buffer by using LEFT, RIGHT, UP, and DOWN arrows. You can move the cursor by clicking with a mouse in a desired position as well. When you use LEFT and RIGHT arrow keys, your horisontal position will be remembered.

Typing characters is done just like anywhere else, by pressing regular buttons. ENTER will return you one line down, but at a column where you last step into by using LEFT and RIGHT keys.

Backspace will move the cursor back for you to write over the characters later. Pressing SHIFT will erase characters in advance. It doesn't affect the currently remembered column.

DELETE key erases a character at a cursor.

HOME and END keys move the cursor leftmost or rightmost on the same row respectively.

TAB moves the cursor among every 8th column. Normally forward. With SHIFT, backward.

ESCAPE will exit the program immediately.

It also recognises a few keystrokes with a CTRL or ALT. CTRL+END will erase a row starting from where the cursor happened to be all the way to the right. CTRL+PAGEDOWN will erase everything to the right and below the cursor.

The ALT key currently manages buffers. Pressing ALT with keys 1 through 0 will switch you to different buffers. If a buffer doesn't exist, it's simply created. Holding SHIFT while switching will cause the program to destroy an existing buffer and create a new one. ` can briefly show you your command prompt. Press any key to return. Hitting ALT+- and ALT+= will enter a Save To/Load From routine which lets you use buffer data on mass storage devices.

The colour can be set by pressing F1 to F8 function keys. BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, YELLOW, WHITE correspond to every key in this very order. SHIFT will selected a hightlighted version of a colour. CTRL will change the background instead of foreground. All subsequent writing will use those colours. So far, there's no means implemented to allow changing only characters or colours independently.