Example Lua script utilizing both:
local pID = acGetProcessIDFromPattern("note.*exe") if pID > 0 then acMaximizeOrRestoreWindow(acGetWindowFromProcessID(pID),0,0) end
This looks for this first running process that matches "note.*exe" (notepad.exe, notes.exe, etc.) and maximizes or restores the first top-level window found that belongs to the process. If no match was found, nothing happens. |