PDA

View Full Version : Detect Registry Change



andraek
11-03-2009, 05:52 PM
Sorry if this has been asked before but I have been searching for a while now and can't seem to find out how to do this.

I am trying to change my keyboard layout via the registry. Of course, the changes don't go into effect until after a reboot. Problem is, for what I'm trying to do, a reboot is too inconvenient. I have found this run command:

"RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True"

but that doesn't seem to want to update the keyboard layouts.

Is there any way to do this?
My ultimate goal is to be able to put a script on a thumb drive that I would then be able to plug in to a computer. It will then save current keyboard settings and load in mine. Before removal, it would restore the old settings.

Thanks for any help!