![]() ![]() ![]() Now we can put the pieces together and write our main, which: As with the subkey search, for the values until generating a WindowsError at the end of the list. ![]() as soon as it finds it, it prints out the value and index of the corresponding subkey. The method iterates through the list of subkeys and for each subkey it searches for the value “DriverDesc” in a nested loop. Now a problem arises, it becomes difficult to know which interface is of interest and to avoid complicating our lives, we are going to make the choice “more manual”, but to do this we need a method that looks for the description (found in the DriverDesc value of each key) and shows it to us so that we can select the right interface-index to work on, so let’s look at this method! def print_driver_desc(subkeys):įor k, i in zip(subkeys, range(len(subkeys))): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |