Is it possible to 'apply' a registry change without rebooting?

8

I have a new mouse - roccat kova. It's good but one problem is that mouse settings get reset to default whenever I turn my computer off.

I am able to find out how to actually make the registry changes using the windows scripting host so that I can set it as a startup task each time windows loads, but this leaves an obvious problem - as far as I'm aware registry changes usually need a reboot.

Well a reboot is just going to undo the changes so I'm back to square one.

Is there a way (preferably in script, so I can automate it) to change registry settings and have them be applied to the device they correspond to in the current session? I want to set mouse sensitivity to 6 (from the default 10) and swapleftrightbuttons to 1*

(I know the roccat has a built-in swap buttons feature, but that also swaps the side buttons - I don't want that)

MrVimes

Posted 2010-08-25T13:53:36.547

Reputation: 1 255

2Wouldn't you rather find out why the settings keep getting reset? – Ignacio Vazquez-Abrams – 2010-08-25T13:55:49.087

Apparently it's a known fault with this brand of mouse. so rather than waste my time with their support I decided to try and 'solve' it myself. – MrVimes – 2010-08-25T14:16:58.403

having said that, I have just emailed them. – MrVimes – 2010-08-25T14:31:08.390

Answers

3

Changing registry values does NOT require a reboot, they are "applied" immediately. Unless some program is reading these values at boot, there's no reason to reboot just for changing a registry value.

Bob

Posted 2010-08-25T13:53:36.547

Reputation: 214

Are you sure about that? Why does every website that documents changing a value say reboot when the change is made? I know that changes are applied to the registry itself, but the changes are useless unless the thing they refer to actually changes. When I change the settings I refer to in the question nothing happens. The mouse keeps its incorrect settings.

The 'reason to reboot' is to have the changes to the registry apply to the device they correspond to. – MrVimes – 2010-08-25T16:18:39.623

@MrVimes: Bob is absolutely correct. This means Mouse settings must be reading the registry at boot. You could try plugging the mouse into a different port to force it to recognize the mouse again which may read the settings. You could also try disabling and re-enabling the mouse. There is no reason for the mouse to regularly read the registry settings... it just reads the settings once when it is first loaded, so your only option is to do something that might get the mouse to re-read those settings. – Jarvin – 2010-08-25T16:24:50.180

1I know bob is correct. I am implying that he is missing the point. The point is I want to force windows to 're-initialize'. changing the settings manually in cp is easier than unplugging the mouse and plugging it back in. That also misses the point. I am looking for a way to solve this problem in code so that I can forget about it and not have to 'fix' the settings every time I turn my computer on. – MrVimes – 2010-08-25T16:27:43.087