balala wrote: ↑January 15th, 2021, 7:12 pm
Still not posted...
Wait, please, wait...
I'm not as good as you, among other people ...
I have already finished the cycler, I move from one screen to another without a problem,
and from the leftmost screen to the rightmost screen and vice versa.
(I just finished the function after many rainmeter crashes
)
Here is the code that moves the selected wallpaper (1 screen) to the desired screen.
(I still have a lot of work to integrate the other functions,
which I had already implemented but with a movement of the "windows" with the mouse, but I am moving forward ...)
Code: Select all
[MeasureNumMonitor]
Measure=Plugin
Plugin=SysInfo
SysInfoType=NUM_MONITORS
OnUpdateAction=[!SetVariable MaxMon1 "[MeasureNumMonitor]"]
DynamicVariables=1
UpdateDivider=-1
[MonMeasureOne]
Measure=Calc
Formula=7
[MonMeasureTwo]
Measure=Calc
Formula=MonMeasureOne < 1 ? 0 : 7
IfCondition=(#AssignMon1# <= 0)
IfTrueAction=[!WriteKeyValue "Variables" AssignMon1 "4" ][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "LoadOrder" "1" "#SETTINGSPATH#Rainmeter.ini"][!Refresh "#ROOTCONFIG#\Divers\Wallpaper_testpos"]
IfCondition2=(#AssignMon1# >= 1) && (#AssignMon1# < 2)
IfTrueAction2=[!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowX" "(0 + #SCREENAREAWIDTH#)" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowY" "1" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "LoadOrder" "1" "#SETTINGSPATH#Rainmeter.ini"]
IfCondition3=(#AssignMon1# >= 2) && (#AssignMon1# < 3)
IfTrueAction3=[!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowX" "0" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowY" "1" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "LoadOrder" "1" "#SETTINGSPATH#Rainmeter.ini"]
IfCondition4=(#AssignMon1# >= 3) && (#AssignMon1# < 4)
IfTrueAction4=[!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowX" "(0 - #SCREENAREAWIDTH@3#)" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowY" "1" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "LoadOrder" "1" "#SETTINGSPATH#Rainmeter.ini"]
IfCondition5=(#AssignMon1# >= 4) && (#AssignMon1# < 5)
IfTrueAction5=[!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowX" "(0 - (#SCREENAREAWIDTH@3# + #SCREENAREAWIDTH@4#))" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "WindowY" "1" "#SETTINGSPATH#Rainmeter.ini"][!WriteKeyValue "RSP_interface\Divers\Wallpaper_testpos" "LoadOrder" "1" "#SETTINGSPATH#Rainmeter.ini"]
IfCondition6=(#AssignMon1# > #MaxMon1#)
IfTrueAction6=[!WriteKeyValue "Variables" AssignMon1 "1" ][!Refresh "#ROOTCONFIG#\Divers\Wallpaper_testpos"]
OnUpdateAction=[!UpdateMeter MonitorInfos][!Redraw]
DynamicVariables=1
I use this cycler for other functions, I don't think I put it in the rmskin already posted ...
Thank you again, because without you, the cycler would have caused a lot of problems
...
Edit : Ooops, I forgot to specify, but you must note it in this code, that the wallpapers will not be resolution dependent,
but adapted if this one changes during the Windows session.
Edit II:The loadorder = 1 is for testing purposes, I will change it to -5 in the distributed version,
and the 1px from top, is related to the fact that if the taskbar is at the top (which is the case with me) it is covered by the wallpaper
Windows 10 Pro 64-bit (build 19042) / AMD Ryzen 9 3900X / RAM 16 Go / GTX960-4Go X 2
Rainmeter :4.4.0.3412 beta 64-bit (Dec 28 2020)