ObjectDRM Wiki
Brought to you by:
kamcio1
It's very easy!
First, create in your IDE new Console app.
Next, add the .jar to your project.
Your code:
:::java
package keygen;
import O_DRM.GenerateSerial;
import O_DRM.ODRM_ValueLengthException;
import java.util.Scanner;
public class Keygen {
public static void main(String[] args) throws ODRM_ValueLengthException, InterruptedException /* Java is pedantic... */ {
Scanner Input = new Scanner(System.in); // We'll use it for getting input.
System.out.print("Min: "); int Min = Input.nextInt();
System.out.print("Max: "); int Max = Input.nextInt();
System.out.print("Spaces: "); int Spaces = Input.nextInt();
GenerateSerial GenS = new GenerateSerial(Min, Max, Spaces);
GenS.Generate();
System.out.println(GenS.Serial());
Input.close();
}
}
The function Generate() clears the GeneratedSerial variable, so you can use for to create more serials.
Supported in: 1.0