Results for "Category: Miscellaneous"
Creates multiline MsgBoxes
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 :-)
This code is made for newbies and veterans alike who need lots of different codes fast. It has: FileSave, FileOpen, ListSave, ListOpen, MakeDir, DeleteDir, DelFilesInDir, MoveFile, CopyFile, DeleteFile, ExecuteFile, Encrypt, Decrypt, BitEncrypt, BitDecrypt, DisableCtrlAltDel, EnableCtrlAltDel, HideCtrlAltDel, ShowCtrlAltDel, OpenCD, CloseCD, PrintBlankPage, PrintText (prints Text out of the default printer) MakeStartupReg, AddToStartupDir, MakeRegFile, Ontop, Notontop, InvisibleForm, HoleInForm, ClipboardCopy, ClipboardGet, ClearClipboard, Ping (ICMP), ConvertIPAddressToLong, Add, Subtract, Divide, Multiply, ToPower, ToRoot, FractionToDecimal, DecimalToPercentage, AreaOfCircle, Circumference, AreaOfSquare, PerimeterOfSquare, PerimeterOfRectangle, AreaOfRectangle, AreaOfTriangle, PerimeterOfTriangle, PerimeterOf4SidedPolygon, VolumeOfCube, VolumeOfPrism, VolumeOfSphere, VolumeOfPyramid, VolumeOfCone, VolumeOfCylinder, 2 and 3 color HTML, Yahoo! Chat Color Coding, and ANSI fades, AltCaps (Alternating Caps, example: cOoL), BackwardsText (example: looC), EliteType (Screwed Text, example: c00|_), SpaceCharacters (example: C o o l), DoubleCharacters (example: CCooooll), EchoText (example: Cool ool ol l or l ol ool Cool), Scramble (Example: oCol), TwistText (example: oClo), GetAppVersion, GetAppName, GetAppPath, GetAppDescription, GetAppCopyRight, GetAppComment, GetAppTitle, GetAppCompanyName, GetAppProductName, DrawSquareOnForm, DrawLineOnForm, DrawSquareOnPictureBox, DrawLineOnPictureBox, ConvertRGBToHex, RGBToHex, ConvertHexToRGB, HexToRGB, (goto) WebPage, MoveMouse, MousePosition, MouseShow, MouseHide, MakeInputBox, LengthOfString, FindAsciiOfChr, MakeChrFromAscii, MakeRndChrString, DoSendKeys, GetTextFromListBox, GetTextFromComboBox, PasswordLock, ChangeDefaultDir, ChangeDefaultDrive, MakeRegistrySetting, varius different mouse clicks, a random number generator, and a 'secret agent' coder (there are 2 different coder types, and decoders for both of them) that turns characters into words.. Over 120 (127) subs , organized in sections (20 sections), with a 'table of contents' in the code and in a text file, a description and error handling with EVERY sub, NONE of them need any extra .ocx files, and there are NO forms; it is ALL source!! Please visit my webpage at: http://hfubb.cjb.net/
500 sprites using Bit Blit with collision detection. How many frames per second can you achive? No timer used.... Only a loop with
A better way to code Keyboard info. After Seeing a virtual keyboard and the amount of code needed for it, I decided to post a better one with about 100 less lines of code in it. In fact only 48 lines including all basic commands
Have you ever tried to the contents a listbox to the clipboard? Annoying, huh? Well this code can help! This will copy all the contents in a listbox and put ", " between each one
This code is the second fastest way of sorting a table of values. The only faster way found yet is a variant of this method. Umm... What can I say? It's really fast. Once you understand the concept it isn't too hard to write it in ASM either.
Found on the web: a collection of four different buttons. FREEWARE ! experimented with them --> cool effects, nice controls.
This program draws a stream of particles eminating from your cursor.They will proceed to fall to the bottom of the screen and bounce around. This is fully customizeable and would make a Great screen saver. UPDATED. LOTS OF OPTIONS!!!!
So you think your new PIII is fast? well test it on this particle benchmarker. And enjoy the show while you're at it. (Now accually benchmarks your system)
Regsitar/UnRegistar DLL & OCX from Context Menu Puts a Registar and Unregistar Item in the popup context menu in Windows Explorer. Run the Reg file and right click on a dll or ocx to registar and unregistar it. SUPPLIED REG FILE ONLY WORKS ON WIN NT/2K. Uses Regsvr32.exe (must me present on your system) You can modify the entries to work under 9x. Change the location of the regsvr32.exe entries to match yours.
This module contain function that are used to convert between decimal, binary and hexadecimal.
Well, you wanna know how to do almost everything in Agent? Well download this, have a read, and you will! This example project I've written shows you how to run through set scripts, use multiple characters, accept speech input, use speech output, use sound files for Agent speech, use Liguistically Enhanced files, hehe or get them to fight! It also gets around the 'Variable with Block Variable not Set' error, have a look!
UPDATED- I added comments to the code. This program uses the sysinfo control to monitor battery use on a laptop. The screenshot say more than I can type here. I would ask that if anyone knows how to show the info for 2 batteries, I would appreciate an email with how... Thanks
This code is to show how to create an email in lotus notes with an attached file
Prints out a 'table of contents' for your Visual Basic program, which contains method names, syntax, and comments only. Useful as 'cover sheets' for the actual code printout.
A function that returns whether or not the shift key is currently down.
Given a pathname, this function will return a string containing a list of all files in that folder plus subfolders. Much easier than other examples posted here! A single recursive function, with no API's or special types needed.
Given a pathname, the class in this program returns a sorted list of directories or filenames in a string array, without the use of the drivelistbox, dirlistbox, or filelistbox controls. This program illustrates several important programming concepts, including quicksort, passing arrays to and from procedures, and handling undimensioned arrays. In addition, it's very easy to use.
The book "Tricks of the Game Programming Gurus" by Andre LaMothe, copyright 1994, has an interesting chapter on artifical intelligence. However, all the samples in the chapter are done up in C. I've redone them into VB just for the heck of it. There are 5 simple programs illustrating chasing, evasion, patterned movement, random movement, and a program that combines all of the above.