This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
***warning*** | |
I have not checked with tools like Wireshark whether it was transmitted in an encrypted form. | |
arti-client = "0.24.0" | |
tokio = { version = "1", features = ["full"] } | |
tor-rtcompat = "0.24.0" | |
tokio-rustls = "0.26.0" | |
webpki-roots = "=0.26.7" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// origanl code : https://stackoverflow.com/questions/78846311/screencapturekit-example-in-go-c | |
import Foundation | |
import ScreenCaptureKit | |
import CoreGraphics | |
import AppKit | |
func captureScreenshot(display: SCDisplay?, window: SCWindow, app: SCRunningApplication,completion: @escaping (NSImage?) -> Void) { | |
let filter: SCContentFilter |