Hi. New here so apologies if this is posted in the wrong place.
I've been searching for over a week now for an answer to this problem but have yet to find one that works.
I have a need to change the mouse settings quickly depending on which PC/Laptop I'm working on because
I find it difficult to see a white small cursor on screens. I want to be able to change it to BLACK and a size of 2.
The size I am able to change but the colour I can't. I'm running XE8 and compiling on 32bit platform.
The code I'm trying is as follows...
Try
MyReg := TRegistry.Create;
MyReg.RootKey := HKEY_CURRENT_USER;
if not (MyReg.OpenKey('\Control Panel\Cursors',False)) then
begin
MyReg.OpenKey('\Control Panel\Cursors',True);
// tried this and it fails
MyReg.WriteString('(default)','Windows Black');
// Also tried this which also fails
MyReg.WriteString('','Windows Black');
MyReg.WriteInteger('CursorBaseSize',48);
end;
Finally
FreeAndNil(MyReg);
End;
I'm hoping my quest ends here... Thank you all in advance...