Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Able to get active window other properties like positions & states #21

Closed
genesisneo opened this issue Dec 21, 2017 · 4 comments

Comments

@genesisneo
Copy link

It would be nice if this module can also get current windows positions & states.

{
  title: 'npm install',
  id: 32,
  app: 'Terminal',
  pid: 64,
  position: { top: 128, left: 256, bottom:568, right:320 },
  state: 'Maximized'
}

To change the states we can have something like activeWin.state(['minimized', 'maximized', 'normal', 'close']);, and to move current window we can have something like activeWin.move(t,l,b,r);.

@sindresorhus
Copy link
Owner

Position and size are available for macOS in master, see #19. It's just waiting for implementation on Linux and Window, and docs.

@sindresorhus
Copy link
Owner

To change the states we can have something like activeWin.state(['minimized', 'maximized', 'normal', 'close']);, and to move current window we can have something like activeWin.move(t,l,b,r);.

That's outside the scope of this module.

@sindresorhus
Copy link
Owner

Closing in favor of #23

@xudaolong
Copy link

xudaolong commented Nov 6, 2019

@sindresorhus I want to know if can just provide information about activeWin.state instead of manipulating them. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants