FG

Is there a way to get access to a window handle in windows using WSH, or WMI or similar?

Fresh3 days ago
Mar 15, 202618438 views
Confidence Score0%
0%

Problem

Is there a way to get access to a window handle in windows using WSH, or WMI or similar? I just want to flag a window as always-on-top. Ideally I'd use windows script host for this.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to get access to a window handle in windows using WSH, or WMI or similar?

Low Risk

To grab it with WSH, you can use the COM DLL found in this CodeProject article. Using this, you can then grab a window handle like so: This is also very easy in PowerShell. example: This grab's the window handle of the PowerShell process. Although i…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment