STUSK (Stupid site keeper)

Share your advanced PureBasic knowledge/code with the community.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper) *UPDATE*

Post by Fangbeast »

Current link in first post:

Some minor changes that needed a lot of work.

Added. A menu. Someone complained that there are no professional programs without menus. My programs are not professional but I added the menu in to satisfy people. My wife said it was a good idea so I did it for her mainly.

Added: User defineable keyboard shortcuts. A default set is written to a new INI file on program startup and they are used until you go into the KEYLIST() procedure and define your own and save them. I haven't had enough time to finish the save procedure yet (EVIL GRIN). Oh, okay, tonight then!!

Added. When you formerly pressed ALT +P to hide the password/key field from casual passers by, I didn't add the ability to hide the serial/name field. Added!! Don't know what I was thinking.

**To be done** The about window isn't finished and there is nothing in the help menu, the save shortcuts screen is coming.

**Notes** Thank srod for the code to get the key text from the keyboard shortcut constants and the logic instruction and fixes, I couldn't have done it and he has saved my bacon a thousand and one times.

The advantage of user defineable shortcuts has been put into the menus so that they dynamically get generated from the loaded shortcuts (normal and popup) each time they are changed.

**Addendum** Have a look at srods, NetMaestro's and rsts's solutions to these ideas in their relies to me in another forum post. Each one has their advantages and all are worth looking at.
Last edited by Fangbeast on Fri Mar 05, 2010 2:00 pm, edited 1 time in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
HeX0R
Addict
Addict
Posts: 1187
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: STUSK (Stupid site keeper)

Post by HeX0R »

404 Error...
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

HeX0R wrote:404 Error...
Bugger!! Lemme see....

Silly me, made a simple syntax error, left off a 0 in the version number.

Try this one. I am about to upload the changes shortly anyhow if you can wait 15 minutes?

Current link in first post:
Last edited by Fangbeast on Fri Mar 05, 2010 2:00 pm, edited 1 time in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

Okay, couldn't help myself and had to finish it.

1. You can now save the changed keyboard shortcuts
2. The main and popup menus have their shortcut text reloaded after the changes.
3. I added in the usual crappy about screen that I use:):)

Current link in first post:

Hope this works now!!!
Last edited by Fangbeast on Fri Mar 05, 2010 2:01 pm, edited 5 times in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

*Edit* Last minute change of NetMaestro's coded modded by srod and added in.

Current link in first post:
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

SiteList changes

DELETE records

Changed: You can now multiselect records for deletion. Was a single record previously

CLIPBOARD copy

Changed: You can now multiselect records for copying to the clipboard. Was a single record previously

Changed: Updated the clipboard text labels for the copied data. I need a better layout.

FORMS Changed

Changed: The forms have been updated a little, including orientation on the data form. I put in a text logo placeholder with my standard label.

Changed: The About screen is a little larger to accommodate more waffling by authors.

CODE changed.

Changed: Exchanged the category and notes fields around, more logical for some purposes.
Updated: All procedures with the category/notes swap around have been updated
Changed: There was leftover code from the window callback that was inherited. Removed.
Changed: MultiSelect flag added to master list.
Changed: Some status messages were just not quite right. Fixed.

MISCELLANEOUS

Added: Forgot to include the "Expat XML parser license.txt" file before. Included.
Added: More comments to procedures. As time permits, I will try to comment more fully.
Added: Two missing tooltips from the data form
Added: The 'AboutSiteList.rtf' that gets included into the program for your about screen.

Current link in first post:
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

New version, nothing special. Please note that this is now an EXE only version. There are separate links to this exe and the source to the previous versions in the first post (I think) and on my web site.

A few years ago, someone asked me for some simple program locking and I didn't know how to do it. A friend asked me two days ago and I still didn't know how to do it so I asked and AR-s kindly showed me a working example.

1. Version incremented to 01.00.00

2. When first run, checks if there is an MD5FingerPrint stored in the INI file and if not, up pops a password request screen. Password cannot be empty and must be between 8 and 25 characters (Don't howl at me, that's what my friend wanted!). Program won't allow you to run it without one.

You can press ESCape to exit out of the password screen and the program will end.

3. Press ALT + E to edit the currently stored MD5FingerPrint. Same rules for length and validity as in point 2. You cannot write in the new password until a password match is achieved. Once your old password matches, you can then enter the New Password field and type one in. Same rules for length and validity for new password as in point 2.

4. Press Alt + L to minimise the program to the system tray and lock it. Click on the tray and the password request screen will pop up.

5. The Password Lock and edit shortcut keys have been added to the editable shortcut keys list so if you don't like them, change them!!!

**Note** Please note that passwords are never stored in the INI file, or the program, they are merely an MD5FingerPrint generated of the password. If you forget your password, just delete the INI file and a new one will be created and a new password requested. No big deal.

