Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 386

Utilities and Tools • Virtual Desktop Manager For Windows 10/11

$
0
0
Virtual Desktop Manager
Example skin for someone who want to use it
Rainmeter_73yE92deFI.png
VirtualDesktop-Example_1.0.rmskin

*<WindowsVersion> is a 0 for Windows 11 and a 1 for Windows 10.
  • Desktop.lua Actions:
    • Get Total Desktops (Num).
    • Get Current Desktop (Num).

Code:

[&Measure_Script:GetDesktopCount()][&Measure_Script:GetCurrentDesktop()]
This functions will return the value, so save it in a variable.

Code:

[!SetVariable Temp_Desktop_Count "[&Measure_Script:GetDesktopCount()]"]
  • AHK/EXE Script Actions:
    • Create Desktop.
    • Delete Desktop.
    • Previous Desktop.
    • Next Desktop.
    • Move To Desktop.

Code:

["#@#Scripts\<WindowsVersion>\VirtualDesktop.exe" "CreateDesktop"]["#@#Scripts\<WindowsVersion>\VirtualDesktop.exe" "DeleteDesktop"]["#@#Scripts\<WindowsVersion>\VirtualDesktop.exe" "PreviousDesktop"]["#@#Scripts\<WindowsVersion>\VirtualDesktop.exe" "NextDesktop"]["#@#Scripts\<WindowsVersion>\VirtualDesktop.exe" "MoveToDesktop" "<NumberOfDesktop>"]
  • Script Structuration:
    • LinkToDesktopIDS -> Name of measure that have all Desktop Binary IDs.
    • LinkToCurrentDesktop -> Name of measure that have the Current Desktop Binary ID.

Code:

[MeasureScript]Measure=ScriptScriptFile=#@#\Scripts\Desktop.luaLinkToDesktopIDS=Measure_Desktop_CountLinkToCurrentDesktop=Measure_Current_DesktopUpdateDivider=-1
  • What does Lua script need to work?:

Code:

;----------------------------------------------------------------------; Measure for <LinkToDesktopIDS>;----------------------------------------------------------------------[Measure_Desktop_Count]Measure=RegistryRegHKey=HKEY_CURRENT_USER RegKey=Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktopsRegValue=VirtualDesktopIDsRegExpSubstitute=1Substitute="(.{32})":"\1 ";----------------------------------------------------------------------; Measures for <LinkToCurrentDesktop>;----------------------------------------------------------------------; This measure is needed to know what script use.[MeasureOSVersion]Measure=PluginPlugin=SysInfoSysInfoType=OS_VERSIONRegExpSubstitute=1Substitute=".*Windows 10.*":"1",".*Windows 11.*":"0"; This measure is needed for Windows 10, no longer required for Windows 11.[Measure_Current_Session]Measure=RegistryRegHKey=HKEY_CURRENT_USER RegKey=Software\Microsoft\Windows\CurrentVersion\Explorer\SessionInfoOutputType=SubKeyListUpdateDivider=-1; RegKey for Windows 10; VirtualDesktop-KazukiGames82___Registry_RegKey_Current_1=Software\Microsoft\Windows\CurrentVersion\Explorer\SessionInfo\[&Measure_Current_Session]\VirtualDesktops; RegKey for Windows 11; VirtualDesktop-KazukiGames82___Registry_RegKey_Current_0=Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops[Measure_Current_Desktop]Measure=RegistryRegHKey=HKEY_CURRENT_USERRegKey=[#VirtualDesktop-KazukiGames82___Registry_RegKey_Current_[&MeasureOSVersion]]RegValue=CurrentVirtualDesktop

Statistics: Posted by KazukiGames82 — Yesterday, 4:30 am — Replies 0 — Views 107



Viewing all articles
Browse latest Browse all 386

Trending Articles