I found this code, which put a screenshot into a file, but I want it to clipboard instead. What can I do?
Code: Select all
#include C:\Users\username\Documents\Other\AutoHotkey Scripts\Gdip.ahk
^u::
; Charts
pToken := Gdip_Startup()
snap := Gdip_BitmapFromScreen("1400|148|1142|1163")
Gdip_SaveBitmapToFile(snap, "C:\Users\username\Documents\Other\AutoHotkey Scripts\test.png")
Gdip_DisposeImage(snap)
Return