Results for "Author: tom pydeski"
This code will load 2 excel files into grid controls and compare the contents and show the differences both by highlighting the cells in grid controls and also by listing the different cells in a third grid.
I like to listen to the GotRadio stations at http://www.gotradio.com/, but I don't like the ads constantly cluttering up the screen. This application utilizes the windows media player control to connect to the desired station. It also retrieves all of the info about the song being played and downloads the album cover picture and displays it. I also implemented some code to hook the keyboard and utilize the multimedia keys (Play, FF, Stop, etc.). There are 46 channels to choose from and the only ads are the audio/video type, not the banners from the website. Comments and ideas to improve it are welcome. I modified it to add Christopher Lord's tray icon class and to fix the unnecessary reference to X10 class.
X10 Firecracker (CM17A) PalmPad Controller submitted by Tom Pydeski X10 put out some nifty home control products that communicate over the power lines and respond to commands to turn on; turn off; dim; etc. The CM17A is an rf controlled device that receives rf commands from a remote or the "firecracker" rf pc interface and relays them to the device modules. The HouseCode can be any 1 of 16 (A through P) and each house code can handle any of 16 devices (1 to 16). Keware (http://www.homeseer.com/downloads/index.htm) had put out an open source usercontrol for the firecracker, but I changed it to make it a class module, in order to eliminate packaging an ocx with the project. I took X10's firecracker interface picture of the palmpad and added my own graphic buttons to simulate the button presses and hovering. I also added the ability to label the buttons with the device name. Additionally I found some neat code to rotate an image and implemented that in allowing the selection of a housecode via the palmpad 's rotary switch. I also added LED's for each device to indicate their on/off status and used a vertical progress bar to set the dim level. I implemented a device status for each device. Finally, I was able to figure out the all on and all off commands (which the firecracker does not support) and implemented them as well. Of course all of this is useless if you don't have the x10 hardware that it interfaces with and controls (http://www.x10.com/automation/ck18a_s_ps32.html) (They were practically giving away the firecracker starter kit a few years back.)
X10 put out some nifty home control products that communicate over the power lines and respond to commands to turn on; turn off; dim; etc. The CM11A is device that interfaces a pc to the command line protocol and also contains timers and macros. This project is a class I wrote to emulate what the keware ocx does. Keware (http://www.homeseer.com/downloads/index.htm) It can control devices in any housecode from your pc. It also monitors devices that are turned on or off from a remote or firecracker interface and raises events when this happens. The HouseCode can be any 1 of 16 (A through P) and each house code can handle any of 16 devices (1 to 16). I started out with the firecracker class I wrote http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=64719&lngWId=1 and I experimented with it and took information from the x10 protocol file I made some switches and used a vertical progress bar to set the dim level. I implemented a device status for each device. Finally, I was able to implement the all on and all off commands. Of course all of this is useless if you don't have the x10 hardware that it
WMA Tag Editor - submitted by Tom Pydeski I saw a lot of examples for editing mp3 tags, but not much to read wma files. there was one by Somenon at http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=61254&lngWId=1 Although the original author's code worked, I wanted a way to read the file without parsing through each character looking for a certain string. (I kept his original routines as reference) I utilized the class structure from InfoTag, which read WMA files, but did it in a way that would not allow writing back to the file. So I initially tried to dig into the file and try to read it in blocks. It wasn't long before I realized the structure was way more complicated than I had originally thought. I did some digging and found the attached document "Advanced Systems Format (ASF) Specification" from Microsoft. Using this as a guide, I built the structures neccessary for each header object. I spent many weeks developing this and my wife hated that I was always on the 'puter, but I wanted to finish this. It will read and write the basic tags and I put in a treeview to display the entire file structure by object. I'd like to add another flexgrid and read multiple files, but that's for later. The other thing that I had hoped to accomplish was this: When using my GotRadio submission, I found that temp files were created with the filename of the songs played. These were located in the temporary internet directory. The structure of these files is different than the structure of wma's that I had burned. I was hoping to be able to learn how to modify the temp files to allow them to be played by media player, but try as i might, when I converted the temp. file to a wma with the set structure, media player would not play it. I'm attaching one of those temp files before and after modifying it. maybe someone with more knowledge can find the errors of my way
This code will read the active titlebar height and font parameters. The Caption of the window is then centered with the date and time. I looked long and hard to try to do this. Most PC's don't use a proportional font for the titlebar and thus the amount of characters displayed depend on the size of the character (i.e. "WWWWWWWWWW" is wider than "llllllllll" in most non-proportional fonts). I found some info on the web and modified it to allow the caption to be centered in the area between the titlebar bitmap and the 3 controlboxes. The Titlebar size and the titlebar font & size can be different from machine to machine. These settings affect how much data can be displayed in the caption of the window, as does the screen resolution. I had originally tried constants based on the form width, but these were not 100%. Try changing the form size and the active title bar settings to see it in operation.
This program will save the field entry data on html web pages and will reload that data again if desired. (I got tired of filling out the same forms day after day, even with using the autocomplete for Internet Explorer.) Enter a URL and press enter to navigate there. Fill out the form and click the "Read Values" button. You will be prompted to save the data to a file (I made the web url the defult name of the file). When you navigate again later, you can click the "Set Values" and the form will be filled out after the proper data file is opened. At launch, the program reads the last stored data and puts it in at the last visited page. Re-Uploaded 1/22/2003. Fixed a few bugs and added a recent url list under the file menu.
This Code was written by Dave Andrews and modified by Tom Pydeski It is an api form with a listbox which can be used as an inputbox replacement where the user is presented with a list of choices in a listbox form instead of the standard inputbox. modifications include: made list 3d automatically size list based on the number of entries and the width of the longest entry added the keystroke capability added the option of changing the font to that of the calling form or any of its container controls that support .textheight. added double click capability to the list
My friend Carlos was after me to write something to print and save directories that he could then use to make labels for cds full of mp3s. i looked at what was on psc and found one but modified it greatly. sorry, i dont know who the original author was, but this is not even close to what he had. instead of just listing the files, the list contains the size and date of the file this was accomplished using tabs to separate the data within each list item. the tabstops then had to be set for the longest entry in each column i then added the option buttons to sort by filename; size; extension; or date. Additionally, the 10 last directories are stored as well as any additional filters for the file list. An option for displaying the file names only will use a different unsorted listbox (you cant change the sort property at run time) to contain only the file names in the order they appear in the directory (un-sorted) If a right click menuitem is added to explorer, the program can be launched to print the directory. try putting a directory name in the command line option (goto project; properties; and the make tab and put something like C:\WINDOWS\CONFIG\ in the command line arguments The original had drag and drop, so i left that in.
This code is in response to a question from armbararan, who wanted to highlight the navigation of the flex grid. I threw this together from some of my other projects as a quick example to allow highlighting of gridrow and gridcol in the msflexgrid.
Example to convert Decimal to Binary Reflected Gray Code. I did some poking around and found some info, but could not find any examples in visual basic. I took the C examples and converted them to VB. I only tried it up to a byte leve(255) Can probably easily be changed to convert integers and larger, but for my purpose, 255 was enough.
Another Method of putting a picture in a command button with style set to normal (to preserve XP skin-ability). This is in response to a posting by Abílio Rodrigues "A Command Button with Icon (XP)" at http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=57116&lngWId=1. I tried to post it as a comment on his posting, but received an email saying it did not work. So, it's easier to just upload it as a zip. This works for XP, but might work in other OS's.
'module for subclassing the DeviceChange Windows Message 'Windows sends all top-level windows a set of default WM_DEVICECHANGE messages when 'new devices or media (such as a CD or DVD) are added and become available, and when 'existing devices or media are removed. This program should detect the following: -CD or DVD inserted into drive -Floppy inserted -USB thumbdrive or external hard drive added -USB serial port added -probably a lot of other hardware changes, but I could not test a lot of others Modified to add Device Notification information about new hardware.
This one is mostly for Controls Engineers. Emerson Control Techniques manufactures Servo drives that communicate via the ModBus Protocol. This was and old GWBasic version of the protocol that I think I got from Taylor Software 10 years ago. I have adapted it for VB 6.0 (Win XP is my OS) using flexgrid to display the register contents. I also set this demo up to poll the physical I/O and velocity of an Emerson EN-208 Base drive. It can be adapted to communicate with any serial device that uses the ModBus Protocol.
Updated 12/28/2004 Added the ability to delete all values in a selected node. Also added the typedURLs key and runMRU key 'This Program will read the Recent Doc List located in the registry at: 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs 'This data is stored in a binary format, so we have to read the binary data into 'a byte array and build it into strings. 'As with all of my submissions, I have utilized code found on PSC and elsewhere 'for various functions, but the rest was written by me. 'Special thanks to Kegham, whose Winstartup 2004 project had some valuable code 'for enumerating and walking through registry keys and for some treeview pointers 'and to MrBoBo who also had some very useful code for the registry 'also to David Sykes for his XP style module that i have implemented in all 'of my projects for that XP Look 'once the key values are loaded into the list, pressing delete will delete the selected 'entry from the registry. '
This program will print text onto the Desktop Wallpaper file and make the new picture file the desktop wallpaper. The name of the wallpaper file is retrieved from the registry and the picture is loaded into an image control to resize it to fit the screen size. The image is then BitBlt'd into a picture control, where the desired message is printed to the image in the lower left hand corner. The modified picture is then saved to a temp file (so as not to modify the original file). The temp file is then set as the new wallpaper.
This code will load 2 excel files into grid controls and compare the contents and show the differences both by highlighting the cells in grid controls and also by listing the different cells in a third grid.
I like to listen to the GotRadio stations at http://www.gotradio.com/, but I don't like the ads constantly cluttering up the screen. This application utilizes the windows media player control to connect to the desired station. It also retrieves all of the info about the song being played and downloads the album cover picture and displays it. I also implemented some code to hook the keyboard and utilize the multimedia keys (Play, FF, Stop, etc.). There are 46 channels to choose from and the only ads are the audio/video type, not the banners from the website. Comments and ideas to improve it are welcome. I modified it to add Christopher Lord's tray icon class and to fix the unnecessary reference to X10 class.
X10 Firecracker (CM17A) PalmPad Controller submitted by Tom Pydeski X10 put out some nifty home control products that communicate over the power lines and respond to commands to turn on; turn off; dim; etc. The CM17A is an rf controlled device that receives rf commands from a remote or the "firecracker" rf pc interface and relays them to the device modules. The HouseCode can be any 1 of 16 (A through P) and each house code can handle any of 16 devices (1 to 16). Keware (http://www.homeseer.com/downloads/index.htm) had put out an open source usercontrol for the firecracker, but I changed it to make it a class module, in order to eliminate packaging an ocx with the project. I took X10's firecracker interface picture of the palmpad and added my own graphic buttons to simulate the button presses and hovering. I also added the ability to label the buttons with the device name. Additionally I found some neat code to rotate an image and implemented that in allowing the selection of a housecode via the palmpad 's rotary switch. I also added LED's for each device to indicate their on/off status and used a vertical progress bar to set the dim level. I implemented a device status for each device. Finally, I was able to figure out the all on and all off commands (which the firecracker does not support) and implemented them as well. Of course all of this is useless if you don't have the x10 hardware that it interfaces with and controls (http://www.x10.com/automation/ck18a_s_ps32.html) (They were practically giving away the firecracker starter kit a few years back.)
X10 put out some nifty home control products that communicate over the power lines and respond to commands to turn on; turn off; dim; etc. The CM11A is device that interfaces a pc to the command line protocol and also contains timers and macros. This project is a class I wrote to emulate what the keware ocx does. Keware (http://www.homeseer.com/downloads/index.htm) It can control devices in any housecode from your pc. It also monitors devices that are turned on or off from a remote or firecracker interface and raises events when this happens. The HouseCode can be any 1 of 16 (A through P) and each house code can handle any of 16 devices (1 to 16). I started out with the firecracker class I wrote http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=64719&lngWId=1 and I experimented with it and took information from the x10 protocol file I made some switches and used a vertical progress bar to set the dim level. I implemented a device status for each device. Finally, I was able to implement the all on and all off commands. Of course all of this is useless if you don't have the x10 hardware that it