/ Published in: AutoIt
URL: http://stackoverflow.com/a/11270659/720077
made by ascend4nt (https://sites.google.com/site/ascend4ntscode/processfunctions)
Expand |
Embed | Plain Text
#include <WinAPI.au3> #include <Misc.au3> $hOldWin = "" $hControl=_WindowFromPoint($aMousePos[0],$aMousePos[1]) ; Since _WindowFromPoint() can return 'sub' windows, or control handles, we should seek the owner window $hWin=_WinAPI_GetAncestor($hControl,2) $hOldWin = $hWin
You need to login to post a comment.
