Skip to content

Commit 5caf1d5

Browse files
committed
Fixed Cursors function
1 parent d80f900 commit 5caf1d5

File tree

8 files changed

+314
-295
lines changed

8 files changed

+314
-295
lines changed

src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4234,7 +4234,7 @@ function AeroShaking
42344234
https://www.deviantart.com/jepricreations/art/Windows-11-Cursors-Concept-v2-886489356
42354235
42364236
.NOTES
4237-
The 09/09/22 version
4237+
The 21/05/23 version
42384238
42394239
.NOTES
42404240
Current user
@@ -4320,7 +4320,7 @@ function Cursors
43204320

43214321
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force
43224322

4323-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursors Dark HD v2.2 by Jepri Creations" -Force
4323+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursors Dark Free v2.2 by Jepri Creations" -Force
43244324
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\working.ani" -Force
43254325
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Arrow -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\pointer.cur" -Force
43264326
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name ContactVisualization -PropertyType DWord -Value 1 -Force
@@ -4332,8 +4332,10 @@ function Cursors
43324332
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\beam.cur" -Force
43334333
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\unavailable.cur" -Force
43344334
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\handwriting.cur" -Force
4335-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\person.cur" -Force
4336-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\pin.cur" -Force
4335+
# This is not a typo
4336+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\pin.cur" -Force
4337+
# This is not a typo
4338+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\person.cur" -Force
43374339
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\precision.cur" -Force
43384340
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force
43394341
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\move.cur" -Force
@@ -4343,30 +4345,31 @@ function Cursors
43434345
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeWE -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\horz.cur" -Force
43444346
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name UpArrow -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\alternate.cur" -Force
43454347
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Wait -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\busy.ani" -Force
4348+
43464349
if (-not (Test-Path -Path "HKCU:\Control Panel\Cursors\Schemes"))
43474350
{
43484351
New-Item -Path "HKCU:\Control Panel\Cursors\Schemes" -Force
43494352
}
43504353
[string[]]$Schemes = (
4351-
"%SystemRoot%\Cursors\W11_dark_v2.2\working.ani",
43524354
"%SystemRoot%\Cursors\W11_dark_v2.2\pointer.cur",
4353-
"%SystemRoot%\Cursors\W11_dark_v2.2\precision.cur",
4354-
"%SystemRoot%\Cursors\W11_dark_v2.2\link.cur",
43554355
"%SystemRoot%\Cursors\W11_dark_v2.2\help.cur",
4356+
"%SystemRoot%\Cursors\W11_dark_v2.2\working.ani",
4357+
"%SystemRoot%\Cursors\W11_dark_v2.2\busy.ani",
4358+
"%SystemRoot%\Cursors\W11_dark_v2.2\precision.cur",
43564359
"%SystemRoot%\Cursors\W11_dark_v2.2\beam.cur",
4357-
"%SystemRoot%\Cursors\W11_dark_v2.2\unavailable.cur",
43584360
"%SystemRoot%\Cursors\W11_dark_v2.2\handwriting.cur",
4359-
"%SystemRoot%\Cursors\W11_dark_v2.2\pin.cur",
4360-
"%SystemRoot%\Cursors\W11_dark_v2.2\person.cur",
4361-
"%SystemRoot%\Cursors\W11_dark_v2.2\move.cur",
4362-
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn2.cur",
4361+
"%SystemRoot%\Cursors\W11_dark_v2.2\unavailable.cur",
43634362
"%SystemRoot%\Cursors\W11_dark_v2.2\vert.cur",
4364-
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn1.cur",
43654363
"%SystemRoot%\Cursors\W11_dark_v2.2\horz.cur",
4364+
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn1.cur",
4365+
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn2.cur",
4366+
"%SystemRoot%\Cursors\W11_dark_v2.2\move.cur",
43664367
"%SystemRoot%\Cursors\W11_dark_v2.2\alternate.cur",
4367-
"%SystemRoot%\Cursors\W11_dark_v2.2\busy.ani"
4368+
"%SystemRoot%\Cursors\W11_dark_v2.2\link.cur",
4369+
"%SystemRoot%\Cursors\W11_dark_v2.2\person.cur",
4370+
"%SystemRoot%\Cursors\W11_dark_v2.2\pin.cur"
43684371
) -join ","
4369-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors\Schemes" -Name "W11 Cursors Dark HD v2.2 by Jepri Creations" -PropertyType String -Value $Schemes -Force
4372+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors\Schemes" -Name "W11 Cursors Dark Free v2.2 by Jepri Creations" -PropertyType String -Value $Schemes -Force
43704373
}
43714374
catch [System.Net.WebException]
43724375
{
@@ -4437,7 +4440,7 @@ function Cursors
44374440

44384441
Remove-Item -Path "$DownloadsFolder\Cursors.zip" -Force
44394442

4440-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light HD v2.2 by Jepri Creations" -Force
4443+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursor Light Free v2.2 by Jepri Creations" -Force
44414444
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\working.ani" -Force
44424445
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Arrow -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pointer.cur" -Force
44434446
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name ContactVisualization -PropertyType DWord -Value 1 -Force
@@ -4449,8 +4452,10 @@ function Cursors
44494452
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force
44504453
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force
44514454
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force
4452-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force
4453-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force
4455+
# This is not a typo
4456+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force
4457+
# This is not a typo
4458+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force
44544459
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force
44554460
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force
44564461
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force
@@ -4460,30 +4465,31 @@ function Cursors
44604465
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeWE -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\horz.cur" -Force
44614466
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name UpArrow -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\alternate.cur" -Force
44624467
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Wait -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\busy.ani" -Force
4468+
44634469
if (-not (Test-Path -Path "HKCU:\Control Panel\Cursors\Schemes"))
44644470
{
44654471
New-Item -Path "HKCU:\Control Panel\Cursors\Schemes" -Force
44664472
}
44674473
[string[]]$Schemes = (
4468-
"%SystemRoot%\Cursors\W11_light_v2.2\working.ani",
4469-
"%SystemRoot%\Cursors\W11_light_v2.2\pointer.cur",
4470-
"%SystemRoot%\Cursors\W11_light_v2.2\precision.cur",
4471-
"%SystemRoot%\Cursors\W11_light_v2.2\link.cur",
4472-
"%SystemRoot%\Cursors\W11_light_v2.2\help.cur",
4473-
"%SystemRoot%\Cursors\W11_light_v2.2\beam.cur",
4474-
"%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur",
4475-
"%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur",
4476-
"%SystemRoot%\Cursors\W11_light_v2.2\pin.cur",
4477-
"%SystemRoot%\Cursors\W11_light_v2.2\person.cur",
4478-
"%SystemRoot%\Cursors\W11_light_v2.2\move.cur",
4479-
"%SystemRoot%\Cursors\W11_light_v2.2\dgn2.cur",
4480-
"%SystemRoot%\Cursors\W11_light_v2.2\vert.cur",
4481-
"%SystemRoot%\Cursors\W11_light_v2.2\dgn1.cur",
4482-
"%SystemRoot%\Cursors\W11_light_v2.2\horz.cur",
4483-
"%SystemRoot%\Cursors\W11_light_v2.2\alternate.cur",
4484-
"%SystemRoot%\Cursors\W11_light_v2.2\busy.ani"
4474+
"%SystemRoot%\Cursors\W11_dark_v2.2\pointer.cur",
4475+
"%SystemRoot%\Cursors\W11_dark_v2.2\help.cur",
4476+
"%SystemRoot%\Cursors\W11_dark_v2.2\working.ani",
4477+
"%SystemRoot%\Cursors\W11_dark_v2.2\busy.ani",,
4478+
"%SystemRoot%\Cursors\W11_dark_v2.2\precision.cur",
4479+
"%SystemRoot%\Cursors\W11_dark_v2.2\beam.cur",
4480+
"%SystemRoot%\Cursors\W11_dark_v2.2\handwriting.cur",
4481+
"%SystemRoot%\Cursors\W11_dark_v2.2\unavailable.cur",
4482+
"%SystemRoot%\Cursors\W11_dark_v2.2\vert.cur",
4483+
"%SystemRoot%\Cursors\W11_dark_v2.2\horz.cur",
4484+
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn1.cur",
4485+
"%SystemRoot%\Cursors\W11_dark_v2.2\dgn2.cur",
4486+
"%SystemRoot%\Cursors\W11_dark_v2.2\move.cur",
4487+
"%SystemRoot%\Cursors\W11_dark_v2.2\alternate.cur",
4488+
"%SystemRoot%\Cursors\W11_dark_v2.2\link.cur",
4489+
"%SystemRoot%\Cursors\W11_dark_v2.2\person.cur",
4490+
"%SystemRoot%\Cursors\W11_dark_v2.2\pin.cur"
44854491
) -join ","
4486-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors\Schemes" -Name "W11 Cursor Light HD v2.2 by Jepri Creations" -PropertyType String -Value $Schemes -Force
4492+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors\Schemes" -Name "W11 Cursor Light Free v2.2 by Jepri Creations" -PropertyType String -Value $Schemes -Force
44874493
}
44884494
catch [System.Net.WebException]
44894495
{
@@ -4503,7 +4509,7 @@ function Cursors
45034509
}
45044510
"Default"
45054511
{
4506-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "W11 Cursors Dark HD v2.2 by Jepri Creations" -Force
4512+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "(default)" -PropertyType String -Value "" -Force
45074513
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name AppStarting -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_working.ani" -Force
45084514
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Arrow -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_arrow.cur" -Force
45094515
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name ContactVisualization -PropertyType DWord -Value 1 -Force
@@ -4517,14 +4523,13 @@ function Cursors
45174523
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_pen.cur" -Force
45184524
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_person.cur" -Force
45194525
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_pin.cur" -Force
4520-
Remove-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -Force
45214526
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 2 -Force
45224527
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_move.cur" -Force
45234528
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeNESW -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_nesw.cur" -Force
45244529
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeNS -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_ns.cur" -Force
45254530
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeNWSE -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_nwse.cur" -Force
45264531
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeWE -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_ew.cur" -Force
4527-
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name UpArrow -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_dark_v2.2\alternate.cur" -Force
4532+
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name UpArrow -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_up.cur" -Force
45284533
New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Wait -PropertyType ExpandString -Value "%SystemRoot%\cursors\aero_up.cur" -Force
45294534
}
45304535
}

0 commit comments

Comments
 (0)