Jump to content

Change registry and add random number


Recommended Posts

Hello guys, could someone help me do a script to EDIT a regedit key and add a RANDOM value to it?

-EXAMPLE of a random key with random value-

HKEY_CURRENT_USER\Console   String name: colortable00                type: REG_SZ             value: 233        <- I want change that 233 example value to a random generated number like 983, 237 etc any number

Link to comment
Share on other sites

15 hours ago, gatt said:

How can i add random just to exaclty numbers like random (6000,7000,8000,9000) not 6000 to 9000 but just those numbers

How about this?

Local $randIndex = Random(0,3,1)
Local $numArr[4] = [6000,7000,8000,9000]
RegWrite("HKCU\Console", "colortable00", "REG_SZ", "Intel i" & numArr[randIndex] & "HQ")

 

UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...