Get Handle and PID of the desktop/cursor

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 665
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Get Handle and PID of the desktop/cursor

Post by Grovkillen » Wed Jul 08, 2020 10:45 am

I don't know if this is of any use but I reckon I post it here anyways.

Code: Select all

LibFunc>user32,GetDesktopWindow,DekstopHandle,
Let>WIN_USEHANDLE=1
GetWindowProcess>DekstopHandle,DesktopPID,
https://docs.microsoft.com/en-us/window ... ktopwindow

The same but for the cursor:

Code: Select all

LibFunc>user32,GetCursor,CursorHandle,
https://docs.microsoft.com/en-us/window ... -getcursor
Let>ME=%Script%

Running: 15.0.18
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts