Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!
Is the repar being done under the cars warenty? I thought you only got 12 months on repairs you paid to have carried out. Plus if the engine goes later as a direct result of the original problem this will not be covered by the warrenty of the repair.
Does it matter if the code generates more licence keys that are divisable by 65 than ones add up to 4095 as it appears to at the moment. I can add another small bit of randomisation to make sure it goes between the two types of key more regularly? Without working it out explicitly I think my...
:) I think it can get quite confusing when using loops, ands, ors and nots together! You often get double negatives. Like (i want it to not loop when something is not equal to something!)
When it is divisiable by 65 it drops out the loop as it is a valid licence key. i.e. i want it to keep looping while the remainder is not = 0
So while (the check sum is not = 4095 and the remainder is not = 0) then keep generating numbers.
ah ha go to line 34 and get rid of the space in
li cenceKeyPart4
so it reads
licenceKeyPart4
cutting and pasting from the form breaks it for some reason!
Dim licenceKey
Dim licenceKeyCheckSum
Dim intHighestNumber
Dim licenceKeyPart1
Dim licenceKeyPart2
Dim licenceKeyPart3
Dim licenceKeyPart4
Dim licenceKeyPart5
Dim licenceKeyPart6
intHighestNumber = 999
licenceKeyPart1 = 0
licenceKeyPart2 = 0
licenceKeyPart3 = 0
licenceKeyPart4 = 0...
Stange it is running fine at my end!
I would just ditch it and start a new file then do the cut and paste again or are you trying to run snoops code? cause it isn't VB Script so won't run in the same way.
There is probably a much more efficient way to do this using a formula to gen the number the above is crude. But I can't be arsed to do the maths to work out a formula
Stick the above into a text file rename genLicenceKey.vbs and double click. It is crude and I haven't done the bit that works out if it is divisable by 65 but it is a start :)
Dim licenceKey
Dim licenceKeyCheckSum
Dim intHighestNumber
Dim licenceKeyPart1
Dim licenceKeyPart2
Dim licenceKeyPart3
Dim licenceKeyPart4
Dim licenceKeyPart5
Dim licenceKeyPart6
intHighestNumber = 999
licenceKeyPart1 = 0
licenceKeyPart2 = 0
licenceKeyPart3 = 0
licenceKeyPart4 = 0...
Sorry that was a bit brief. It is easy to genrate a random serious of alpanumerics in any language.
i.e. using reglar expresions you could say genetare me a string wich is in the form
A34F-E34G-D789-ABEG
The hard part is the bit that checks if that is a valid licence key. You need to...