|
-
Nov 27th, 1999, 11:58 AM
#1
Thread Starter
Member
I need more help The run list such as when you go to Start->Run, (hkey current user\software\microsoft\currentversion\exporer\runmru) is stored in a funky format, any programmer can glance at it and see how it works, but problem is, i cant get this code to work properly:
(i suggest you visit that key before looking at this)
nDex = Asc(Right(MRUList(0), 1)) - 96
MRUList(nDex) = txtApp & "\1"
MRUList(0) = Right(MRUList(0), 1) & Left(MRUList(0), Len(MRUList(0)) - 1)
Stry = MRUList(nDex)
SaveRegistryString HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU", Right(MRUList(0), 1), Stry
Stry = MRUList(0)
SaveRegistryString HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU", "MRUList", Stry
This works on the fact that a small a is chr(95), it subtracts to get the index in MRUList.
What it does, is if the user runs something that isn't already in the list, it's supposed to replace the last index, the entries are contained with MRUList(1 to 26), the list of entries are contained in MRUList(0), with txtApp, then take the last letter of MRUList(0) and place it in front, then save the changes. It is saving it wrong, and i dont know what the problem is. I spent a half hour to 45 minutes and only made myself want to shoot the people who's idea it was to write it like this. You don't have to edit my code, any cleaner home-made code will work fine.
------------------
-Mystiq
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|