It is currently July 23rd, 2024, 4:50 am

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 »

In this skin, the hotkey is available while capturing.
Default settings are..
snipin_key_act.png
@see https://github.com/nek7u/Snip-and-Pin-to-Screen/wiki/3.-Usage

The default location of the Capture.ini is
C:\Users\%UserName%\Documents\Rainmeter\Skins\Snip and Pin to Screen\Capture\Capture.ini

You will find HotKey=LSHIFT from the following code,
and you can change it. @see HotKey keywords (github.com)

Code: A part of Capture.ini

Code: Select all

;;
;; Moving/Resizing Capture Area with keyboard.
;;
;; KEY_CTRL_STATE={0|1}      | 0=move, 1=resize
;; KEY_ARROW_STATE={0-4}     | 1=left, 2=up, 3=right, 4=down
;; KEYBOARD_INCREMENT={1|10} | 1=shift keyup, 10=shift keydown
;;
[aMoveResize]
Measure=String
DynamicVariables=1
Group=gAction
IfConditionMode=1
;; Moving
IfCondition=(0=#KEY_CTRL_STATE#)&&(1=#KEY_ARROW_STATE#)
IfTrueAction=[!Move (#CURRENTCONFIGX#-#KEYBOARD_INCREMENT#) #CURRENTCONFIGY#]
IfCondition2=(0=#KEY_CTRL_STATE#)&&(2=#KEY_ARROW_STATE#)
IfTrueAction2=[!Move #CURRENTCONFIGX# (#CURRENTCONFIGY#-#KEYBOARD_INCREMENT#)]
IfCondition3=(0=#KEY_CTRL_STATE#)&&(3=#KEY_ARROW_STATE#)
IfTrueAction3=[!Move (#CURRENTCONFIGX#+#KEYBOARD_INCREMENT#) #CURRENTCONFIGY#]
IfCondition4=(0=#KEY_CTRL_STATE#)&&(4=#KEY_ARROW_STATE#)
IfTrueAction4=[!Move #CURRENTCONFIGX# (#CURRENTCONFIGY#+#KEYBOARD_INCREMENT#)]
;; Resizing
IfCondition5=(1=#KEY_CTRL_STATE#)&&(1=#KEY_ARROW_STATE#)
IfTrueAction5=[!SetVariable CAPTUREAREA_W_CURRENT (Clamp(#CAPTUREAREA_W_CURRENT#-#KEYBOARD_INCREMENT#,Round(30*#$#),#VSCREENAREAWIDTH#))][!SetOption CaptureArea DynamicVariables 0][!UpdateMeter CaptureArea][!CommandMeasure sScript "grips_update()"][!CommandMeasure sScript "buttons_update()"][!Redraw]
IfCondition6=(1=#KEY_CTRL_STATE#)&&(2=#KEY_ARROW_STATE#)
IfTrueAction6=[!SetVariable CAPTUREAREA_H_CURRENT (Clamp(#CAPTUREAREA_H_CURRENT#-#KEYBOARD_INCREMENT#,Round(30*#$#),#VSCREENAREAHEIGHT#))][!SetOption CaptureArea DynamicVariables 0][!UpdateMeter CaptureArea][!CommandMeasure sScript "grips_update()"][!CommandMeasure sScript "buttons_update()"][!Redraw]
IfCondition7=(1=#KEY_CTRL_STATE#)&&(3=#KEY_ARROW_STATE#)
IfTrueAction7=[!SetVariable CAPTUREAREA_W_CURRENT (Clamp(#CAPTUREAREA_W_CURRENT#+#KEYBOARD_INCREMENT#,Round(30*#$#),#VSCREENAREAWIDTH#))][!SetOption CaptureArea DynamicVariables 0][!UpdateMeter CaptureArea][!CommandMeasure sScript "grips_update()"][!CommandMeasure sScript "buttons_update()"][!Redraw]
IfCondition8=(1=#KEY_CTRL_STATE#)&&(4=#KEY_ARROW_STATE#)
IfTrueAction8=[!SetVariable CAPTUREAREA_H_CURRENT (Clamp(#CAPTUREAREA_H_CURRENT#+#KEYBOARD_INCREMENT#,Round(30*#$#),#VSCREENAREAHEIGHT#))][!SetOption CaptureArea DynamicVariables 0][!UpdateMeter CaptureArea][!CommandMeasure sScript "grips_update()"][!CommandMeasure sScript "buttons_update()"][!Redraw]
Disabled=1
[pHotkey_LSHIFT]
Measure=Plugin
Plugin=Hotkey
HotKey=LSHIFT
KeyDownAction=[!SetVariable KEYBOARD_INCREMENT 10]
KeyUpAction=[!SetVariable KEYBOARD_INCREMENT 1]
Disabled=1
[pHotkey_RSHIFT]
Measure=Plugin
Plugin=Hotkey
HotKey=RSHIFT
KeyDownAction=[!SetVariable KEYBOARD_INCREMENT 10]
KeyUpAction=[!SetVariable KEYBOARD_INCREMENT 1]
Disabled=1
[pHotkey_LCTRL]
Measure=Plugin
Plugin=Hotkey
HotKey=LCTRL
KeyDownAction=[!SetVariable KEY_CTRL_STATE 1]
KeyUpAction=[!SetVariable KEY_CTRL_STATE 0]
Disabled=1
[pHotkey_RCTRL]
Measure=Plugin
Plugin=Hotkey
HotKey=RCTRL
KeyDownAction=[!SetVariable KEY_CTRL_STATE 1]
KeyUpAction=[!SetVariable KEY_CTRL_STATE 0]
Disabled=1
[pHotkey_LEFT]
Measure=Plugin
Plugin=Hotkey
HotKey=LEFT
KeyDownAction=[!SetVariable KEY_ARROW_STATE 1][!UpdateMeasure aMoveResize]
KeyUpAction=[!SetVariable KEY_ARROW_STATE 0]
Disabled=1
[pHotkey_UP]
Measure=Plugin
Plugin=Hotkey
HotKey=UP
KeyDownAction=[!SetVariable KEY_ARROW_STATE 2][!UpdateMeasure aMoveResize]
KeyUpAction=[!SetVariable KEY_ARROW_STATE 0]
Disabled=1
[pHotkey_RIGHT]
Measure=Plugin
Plugin=Hotkey
HotKey=RIGHT
KeyDownAction=[!SetVariable KEY_ARROW_STATE 3][!UpdateMeasure aMoveResize]
KeyUpAction=[!SetVariable KEY_ARROW_STATE 0]
Disabled=1
[pHotkey_DOWN]
Measure=Plugin
Plugin=Hotkey
HotKey=DOWN
KeyDownAction=[!SetVariable KEY_ARROW_STATE 4][!UpdateMeasure aMoveResize]
KeyUpAction=[!SetVariable KEY_ARROW_STATE 0]
Disabled=1
What behavior do you expect?
You do not have the required permissions to view the files attached to this post.
User avatar
sl23
Posts: 1435
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Snip and Pin to Screen

Post by sl23 »

Wow! This looks great, dunno how I missed this one! Thanks for sharing. I've been trying a few apps for exactly this, but now hopefully Rainmeter will replace them all! lol
- MuLab -