Image Processing: Image similarity algorithms aHash, dHash, pHash
There are about 4 types of hashing algorithms: Difference Hash: DHash(Difference Hash) Average Hash: AHash(Average Hash) Perceptual Hash: PHash (Perceptual Hash) Wavelet Hash: WHash (Wavelet Hash) I...
View ArticleControl the Chrome browser with Chromdirver for web page automation
Control the Chrome browser with Chromdirver for web page automation There are a lot of similar codes, but very few pure VB ones. This is the code I used to write by referring to other people's code and...
View ArticleAutomatic mouse click operation
Automatic mouse click operation Code: Option Explicit Private Declare Function SystemParametersInfo _ Â Â Â Â Â Â Â Â Lib "user32" _ Â Â Â Â Â Â Â Â Alias "SystemParametersInfoA" (ByVal uAction As...
View Articleused HttpSendRequestEx Upload data to the web page in sections
// InternetOpen ---:InternetConnect----HttpOpenRequest----InternetSetOption -HttpAddRequestHeaders---HttpSendRequestEx Code: Option Explicit Event HttpError(Status As String) Event HttpOpen(Status As...
View Article[VB6/VBA/twinBASIC] The quickest way to the real Windows version:...
The simplest version APIs all lie unless you have a manifest. If you want to be sure you get the real version no matter what, there's various more complicated techniques. The one I had been using...
View ArticleForm & Controls Resizer (including Font.Size)
Ok, yeah, this has been done a couple of times before. But I've never been happy with what's out there. So here's my version. There's a sample project with everything in it. But I'm going through it...
View ArticleChanged Class (Keep track of the "dirty" status of your data).
Edit: I made a couple dumb errors in the Demo and fixed them. They weren't important to the point of the Demo so you don't have to download the new ZIP if you don't want to. cChanged Demo.zip This is a...
View ArticleVB6 - Add/Modify UDTs (User Defined Types) to/from a VB6 Collection (No...
Having recently encountered (again) this ancient issue of trying to add UDTs to a VB6 Collection, I have decided to take another look at it. There are several existing methods to tackle this problem...
View Articleopen regedit to desired key
regmon used to have a neat feature where it could open regedit and navigate the treeview to the registry key it was displaying. turns out Mark spun it off into its own command line utility as well...
View ArticleConvert a Number from a certain base to a different one
I share my Code, as anticipated in the following thread: https://www.vbforums.com/showthread....imal-to-binary Code: Function Convert•Num‹Num(Number As String,...
View ArticleLots of Functions to Deal with Controls
Finding the widest, right-aligning, changing their size to fit the contents of their caption or text, making comboboxes as wide as their widest list entry, etc. bControls.zip This has some...
View ArticleSome of the most concise, best code I've ever written
It's very simple and nothing ground-breaking or anything like that. It's basically search behavior. So the way it works is that there are four locations - country, state, city and postal code. I can't...
View ArticleMy CallStack Class is a mess
OK... that was click-bait. It's not a mess but man does it bring my app to its knees. For example, when I click the Communications Button (which saves whatever setting it had last such as ALL, Past...
View ArticleAll My DB Utilities (for DAO)
I love this file. I will marry this file if it will have me. I will be buried with this file. This file should have my babies. DAO Utilities.zip Edit: Of course you'll have to remove all the callstack...
View ArticleHow I enable Cut, Copy and Paste buttons and menu items
I like the way I did this. Basically it's set up on a Timer set to 250 milliseconds. So every quarter second it's getting checked. You can see the slight delay but I don't want to make the Timer too...
View ArticleMy CallStack Class is a mess (Working Demo)
CallStack Demo.zip If you have MZTools or something like it you can create a macro that automatically inserts the callstack stuff into any procedure with the correct information. I really like MZTools....
View ArticleI *REALLY* don't like the maskededitbox. So I rolled my own.
It's not nearly as functional but it does what I need it to do without having to deal with mask, format and I don't remember what else. I stopped using them long ago and don't remember all the ways...
View ArticleMy CallStack Class is a mess (Working Demo - Updated code)
============== 4-5-2024 @1755ish This is a new version of the code. It's cleaned up a lot and more consistent in the style as well as some code just being better. Same functionality as before....
View ArticleMy CallStack Class (Working Demo - Updated code (again))
OK, I found a couple more small inconsistencies, a variable that's not being used and added some frivolity for fun. The upload below is good and complete (with the exception of a counter starting at 2...
View Article[VB6, twinBASIC] Code snippet: Toggle airplane mode
Newer versions of Windows have an 'Airplane mode' toggle like cell phones that turns off all the radios, which on a desktop might only be WiFi, but if you have a Surface tablet would also Bluetooth...
View Article