File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const { windowManager } = require("./dist/index");
22
33console . log ( windowManager . requestAccessibility ( ) ) ; // required on macOS
44
5- /*
65const window = windowManager . getActiveWindow ( ) ;
76console . log ( window . getTitle ( ) ) ;
87
@@ -30,10 +29,4 @@ windowManager.on('window-activated', (window) => {
3029console . log ( "Monitors list" ) ;
3130windowManager . getMonitors ( ) . forEach ( monitor => {
3231 console . log ( monitor . getWorkArea ( ) ) ;
33- });
34- */
35-
36-
37-
38- const pid = windowManager . createProcess ( 'C:\\Windows\\explorer.exe' ) ;
39-
32+ } ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class WindowManager extends EventEmitter {
2020 constructor ( ) {
2121 super ( ) ;
2222
23- let lastId : number ;
23+ let lastId : number = addon . getActiveWindow ( ) ;
2424
2525 if ( ! addon ) return ;
2626
You can’t perform that action at this time.
0 commit comments