Results for "Category: Miscellaneous"
Let me intoduce you to Langston's Ant. its an interesting demonstation of somthing called 'emergent behaviour'. Imagine a large surface made up of square, white tiles with an imaginary ant somewhere around the middle. The ant follows two very simple rules. The first rule states that if the ant is on a white tile, it turns black, and the ant then moves foward one square and turns left and continues. The other rule is, if the ant is on a black square, the ant turns it white, then moves foward and to the right and continues. When the ant starts to move, the movement appears random. At around 10,000 moves it suddenly switches to a fixed and repeditave pattern of movement that it wont deviate. Even if the surface is seeded with black squares, the result is the same, but the number of moves will be more. You will find that in all instences the same final fixed pattern is acheived. So far, no one has come up with mathematical proof that this will always be so. * for versions earler than VB6, delete the private from the sub to get it working.
This is a Syntax Colorize Module, it is very fast and colorize only the visible text in a RichTextBox. Syntax: VB (+ VBScript, VBA), C, C++, Java, JavaScript, Html (but not so well) and other languages
Convert any bitmap (16 shades of gray) to text (*.WRI). Code is very simple... it reads picture loaded in picturebox and then converts pixel by pixel to ASCII code...
I made this one day when I was bored. It started out as a 3d graphics editor thing, but now it is what you see. For those of you who want to try it, you can easily texture each polygon to make it a rippling bitmap... also lots of fun.
This file gets many files and adds them to ONLY one file!!! It looks like WinZip Self Extractor!! Please vote no matter bad it is! I need to know how good I am on these:) Report any bad bugs! I give this code to anyone who wants to continue this program! Don't lose it! :-)
This code shows the basic function of the HScroll and VScroll bars.
This is a Complete INI code to manipulate INI files. With Source to see how it was done. The simple functions are writeini and readini Easy, Anyhelp just post a message :-)
You choose how many lines, you add the text and that's it!!! A great AboutApp with a cool effect "FadeAway" when the text is closer to the end!!! Full Comments for every command! Only a few lines of code!!!
I'm re-posting this because I've fixed a few minor things and made a few minor improvements. This demo runs at about 70 fps on my Pentium 3 450mhz. One executable runs in a window, the other runs fullscreen. It is a simple textured tunnel effect. The texture is wrapped around the tunnel and the bitmap is scrolled to simulate motion through the tunnel or rotation in the tunnel. The code involves methods that provide for very fast graphical manipulation, including lookup tables with mathematical formulas and pointers to a bitmap. The code includes gaussian blurring to smooth the texture and pointers to quickly change the screen. You can change the tunnels texture in the code. To exit the program, double click on the screen. Please vote for this project and leave a comment! I don't care if you give it a bad vote, just vote what you think... I really like to see what people think of it in general.
Simulates a working VCR, is pretty pointless but im submittin it cuz i like the effect i had created with the fading labels, which i did in such a small amount of code.
Allows flicker-free, gradient scrolling credits to be added to your program.
This code is a template for any screen saver that you wish to create, with features like config and password dialogs, preview screen, and more! Also, this code will automatically compile to the C:\Windows directory (directions for changing this directory are in the text file if C:\Windows is not your Windows directory). If you like this code, please vote for me.
Just Like Winamp Spectrum. If anybody knows how to read data from sound card i.e the pectrum please tell me [email protected] icq # 24294947
Randomly pick any word or number from a listbox.
This code shows how to move an object along exact angles using trigonometry. I made it after I download a sprite that could face 32 different directions. Instead of doing some complex movement function like I'd done before, I made this technique. Now all I had to do was increment a variable by 11.25 (360/32) I am sure that I am not the first at doing this, it's just that I had never seen it on the internet before so I thought I would put it up and help all of those who could use it. I just put it into a simple project where you drive a tank around. The project could be used for a game too, if you want, e-mail me and I will send you the better graphics, the ones I used are shrunk and 8-bit instead of 24. Anyways, download the code and enjoy, all feedback is welcome.
Another SMTP Emailer, but this has some nice enhancements. Let's you mail to multiple addresses. Does not relay through SMTP Servers. Get's MX Records in email addresses and contacts the Mail server directly. Is event fired so there is not a lot of built in waiting and it emails to multiple address with multiple winsocks. There's some code here from several other programs on PSC. Especially the MX Record Lookup and getting the DNS server info. Thanks to all who contribute. I put this together for work I'm doing and I thought I'd pass it on to others who may need the same things. You'll notice that you can just add this form to your project and have instant ability to email by calling the exposed sub routine in the form. Look at the main sub in modMain to see how you can do this.
This will convert your VB6 Code to .NET code, Currently it only supports conversion of the Form Code. Soon I will add support for the Other windows Controls also.
An alarm clock which you select your own .wav, .mp3, or .wma file to be the noise of the alarm! PLEASE VOTE EVEN IF YOU DONT LIKE IT!!!!!
This program doesn't do much (displays memory usage percent) but it does include 3 useful modules. The first one allows you to set a window to always on top by suppling an hWnd value. The second allows you to move a borderless window. The third gets the memory status of the computer. Line by line commented. Please rate on code structure, not application functionality. Thnx!
This demo application demonstrates the use of a Custom Tooltip Class supporting square and ballon style tooltips, centered at the corresponding control or at the mouse pointer hot spot, with or without title. Individual back- and forecolors are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. The code is easy to follow and well documented. And on top of that the class is very easy to use. Check it out, download is only 6.4 kB. (Sorry the screenshot didn't come out very well)