[Variables]
VDMHandle=Dexpot - Main Menu
SwitchDesktop=1803 0 ;last param left off to be provided by the skin
[Variables]
@Include="#SETTINGSPATH#VDM.ini"
SwitchTo=!RainmeterPluginBang "MeasureVDM SendMessage #SwitchDesktop#
[MeasureVDM]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowName=#VDMHandle#
[VirtualDesktop1]
Meter=Button
ButtonImage=../TopGraphics/Button1.png
X=21r
Y=0
ButtonCommand=!Execute [#SwitchTo# 1"]

dragonmage wrote:Which way do you think would be better for performance and leaving us open to any VDM? Command Line or Window Message?
It has occurred to me that Rainmeter is not going to like Including a file with a bunch of [Sections] that are not meters or measures. I hate to put anymore work on you guys, but it would probably be better if we had one file containing all the needed variables and another that stores the Config info (desktops, position, etc.)
Patrick wrote:Regarding your example: Can the window message plugin use both the window title and the class name to identify the target window?
Also, for other VDMs, the "SwitchDesktop" message could very well use the first message parameter to specify the number of the desktop to switch to. So instead of "SendMessage 1803 0 1" you'd have to ""SendMessage 1803 1 0" in order to switch to the first desktop. Can (and should) we somehow split this up?
Patrick wrote:You cannot leave off any of the paramters to SendMessage.
[SwitchDesktop]
Measure=Plugin
Plugin=VirtualDesktops.dll
VDManager=Dexpot
MeasureType=SwitchDesktop

[MeasureCurrentDesktop]
Measure=Plugin
Plugin=VirtualDesktops.dll
VDMeasureType=CurrentDesktop
VDManager=Dexpot
VDOnChange=!RainmeterSomeBang
[MeasureDesktopCount]
Measure=Plugin
Plugin=VirtualDesktops.dll
VDManager=Dexpot
VDMeasureType=DesktopCount
VDOnChange=!RainmeterSomeBang
[MeasureVDMActive]
Measure=Plugin
Plugin=VirtualDesktops.dll
VDManager=Dexpot
VDMeasureType=VDMActive
VDOnActivate=!RainmeterSomeBang
VDOnDeactivate=!RainmeterSomeOtherBang
[MeasureScreenshot]
Measure=Plugin
Plugin=VirtualDesktops.dll
VDManager=Dexpot
VDMeasureType=Screenshot
VDDesktop=1
VDOutputFile=#CURRENTPATH#desk1.bmp
VDWidth=640
VDHeight=480

[Gnometer\Bars]
VDesktop=*
[Gnometer\Dexpot]
VDesktop=1,2,3,4
[Gnometer\Clock]
VDesktop=1
[Gnometer\Recycle Bin]
VDesktop=2
[Gnometer\System]
VDesktop=3,4
VD3Position=800,0
VD4Position=1000,0
sgtevmckay wrote:If at all possible can we get the new functionality of adding and subtracting Desktops add to the plugin ???
!RainmeterPluginBang "DexpotCommand /AddDesktop"
!RainmeterPluginBang "DexpotCommand /RemoveDesktop"
Users browsing this forum: No registered users and 1 guest