──────────
Replies
──────────
lexikos wrote:[*]PrintScreen:: will only activate if you are not holding any modifier keys such as Shift
I was just trying to get the initial command working before implementing modifiers.
lexikos wrote:I guess you used "+" to combine RWin and pressedKey
Looks like I skimmed through an example @ the AHK docs too fast
lexikos wrote:PrintScreen::Rwin should work, and it does for me.
I just tried it again, and it's working this time around. May have been an issue with the build process @ SublimeText.
lexikos wrote:This also works for me, and retains normal PrintScreen functionality if you press and release PrintScreen on its own:
Code: Select all
*PrintScreen::
Send {Blind}{RWin down}
return
*PrintScreen up::
if (A_PriorKey = "PrintScreen")
Send {PrintScreen}
Send {Blind}{RWin up}
This is
awesome . It's actually the exact end result I was looking for!
I tried using
* &
{Blind} before but I guess I structured it incorrectly.
──────────────────
Modifications
──────────────────
I've implemented Windows
Snipping Tool, as it has much greater functionality than the default
PrintScreen function:
- it allows area clipping & full screen capture
- it automatically copies the screenshot, so it can be directly pasted into a graphic editor
- it allows saving at arbitrary locations, rather than being limited to a single default directory
The following code allows:
- A single press of PrintScreen to clip a selected area of the screen
- A double press of PrintScreen to clip the entire screen area
- PrintScreen as RWin + Optional Modifiers + Any Key
───────
Issue
───────
I'm running into a minor issue, which is detailed in the code & GIFs below.
I've managed to achieve the desired functionality, but I had to implement a workaround which results in a Start Menu artifact.
Do you have any suggestions?
Also: Can this thread be moved to
Scripts and Functions once it's working smoothly?
───────
Code
───────
───────────────────────
Visual Reference
───────────────────────
RWin Functionality:
Screen Clipping:
Screen Capture ( Issue ):