node-win32-api icon indicating copy to clipboard operation
node-win32-api copied to clipboard

support like GetAltTabInfoA EnumDesktopWindows function

Open WingDust opened this issue 5 years ago • 2 comments

I am try get all in alt-Tab windws 's hwnd and titles

i am watch Window API from you doc link GetAltTabWindowA EnumDesktopWindows ... but in the const use32= U.load() it have this function lack GetAltTabWindowA EnumDesktopWindows hope to achieve image

image

Second

This is my function for test I know about it shallow I know use32.EnumWindows(foo,null) has a argument trouble but in the EnumWindows function that have a callback EnumWindowsProc function and Type: WNDENUMPROC I want to ask how to put function into the EnumWIndows and how to use ref correctly or it' has better way to get All alt-Tab windows image

this is error image

WingDust avatar Feb 02 '20 00:02 WingDust

Do u mean GetAltTabInfoW ? https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getalttabinfow

waitingsong avatar Feb 04 '20 04:02 waitingsong

yes or u have better way to get all windows in alt-Tab list in windows show me

WingDust avatar Feb 05 '20 18:02 WingDust