This is a workspace switcher. And the pacman corresponds to the open workspace. And all the rest are ghosts. (In the video dots are used for empty workspaces, but I feel that'll be going too far.). What I'm trying to go for is either a skin that allows keyboard input to switch between the workspaces as above. Or a skin that modifies itself for the pacman to be on the current open workspace, and for me to just use normal keyboard shortcuts to get there. Whichever is easier. (However, preferably the second one.)
I tried to code the first concept, but it didn't go well. And I was wondering if someone could help me tweak my code to work, or help me do the second concept. See below for a video of what happened.
Obviously, this is not the way that I would like it. I would like to switch by keyboard input (or second concept) and have the pacman replace the ghost rather than going on top of it. See below for my code (code has been updates since video, minor differences may occur).
Code: Select all
[Rainmeter]
Update=-1
[style]
ImageName=#@#Icons\ghost.png
H=11
MouseOverAction=[!SetOptionGroup Icons ImageName "#@#Icons\ghost.png"][!SetOption #CURRENTSECTION# ImageName "#@#Icons\pacman.png"][!Update][!Redraw]
[ghost1]
Meter=Image
MeterStyle=style
X=20
LeftMouseUpAction=["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+left]["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+left][!Update][!Redraw]
[ghost2]
Meter=Image
MeterStyle=style
X=40
LeftMouseUpAction=[!CommandMeasure switcher "Run"][!Update][!Redraw]
[ghost3]
Meter=Image
MeterStyle=style
X=60
LeftMouseUpAction=["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+right]["#@#nircmd\nircmd.exe" SendKeyPress lwin+ctrl+right][!Update][!Redraw]
[pacman]
Meter=Image
MeterStyle=style
ImageName=#@#Icons\pacman.png
Thanks all! And can I just take this oppurtunity to say that this is a great community. Always so helpful, and everything so well explained. (Oh and sorry for posting so much, I hope it's okay, don't want to spam.)
Rainmeter 4.4.0.3433 beta (64-bit)
Language: English (1033)
Build time: 2021-02-11 20:36:28
Windows 10 Home 2009 64-bit (build 19042) - English (2057)
Path: C:\Program Files\Rainmeter\
SkinPath: C:\Users\User\OneDrive\Documents\Rainmeter\Skins\
SettingsPath: C:\Users\User\AppData\Roaming\Rainmeter\
IniFile: C:\Users\User\AppData\Roaming\Rainmeter\Rainmeter.ini
Issue tags: "Workspace switcher"