File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 11const { windowManager } = require ( "./dist/index" ) ;
22
3- console . time ( "getActiveWindow" ) ;
43const window = windowManager . getActiveWindow ( ) ;
5- console . timeEnd ( "getActiveWindow" ) ;
6- console . log ( windowManager . getWindows ( ) ) ;
7- console . time ( "getTitle" ) ;
84console . log ( window . getTitle ( ) ) ;
9- console . timeEnd ( "getTitle" ) ;
105
11- console . time ( "getBounds" ) ;
12- console . log ( window . getBounds ( ) ) ;
13- console . timeEnd ( "getBounds" ) ;
6+ const bounds = window . getBounds ( ) ;
7+ console . log ( bounds ) ;
148
15- console . time ( "setBounds" ) ;
169// window.setBounds({ x: 0, y: 0 });
1710window . maximize ( ) ;
1811
19- console . timeEnd ( "setBounds" ) ;
12+ setTimeout ( ( ) => {
13+ window . setBounds ( bounds ) ;
14+ } , 1000 ) ;
2015
21- console . log ( "[info]: Visible Windows List" ) ;
16+ console . log ( "Windows List" ) ;
2217windowManager . getWindows ( ) . forEach ( window => {
23- console . log ( 'Title: ' + window . getTitle ( ) , '\n' , 'Path: ' + window . path ) ;
24- window . bringToTop ( ) ;
18+ console . log ( window . getInfo ( ) ) ;
2519} ) ;
You can’t perform that action at this time.
0 commit comments