Re: Screen Clipper by LearningOne. Can we make standalone?
Posted: 09 Nov 2020, 13:07
I have the code you shared with me a week ago. Sorry I am not sure how to to approach this. Would I use the GUI one for this? Can I paste the clipboard or %out% to GUI and resize as you suggest?
Code: Select all
F3:: ;Hold F3 to make a selection, then release
{
MouseGetPos, x1, y1
SoundBeep, 1500, 20
KeyWait, %A_ThisHotkey%
SoundBeep, 1000, 20
MouseGetPos, x2, y2
width := x2 - x1, height := y2 - y1
If (width < 4 && height < 4)
Return
pToken := Gdip_Startup(), snap := Gdip_BitmapFromScreen(x1 "|" y1 "|" width "|" height)
Gdip_SetBitmapToClipboard(snap), Gdip_SaveBitmapToFile(snap, out)
Gdip_DisposeImage(snap), Gdip_Shutdown(pToken)
;Run, %out%
}
Return