Burgaud Posted February 1, 2021 Posted February 1, 2021 Hi This is a piece of code I use to identify the PID and Process Name of the active window: #include <Process.au3> local $WHandle = WinGetHandle("[Active]") local $WTitle = WinGetTitle($WHandle) local $PID = WinGetProcess($WHandle) local $Process = _ProcessGetName($PID) Tooltip(StringFormat("WHandle(%s) WTitle(%s) PID(%s) ProcessName(%s) ", $WHandle, $WTitle, $PID, $Process)) However on some application, I am getting wrong PID/processName; It returns ApplicationFrameHost.exe when the process is clearly NOT it. example: (sometimes when browsing folders) WHandle(0x0002018E) WTitle(Photos) PID(3500) ProcessName(ApplicationFrameHost.exe) where am I doing wrong?
Nine Posted February 1, 2021 Posted February 1, 2021 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now