It is currently July 18th, 2024, 11:29 pm

Snip and Pin to Screen

Skins with graphics and animations
User avatar
nek
Posts: 106
Joined: November 3rd, 2019, 12:00 am

Re: Snip and Pin to Screen

Post by nek »

Thanks for your reply.
tass_co wrote: October 24th, 2022, 4:46 pm Crashes continue in steps 1. and 2.
Also changing the hotkey combination did not change the result either.
1. Snip and Pin to Screen.noHotKeys\Skin.Mini.ini
As you can see this skin is really simple, there is no HotKey plugin, no Hotkeys conflict, only TrayIcon plugin.
I would assume that pressing SHIFT CTRL ALT G cause Rainmeter.exe to crash even if the Skin.Mini.ini is unloaded.

Code: Select all

[Variables]
@IncludeConfig=#ROOTCONFIGPATH#Config.inc

;; ICON_TYPE={camera|crosshair|photo|pin|scissors|screenshot|viewfinder}
ICON_TYPE=screenshot
COLOR_DESKTOP_ICON=FFFFFF

[pRunCommand_ScaleFactor_Rainmeter_Applied]
Measure=String
Disabled=1

[aStartCapture]
Measure=String
Group=gAction
OnUpdateAction=[!DeactivateConfigGroup "#SKIN_CAPTURE#"][!ActivateConfig "#SKIN_CAPTURE#" "Select.ini"]
Disabled=1

;; TrayIcon by deathcrafter | https://github.com/deathcrafter/PluginTrayIcon
[pTrayIcon]
Measure=Plugin
Plugin=TrayIcon
IconName=#@#Images\snipinw_#ICON_TYPE#.ico
ToolTipText=Snip and Pin to Screen
LeftMouseUpAction=[!UpdateMeasure aStartCapture]
RightMouseUpAction=[!SkinMenu]

[Dummy]
Meter=String
Hidden=1

[Rainmeter]
Update=-1
;DefaultUpdateDivider=-1
AccurateText=1
DefaultSnapEdges=0
OnRefreshAction=[!EnableMeasureGroup gAction]
I would suggest
1. Manage Rainmeter > Layouts tab
2. ✅ Exclude unloaded skins, Name: something > [Save]
3. ✅ Save as empty layout, Name: empty >[Save]
4. Load empty layout
5. Manage Rainmeter > Settings tab > ✅ Debug mode, ✅ Log to file
6. Load skin 1 by 1 and press Ctrl Shift Alt G.
7. If not crash, press Ctrl Shift Alt G again.

Note: The following code [!ToggleConfig ...] occurs 2 situations(Player.ini is loaded/unloaded).
So I suggested pressing Ctrl Shift Alt G twice.
tass_co wrote: October 24th, 2022, 6:31 am

Code: Select all

KeyUpAction=#RC#[!Zpos "2"][!Move ([MeaMX]-115) ([MeaMY]-100)]#RC#[!ToggleMeterGroup BtnP]#RC#[!ToggleConfig "PopupDock v5\Player" "Player.ini"][!Move ([MeaMX]-89) ([MeaMY]+105) "PopupDock v5\Player"]#RC#[!SetVariable Again "2"][!SetVariable Again1 "1"][!Update *][!Redraw]
Ctrl Shift Alt G ... Crash

How about
Ctrl
Ctrl Shift
Ctrl Shift Alt
Ctrl Shift Alt F
Ctrl Shift G
Ctrl alt G
Shift alt G
...

tass_co wrote: October 24th, 2022, 4:46 pm Windows 10 Pro 21H2 (build 19044.2130) 64-bit
Your OS is WIndows 10 Pro 21H2, it is not related with Windows 11 22H2 crashing issues.
User avatar
tass_co
Posts: 523
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Snip and Pin to Screen

Post by tass_co »

nek wrote: October 24th, 2022, 6:49 pm As you can see this skin is really simple, there is no HotKey plugin, no Hotkeys conflict, only TrayIcon plugin.
I think it was 1 year ago, I had a problem with the TrayIcon plugin.
I realized that I haven't used this plugin since then.
My problem was still the same. Rainmeter crash.
Most likely this could be the cause of the problem.
I want to go over that first.
I will report the positive/negative result.
In conclusion, the problem is with me. It is not related to your skin :thumbup:
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
nek
Posts: 106
Joined: November 3rd, 2019, 12:00 am

Re: Snip and Pin to Screen

Post by nek »

Thank you for reporting.

One more thing, Could you replace the TrayIcon.dll and test again?

Old: TrayIcon.dll (64 bit), file version 1.1.0.0, size 155 KB (from GitHub.com, Snip and Pin to Screen included)
New: TrayIcon.dll (64 bit), file version 1.1.0.0, size 1.22 MB (forum.rainmeter.net)

1. Dowload the TrayIcon Example_1.1.0.1.rmskin from https://forum.rainmeter.net/viewtopic.php?t=39924&start=20#p204543
2. Rename to TrayIcon Example_1.1.0.1.rmskin.zip
3. Open Rainmeter\Plugins with folder with File Explorer
The default plugins folder is %UserProfile%\AppData\Roaming\Rainmeter\Plugins
4. Extract the zip and replace TrayIcon.dll with Plugins\64bit\TrayIcon.dll (1.22 MB).
5. Restart the Rainmeter.exe
6. Test again

If your issue will be fixed, I will replace the TrayIcon.dll with 1.22MB version on next update.
User avatar
tass_co
Posts: 523
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Snip and Pin to Screen

Post by tass_co »

nek wrote: October 25th, 2022, 1:17 am Thank you for reporting.

