static int shootWindow2_delay = 500; static BufferedImage shootWindow2(final Window w) { assertNotOnAWTThread(); final new Var<BufferedImage> v; w.toFront(); final new Flag flag; awtLater(shootWindow2_delay, r { try { v.set(shootScreen2(w.getBounds())); } finally { flag.raise(); } }); flag.waitUntilUp(); ret v.get(); }
Began life as a copy of #1006168
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006170 |
Snippet name: | shootWindow2 - bring window to front, delay, take screenshot of it (works only in non-AWT thread) |
Eternal ID of this version: | #1006170/1 |
Text MD5: | 24eb07d8224e61171e2770ca32721fed |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-22 12:46:39 |
Source code size: | 377 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 523 / 536 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |