Using AHK PostMessage to send WM_WININICHANGE to Program Manager
Posted
by
SaintWacko
on Super User
See other posts from Super User
or by SaintWacko
Published on 2012-03-22T22:58:40Z
Indexed on
2012/03/22
23:31 UTC
Read the original article
Hit count: 394
I've written a script which updates an environment variable, but I need to tell Program Manager to update the computer's programs with this new information. I was given this as the API call that is made within another program to cause this:
::SendMessage(::FindWindow("Progman", NULL), WM_WININICHANGE, 0L, (LPARAM)"Environment");
I am attempting to translate this into an AutoHotKey PostMessage call, but I'm doing something wrong, as it isn't working. Here's where I've gotten so far:
PostMessage, 0x1A,, (LPARAM)"Environment", "Program Manager"
Here are the AHK resources I've been looking at to do this:
Send Messages to a Window or Its Controls
And here are the resources that I used to figure out the original API call:
Can anyone help me figure out what I'm doing wrong?
© Super User or respective owner