One more thing, Could you replace the TrayIcon.dll and test again?

Old: TrayIcon.dll (64 bit), file version 1.1.0.0, size 155 KB (from GitHub.com, Snip and Pin to Screen included)
New: TrayIcon.dll (64 bit), file version 1.1.0.0, size 1.22 MB (forum.rainmeter.net)

1. Dowload the TrayIcon Example_1.1.0.1.rmskin from https://forum.rainmeter.net/viewtopic.php?t=39924&start=20#p204543
2. Rename to TrayIcon Example_1.1.0.1.rmskin.zip
3. Open Rainmeter\Plugins with folder with File Explorer
The default plugins folder is %UserProfile%\AppData\Roaming\Rainmeter\Plugins
4. Extract the zip and replace TrayIcon.dll with Plugins\64bit\TrayIcon.dll (1.22 MB).
5. Restart the Rainmeter.exe
6. Test again

If your issue will be fixed, I will replace the TrayIcon.dll with 1.22MB version on next update.
I am sorry for writing late.
Despite all attempts, my problem persists.
Finally, I'm thinking of removing the TrayIcon part from your skin and using it via a button.
Thank you for your suggested solutions :great:
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
nek
Posts: 106
Joined: November 3rd, 2019, 12:00 am

Re: Snip and Pin to Screen

Post by nek »

tass_co wrote: October 25th, 2022, 9:48 pm Despite all attempts, my problem persists.
Thank you! for your cooperation.

Currently
TrayIcon (default)
TrayIcon + Desktop Icon (Right-click > Settings > Desktop icon > ✔️ Put icon on the desktop)

Now I need to create a Desktop Icon (no TrayIcon plugin) version of Snip and Pin to Screen skin.
User avatar
nek
Posts: 106
Joined: November 3rd, 2019, 12:00 am

Re: Snip and Pin to Screen

Post by nek »

Updated. 📦 SnipAndPinToScreen.rmskin (GitHub.com)


Viewer
Right-click on the Viewer > Settings > Border > Border width: 4 pixels
Right-click on the Viewer > Settings > Border color...
viewer.border.option.png
Right-click on the Viewer > Color filters >
viewer.color.filters.png
viewer.color.filters2.png
2022-11-18 (YYYY-MM-DD)
Icon: Added Snip and Pin to Screen\Skin.noTrayIcon.ini.
Icon: Updated TrayIcon.dll plugin (from 155 KB to 1.22 MB, same version number, new file)
Icon: Updated Apps and Open folder menu default items.
Icon: Fixed Changing tray icon functionality was not working.
Viewer: Added Rounded corners option for images.
Viewer: Added Border options.
Viewer: Added Color filter options.
Viewer: Fixed Settings > Show button was not working.
Update Note: Rainmeter Skin Installer window, check ✅ TrayIcon.dll and [Install] (same version number 1.1.0.0, new file)
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Rainmeter Sage
Posts: 7742
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Snip and Pin to Screen

Post by Yincognito »

Damn, that's a nice skin - excellent work! The program that inspired this is nice too. :thumbup:
It reminds me of my own - unreleased, I think - Screen Ruler skin (which doesn't have the capture related things though, it's more of a measurement tool on the screen):
Screen Ruler.jpg
Just wanted to let you know that the DPI detection thing is not so simple as it seems, see here - at least in some cases. For the record, in my case I'm on a HP laptop, Win 10, one integrated and one discrete GPU, and the registry value that actually changes on Windows scaling is a bit different (the WindowMetrics\AppliedDPI stays the same when scaling is modified):
DPIValue.jpg
The per monitor IDs there are also found in:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DisplayEnhancementService\State
I hope that helps.
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
nek
Posts: 106
Joined: November 3rd, 2019, 12:00 am

Re: Snip and Pin to Screen

Post by nek »

Hello Yincognito and thank you as always.
Yincognito wrote: March 25th, 2023, 3:49 pm (the WindowMetrics\AppliedDPI stays the same when scaling is modified):
I didn't know about this. Your information always help me. Sometimes they are difficult for me, though.

I don't have a Hi-DPI monitor or multi-monitors for testing.
That's why I actually don't understand about DPI related stuff.

I am using single monitor 27-inch 1920x1080 96 dpi 100% scaling.
DpiValue.png
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Rainmeter Sage
Posts: 7742
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Snip and Pin to Screen

Post by Yincognito »

nek wrote: March 25th, 2023, 6:01 pm Hello Yincognito and thank you always.

I didn't know about this. Your information always help me. Sometimes they are difficult for me, though.

I don't have a Hi-DPI monitor or multi-monitors for testing.
That's why I actually don't understand about DPI related stuff.

I am using single monitor 27-inch 1920x1080 96 dpi 100% scaling.
DpiValue.png
Well, that's the thing: I don't have another monitor attached to my laptop either! I'm as much surprised as you are when seeing 3 entries in that registry path on my system (although, now that I think about it, they could be just multiple entries of the same monitor, aka the laptop built in one).

Testing which registry path suffers modifications on changing the scale is easy: just run regedit, change the scaling, then check back in your registry to see whether it's the DPIValue or the AppliedDPI that reacts to it. The DPIValue of 0 in your screenshot seems to indicate that the scaling is set to the "Recommended" one on your system, whatever that may be.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
Yerail
Posts: 1
Joined: July 3rd, 2024, 10:23 am

Re: Snip and Pin to Screen

Post by Yerail »

I like this skin, but I cannot figure out where to change or set a hotkey, there are many lines to go through in the Capture.ini and I cannot seem to find where to change the hotkey. I am new to Rainmeter