metacodes

Results 17 comments of metacodes
trafficstars

It seems that we can not get `AXUIElement` for a window in other space by using private API `CGSAddWindowsToSpaces` from macOS 12.3.1. We can not get `AXUIElement` for a fullscreen...

> @metacodes it seems you found the root cause for #1324 I found this problem yesterday while testing the code(#1484 ), and it tested perfectly fine on 12.1. Regarding this...

After some decompiling, I found out that the Contexts.app switch space by using an invisible window. I think we don't actually need to get the `AXUIElement` of the other space...

The following codes are from Contexts.app. It uses these codes to switch space. ```Objective-C -(void)makeFrontProcess { SetFrontProcessWithOptions(&self->_processSerialNumber, 0x1); return; } /* @class CWSActivateWindowOperation */ -(void)changeToSpace:(void *)arg2 { var_60 = [arg2...

HyperSwitch.app uses these codes to switch space. I haven't fully read the codes yet because they encoded the private API and can't directly read what api they used to do...

> @metacodes how do you think [apple shortcuts gets windows data](https://twitter.com/viticci/status/1471957654796967937)? Maybe you could decompile and look? Wow, that looks very cool! I've got something new to work on. Actually,...

> @metacodes how do you think [apple shortcuts gets windows data](https://twitter.com/viticci/status/1471957654796967937)? Maybe you could decompile and look? @lwouis I have tried apple shortcuts just now on macOS 12.3.1. I found...

@jkelleyrtp Maybe you should go to see the code review comments in PR #1484 . We can close/minimize/de-minimize/focus a window after we switch to that space, but not ideal.

@lwouis I have an idea, is it possible for us to develop a Daemon like WindowServer process that is started before the user logs in. It could listen to the...

> A user who restarts AltTab during their session would still need a trick to see windows from other Spaces. We may have a popup to tell them that they...