ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Screenshot Captor

Interaction with ScreenClippings AHK Script

(1/1)

BGM:
Recently I found an AHK script called ScreenClippings.

It has a feature where you can capture a portion of the screen and it becomes a floating panel.
This is very useful if you need to use the area as a reference.  Sometimes I do this in certain dialogue windows and then I use the information somewhere else.

Also, I like being able to capture an area by this scripts hotkey: hold win key and draw with the mouse.  To me this is a much better way than pushing a hotkey and then drawing.  The ahk script allows me to draw the box immediately and not have to wait for the crosshair lines to appear.  I just draw the box and the image is captured - it's so fast.

Maybe ScreenshotCaptor could do these things too?

Also, a weird thing happens.  When I use the script to capture an area (by holding win+ctrl and drawing a box) then ScreenshotCaptor thinks I'm trying to capture a particular object (SC's hotkey is alt+printscreen), but I haven't pushed either alt or the printscreen key!  Weird!

lanux128:
Also, a weird thing happens.  When I use the script to capture an area (by holding win+ctrl and drawing a box) then ScreenshotCaptor thinks I'm trying to capture a particular object (SC's hotkey is alt+printscreen), but I haven't pushed either alt or the printscreen key!  Weird!
-BGM (January 02, 2016, 09:46 AM)
--- End quote ---

that happens because the script is sending the alt+printscreen combo internally in this function, SCW_Win2Clipboard (line 7 below). cool script btw!


--- Code: Autohotkey ---SCW_Win2Clipboard(KeepBorders=0) {   /*   ;   does not work for layered windows   ActiveWinID := WinExist("A")   pBitmap := Gdip_BitmapFromHWND(ActiveWinID)   Gdip_SetBitmapToClipboard(pBitmap)   */   Send, !{PrintScreen} ; Active Win's client area to Clipboard   if !KeepBorders   {      pToken := Gdip_Startup()      pBitmap := Gdip_CreateBitmapFromClipboard()      Gdip_GetDimensions(pBitmap, w, h)      pBitmap2 := SCW_CropImage(pBitmap, 3, 3, w-6, h-6)      Gdip_SetBitmapToClipboard(pBitmap2)      Gdip_DisposeImage(pBitmap), Gdip_DisposeImage(pBitmap2)      Gdip_Shutdown("pToken")   }}

BGM:
I disabled alt+printscreen combo in ScreenshotCaptor and the problem went away.
It's funny though, because when it first happened I was really surprised - I had never used SC to capture a control before and I thought it was something produced by the script!  Then I saw the SC icon somewhere and got to thinking.
Funny!

lanux128:
I disabled alt+printscreen combo in ScreenshotCaptor and the problem went away.
It's funny though, because when it first happened I was really surprised - I had never used SC to capture a control before and I thought it was something produced by the script!  Then I saw the SC icon somewhere and got to thinking.
Funny!-BGM (January 02, 2016, 11:37 PM)
--- End quote ---

It's a good thing you noticed the flashing ScreenshotCaptor icon and problem solved.

Navigation

[0] Message Index

Go to full version