orange-van-60470
01/09/2023, 12:24 AMorange-van-60470
01/09/2023, 12:25 AMorange-van-60470
01/09/2023, 12:25 AMnutritious-lunch-7063
01/09/2023, 12:28 AMhallowed-ocean-84954
01/09/2023, 1:43 AMGet-NetTCPConnection | where Localport -eq 6001 | select Localport,OwningProcess
Localport OwningProcess
--------- -------------
6001 33796
and then take the owning process id and do:
Get-Process -id 33796
NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName
------ ----- ----- ------ -- -- -----------
41 48.51 9.86 272.28 33796 1 Code
port 6001 is what vscode uses with hashlink but whatever port it runs on just substitute thathallowed-ocean-84954
01/09/2023, 1:43 AMhallowed-ocean-84954
01/09/2023, 2:38 AMGet-NetTCPConnection | where Localport -eq 6001 | get-process -id {$_.OwningProcess}
square-angle-35096
01/09/2023, 4:12 PMrhythmic-wolf-50922
01/09/2023, 5:02 PMsquare-angle-35096
01/09/2023, 6:06 PMpurple-toddler-22641
01/11/2023, 4:48 PMpurple-toddler-22641
01/11/2023, 4:48 PMable-action-74275
01/11/2023, 4:52 PMSDL_WINDOW_FULLSCREEN = 0x00000001, /**< fullscreen window */
SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
able-action-74275
01/11/2023, 4:57 PMable-action-74275
01/11/2023, 4:59 PMable-action-74275
01/11/2023, 4:59 PMpurple-toddler-22641
01/11/2023, 5:03 PMable-action-74275
01/11/2023, 5:03 PMpurple-toddler-22641
01/11/2023, 5:03 PMpurple-toddler-22641
01/11/2023, 5:04 PMreadPixels
to grab the pixels, then encode
to turn them into a png?hallowed-ocean-84954
01/11/2023, 5:06 PMable-action-74275
01/11/2023, 5:07 PMhx
// get the data
var image_pixels = window.readPixels(new Rectangle(0,0,width,height));
var image_bytes = image_pixels.encode();
// write the bytes to disk
var file = sys.io.File.write(file_path, true);
file.writeBytes(image_bytes, 0, image_bytes.length);
file.close();
hallowed-ocean-84954
01/11/2023, 5:07 PMhallowed-ocean-84954
01/11/2023, 5:07 PMpurple-toddler-22641
01/11/2023, 5:08 PMhallowed-ocean-84954
01/11/2023, 5:08 PMpurple-toddler-22641
01/11/2023, 5:08 PM