Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggers for a specified window often fail
#2
Tested on Windows 11.

Insert this in the FF to see the current window:
outw f.hwnd

When a window is active, it is
65888 Progman "Program Manager" EXPLORER

When I press Win+D to show desktop, the window is
788796 WorkerW "" EXPLORER

Both windows belong to the same thread (desktop thread?), therefore can be used this code:
Code:
Copy      Help
;outw f.hwnd
;out F"{GetWindowThreadProcessId(f.hwnd 0)} {GetWindowThreadProcessId(GetShellWindow 0)} {GetShellWindow}"
if GetWindowThreadProcessId(f.hwnd 0) = GetWindowThreadProcessId(GetShellWindow 0)
,ret "Desk_Dia" ;;Win_1


Messages In This Thread
RE: Triggers for a specified window often fail - by Gintaras - 08-06-2022, 05:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)