I have about as much chance of putting in real security as srod does of cleaning his festering, steaming, decaying underpants collection!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: STUSK (Stupid site keeper)

Post by Perkin »

I used a simple password 'abcdefghij'
The password is not accepted.

One thing you might want to add, when entering the password have another field with the same password for verification.
%101010 = $2A = 42
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

I used a simple password 'abcdefghij' The password is not accepted.
Hello Perkin. I just tried your password and it was accepted. But, I did find a bug in one variable when I type in a password after I unlock the program. Fixed. Will upload later tonight.
One thing you might want to add, when entering the password have another field with the same password for verification.
You are talking about the unlock password screen and the initial password screen right? My friends and my family all vetoed the idea and I can't fight them all, they are tougher than I am!!!:):):) I was going to do it and they shouted me down!!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: STUSK (Stupid site keeper)

Post by Perkin »

Typing the password to unlock again was what I meant.

Ask your friends/family would they rather type one password twice and have it confirmed and be sure it's the correct one, or type it once and maybe have a mispelt password which they would then be unable to enter again (unless they mispelt there password wrong the same way again).

:lol:
If they still disagree, Do it the way you want, and blame it on srod.
/ :lol:
%101010 = $2A = 42
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

Typing the password to unlock again was what I meant.
Thought so. I had a huge editing session for the last two days adding all this stuff in and changed so many variables that I was sure I had missed one and I had.
Ask your friends/family would they rather type one password twice and have it confirmed and be sure it's the correct one, or type it once and maybe have a mispelt password which they would then be unable to enter again (unless they mispelt there password wrong the same way again).
I asked my friend (Who is one of the top accredited Toshiba laptop techs in Australia) and he said "Hell no, leave it alone damnit!"

I asked my wife who is a legal P.A. with 30 years experience and she said if I did, she would hurt me, a lot.
If they still disagree, Do it the way you want, and blame it on srod.
I never do things I want as everybody bullies me into writing things their way so I always blame that festering pile of cow manure srod!!!

/me waits for a messy, squishy death at the hands of srod's underpants.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: STUSK (Stupid site keeper)

Post by Perkin »

:lol: :lol: :lol: :lol:
%101010 = $2A = 42
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: STUSK (Stupid site keeper)

Post by srod »

hahaha... no good fangles, now that my old underpants have your scent you are a soon-to-be dead man! They charged out my door, molested the poor old post woman, beat up a couple of hoodies and the last report put them at southampton docks where they hijacked a tramp steamer heading to Australia.

Say hi to them please when they turn up at your door and for God's sake don't feed them any meat! Your best bet is neat Scotch, a bottle or two might disorientate them enough that they might forget why it is they are there?

Whatever you do, don't plead for your life. That will only inflame my old underpants further.

Please ask them to return home when they are done as it is rather cold without my underpants right now!

:)
I may look like a mule, but I'm not a complete ass.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

hahaha... no good fangles, now that my old underpants have your scent you are a soon-to-be dead man!
Aha!! I represent that inflammation!!! I am not a man, I am a freshly frotted ferret sir!
They charged out my door, molested the poor old post woman, beat up a couple of hoodies and the last report put them at southampton docks where they hijacked a tramp steamer heading to Australia.
A tramp steamer?? is that where all your tramps went, steaming along? Did they learn to steam from your steaming underpants collection????

They used to be my nicely no-steaming tramps till you abused them with that vaseline and the celery stick you sick, twisted pervert!!
Say hi to them please when they turn up at your door and for God's sake don't feed them any meat!
Why don't you tell me these things BEFORe they damned well turn up?? We bought fresh meat at the market and they were consuming it like rabid politicans at a bank opening with coin freebies!!
Your best bet is neat Scotch, a bottle or two might disorientate them enough that they might forget why it is they are there?
The only neat thing around here are my turned gerbil collection, drunk on soy milk and milo. And I don't why I am here, so how can I confuse them??
Whatever you do, don't plead for your life. That will only inflame my old underpants further.
If you need advice to stop your underpants from further inflaming, I suggest to cut out the quadruple hot indian curry. My worthless life isn't going to get them to even phlegm in my general direction!
Please ask them to return home when they are done as it is rather cold without my underpants right now!
Hell no, that's an image I didn't need, seared into my retinas for all eternity!!! I will send back self welding concrete undershorts for you now!!!

Gasp!! Gah!!! Aaarrghggh!! Ahhhhrrrrooogah!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: STUSK (Stupid site keeper)

Post by Fangbeast »

Perkin wrote:Typing the password to unlock again was what I meant.

Ask your friends/family would they rather type one password twice and have it confirmed and be sure it's the correct one, or type it once and maybe have a mispelt password which they would then be unable to enter again (unless they mispelt there password wrong the same way again).

:lol:
If they still disagree, Do it the way you want, and blame it on srod.
/ :lol:
I'll probably make a separate version with the extra fields and still blame srod!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply