Category Archives: Visual Basic 6 (VB6)

Visual Net Send

This allows a user to send an instant message to other users on a network. It includes storable “mailing list” capabilties, customizable message “macro” buttons, and an optional customizable message header. Original Author: Donald Olson Inputs Once the program is set up, a user simply selects a predefined recipient from a pull-down box, types in a message, and presses… Read More »

A ‘Dummy’ File Generator

generates a ‘dummy’ file which can be any type and any number of kilobytes. 110% commented just like my code ‘A+ Secure Delete’. purpose is to generate files, so not much of a purpose. i just saw it in a couple of hacking/security programs and thought i’d try it. Original Author: Im_[B]0ReD Code Function GenerateDummyFile(Path As String, LengthInKB As… Read More »

A substitute ‘FileCopy’

i’d imagine this has been done before, but if it has i haven’t seen it. all it is is a substitute for the FileCopy statement. copies a file byte-for-byte to a new destination. 110% commented just like ‘A+ Secure Delete’ And ‘A “Dummy” File Generator’ (both by me). well hope you like this. Original Author: Im_[B]0ReD Code Function CopyFile(srcFile… Read More »

CTray

With CTray you can add/remove/change one icon to the System Tray. All you need to do is add CTray to your project and one picture box to your form, and you’re done! A sample project is included. Original Author: Alexandre Wendt Shima API Declarations Private Declare Function Shell_NotifyIcon Lib “shell32” Alias “Shell_NotifyIconA” (ByVal dwMessage As Long, pNid As NOTIFYICONDATA)… Read More »

Mouse Simulator

This program simulates mouse events. It can, left click, right click, pause between events, and you can easily make it double click too. It works by using an action list (listbox), the user inputs a bunch of actions that they want to perform, then the program does all the actions in the list for a specified amount of… Read More »

Has… String Functions

This is a series of Has.. Codes. It will search a textbox for the following: Lowercase letter, Uppercase letters, Numeric Characters, and Accented Characters. So, if it has lowercase letters or something, it will display a message box. this is a good example of how to use for..next loops, ASCII codes and the Instr Function, then again, this… Read More »

Simple AI Examples from LaMothe’s Book

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… Read More »

Freeze a computer!

Ever want to freeze a computer? Well, here is some code to do it. It manipulates the API ‘setparent’ Original Author: Brian Molidor Side Effects Well, Duh. your computer will freeze Code Public Declare Function SetParent Lib “user32” Alias “SetParent” (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Longfunction freeze_computer(frm as form)call SetParent(frm.hwnd, frm.hwnd)end function

Autotype Combo Box

This code was taken from O’Neil. It searches a combo box as the user types. O’Neil’s code was modified to use the SendMessage API to search the combo box, which made it much faster. This is very fast, even with thousands of records in the combo box. Thank you O’Neil for the idea, and the well commented code!… Read More »